mt7601 Build Instructions

来源:互联网 发布:众途软件多少钱 编辑:程序博客网 时间:2024/06/06 04:37

=======================================================================
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


0 0
原创粉丝点击