rt3070 usb无线网卡驱动移植

内核配置:
Networking  --->
    <*>   Generic IEEE 802.11 Networking Stack
Device Drivers  --->
    Generic Driver Options  --->
        <*> Userspace firmware loading support
    Network device support  --->
        Wireless LAN (non-hamradio)  --->
            [*] Wireless LAN drivers (non-hamradio) & Wireless Extensions
    USB support  --->
        <*> Support for Host-side USB
        [*]   USB device filesystem
        <*> Inventra Highspeed Dual Role Controller (TI, ...)    
            Driver Mode (USB Host)  --->
                (X) USB Host
                ( ) USB Peripheral (gadget stack)
                ( ) Both host and peripheral:  USB OTG (On The Go) Device
        [*] USB Monitor
            

下面是驱动移植相关修改:

驱动我已经上传到:

http://download.csdn.net/detail/.../6654965

2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/Makefile修改:

RT28xx_MODE = STA
TARGET = LINUX
CHIPSET = 5370 #这里不用改为3070,如果改为3070,在使用insmod加载模块的时候会提示找不到外部符号RT33xx_Init
OSABL = NO
RT28xx_DIR = $(shell pwd)
PLATFORM = DM6446

ifeq ($(PLATFORM),DM6446)
LINUX_SRC = /ipnc_dev/Application/src/ipnc_psp/ti-davinci #根据实际情况修改内核源码目录
endif


2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/config.mk修改:

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y


# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y这里一定要配置为y,否则无法使用wpa_supplicant进行配置

L765:
    CFLAGS := -nostdinc -iwithprefix include -D__KERNEL__ -I$(RT28xx_DIR)/include -I$(LINUX_SRC)/include  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -fno-omit-frame-pointer -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mlittle-endian -mabi=aapcs-linux -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -Wdeclaration-after-statement -c -o $(WFLAGS)
将编译选项-mabi=apcs-gnu修改为-mabi=aapcs-linux或直接去掉

更多参考请看文档README_STA_usb

make进行编译

复制os/linux/rt5370sta.ko到目标文件系统

复制RT2870STA.dat到目标文件系统/etc/Wireless/RT2870STA/


insmod rt5370sta.ko
ifconfig ra0 up                

使用wpa_supplicant即可对无线网络进行配置

你可能感兴趣的:(技术_linux配置,TI,DM36x开发相关)