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即可对无线网络进行配置

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值