红联Linux门户
Linux帮助

USB无线网卡驱动RT73的移植 出错

发布时间:2011-05-09 22:27:48来源:红联作者:flyingsnow0102
参照文章http://blogold.chinaunix.net/u2/89095/showart_1880442.html
移植RT73无线网卡,除了蛮多问题。其中一个如下:
1.RT73无线网卡驱动:
http://www.ralinktech.com.tw/data/drivers/2009_0206_RT73_Linux_STA_Drv1.1.0.2.tar.bz2

[root@localhost Module]# pwd
/tmp/rt73/Module
[root@localhost Module]# make all
make -C /tmp/linux-2.6.32.2 SUBDIRS=/tmp/rt73/Module modules
make[1]: Entering directory `/tmp/linux-2.6.32.2'

WARNING: Symbol version dump /tmp/linux-2.6.32.2/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /tmp/rt73/Module/rtmp_main.o
/tmp/rt73/Module/rtmp_main.c: In function 'rt73_get_drvinfo':
/tmp/rt73/Module/rtmp_main.c:198: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'rt73_get_regs':
/tmp/rt73/Module/rtmp_main.c:217: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'rt73_ethtool_get_link':
/tmp/rt73/Module/rtmp_main.c:234: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'rt73_get_eeprom':
/tmp/rt73/Module/rtmp_main.c:250: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'rt73_get_ether_stats':
/tmp/rt73/Module/rtmp_main.c:282: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'rt73_get_wireless_stats':
/tmp/rt73/Module/rtmp_main.c:343: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'usb_rtusb_open':
/tmp/rt73/Module/rtmp_main.c:481: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'usb_rtusb_close':
/tmp/rt73/Module/rtmp_main.c:585: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'usb_rtusb_init_device':
/tmp/rt73/Module/rtmp_main.c:668: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c: In function 'usb_rtusb_probe':
/tmp/rt73/Module/rtmp_main.c:1124: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c:1125: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c:1148: error: 'struct net_device' has no member named 'open'
/tmp/rt73/Module/rtmp_main.c:1149: error: 'struct net_device' has no member named 'stop'
/tmp/rt73/Module/rtmp_main.c:1150: error: 'struct net_device' has no member named 'priv'
/tmp/rt73/Module/rtmp_main.c:1151: error: 'struct net_device' has no member named 'hard_start_xmit'
/tmp/rt73/Module/rtmp_main.c:1152: error: 'struct net_device' has no member named 'get_stats'
/tmp/rt73/Module/rtmp_main.c:1160: error: 'struct net_device' has no member named 'do_ioctl'
make[2]: *** [/tmp/rt73/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/tmp/rt73/Module] Error 2
make[1]: Leaving directory `/tmp/linux-2.6.32.2'
make: *** [all] Error 2
解决办法:
rtmp_main.c中数据结构定义出错,查看rtmp_main.c文件相关定义
参考http://www.backtrack-linux.org/forums/old-backtrack-4-general-support/22001-wireless-chipset-rt2500-rt2570.html?langid=8
http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?f=5&t=5713

上述解决办法没看太懂,望各位大侠指点下!小弟感激不敬
文章评论

共有 1 条评论

  1. 396886380 于 2011-05-23 16:48:33发表:

    你下的驱动程序是不是有问题?我用的rt3070的驱动可以用的。