您的位置:首页 > 产品设计 > UI/UE

mt7601 Build Instructions

2015-08-21 18:02 435 查看
=======================================================================

Build Instructions:  

====================

1>tar

# tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz

    go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.   

2> Makefile Edit

set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> os/linux/config.mk Edit 

define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager or wpa_supplicant wext functions
  Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
  => #>cd wpa_supplicant-x.x
  => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
** Build for being controlled by WpaSupplicant with Ralink Driver
  Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
  => #>cd wpa_supplicant-0.5.7
  => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

备注 :

'HAS_WPA_SUPPLICANT=y'

'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'

4>compile driver source code

# make

5> /etc config 

$cp RT2870STA.dat  /etc/Wireless/RT2870STA/RT2870STA.dat

备注:若没有此路径,就先创建再拷贝

6> load driver

go to "os/linux/" directory.

# insmod mt7601Usta.ko

7> unload driver   

# ifconfig ra0 down

# rmmod mt7601Usta
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: