当前位置: 技术问答>linux和unix
RT73驱动移植出错
来源: 互联网 发布时间:2016-06-14
本文导语: 小弟最近做rt73无线网卡的驱动移植,嵌入式平台为freescale的mx27,网上下载的源代码修改Makefile,将内核路径改为嵌入式内核的路径,然后 # make ARCH=arm CROSS_COMPILE=arm-926ejs-linux- all 编译过程没有任何错误或警告。 将r...
小弟最近做rt73无线网卡的驱动移植,嵌入式平台为freescale的mx27,网上下载的源代码修改Makefile,将内核路径改为嵌入式内核的路径,然后
# make ARCH=arm CROSS_COMPILE=arm-926ejs-linux- all
编译过程没有任何错误或警告。
将rt73.ko copy到开发板/home目录下,将rt73.bin copy到/etc/Wireless/RT73STA(也试过放到/lib/firmware目录下),然后
mx27# modprobe ehci-hcd
Mx27# insmod firmware_class.ko
mx27# insmod rt73.ko
操作都完全ok,然后插上网卡,提示:
mx27# usb 1-1: new high speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
rt73: idVendor = 0x148f, idProduct = 0x2573
rt73: Failed to request_firmware. Check your firmware file location
rt73: Failed to load Firmware.
rt73: probe of 1-1:1.0 failed with error -2
usb 1-1: device_add(1-1:1.0) --> -2
用iwconfig查看,也能找到设备
mx27# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
rausb0 RT73 WLAN
Link Quality:0 Signal level:0 Noise level:113
Rx invalid nwid:0 invalid crypt:0 invalid misc:0
但是用ifconfig激活网卡则出错
mx27# ifconfig rausb0 up
rt73: driver version - 1.0.3.6 CVS
rt73: Firmware not load
SIOCSIFFLAGS: Input/Output error
需要说明的是我的firmware file已经按要求放到相应路径下了,不知道为什么会出现这个错误,那位大哥做过这方面研究的,还望不吝赐教,小弟跪谢了。
# make ARCH=arm CROSS_COMPILE=arm-926ejs-linux- all
编译过程没有任何错误或警告。
将rt73.ko copy到开发板/home目录下,将rt73.bin copy到/etc/Wireless/RT73STA(也试过放到/lib/firmware目录下),然后
mx27# modprobe ehci-hcd
Mx27# insmod firmware_class.ko
mx27# insmod rt73.ko
操作都完全ok,然后插上网卡,提示:
mx27# usb 1-1: new high speed USB device using fsl-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
rt73: idVendor = 0x148f, idProduct = 0x2573
rt73: Failed to request_firmware. Check your firmware file location
rt73: Failed to load Firmware.
rt73: probe of 1-1:1.0 failed with error -2
usb 1-1: device_add(1-1:1.0) --> -2
用iwconfig查看,也能找到设备
mx27# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
rausb0 RT73 WLAN
Link Quality:0 Signal level:0 Noise level:113
Rx invalid nwid:0 invalid crypt:0 invalid misc:0
但是用ifconfig激活网卡则出错
mx27# ifconfig rausb0 up
rt73: driver version - 1.0.3.6 CVS
rt73: Firmware not load
SIOCSIFFLAGS: Input/Output error
需要说明的是我的firmware file已经按要求放到相应路径下了,不知道为什么会出现这个错误,那位大哥做过这方面研究的,还望不吝赐教,小弟跪谢了。
|
http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?f=8&t=5078
这里有解决方案 看看吧
Eureka!!! I got it working!!! But few problems yet.
The problem is with location of firmware file. As per my rootfs, path for firmware file is /usr/lib/hotplug/firmware. But placing firmware file in this path alone doesn't help, for the firmware to be loaded, script named "firmware.agent" in /etc/hotplug directory has to be run mannually, after pluging in the WiFi dongle.
Whereas in desktop enviroinmets, this script runs automatically. Now the question is; Who has to invoke the script?
这里有解决方案 看看吧
Eureka!!! I got it working!!! But few problems yet.
The problem is with location of firmware file. As per my rootfs, path for firmware file is /usr/lib/hotplug/firmware. But placing firmware file in this path alone doesn't help, for the firmware to be loaded, script named "firmware.agent" in /etc/hotplug directory has to be run mannually, after pluging in the WiFi dongle.
Whereas in desktop enviroinmets, this script runs automatically. Now the question is; Who has to invoke the script?