当前位置: 技术问答>linux和unix
求助:linux-2.6.28内核编译RT2501内核提示内核net_device数据结构缺少成员变量
来源: 互联网 发布时间:2016-09-05
本文导语: Make –C /lib/modules/2.6.31-14-generic/build SUBDIRS=/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module modules make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic' CC [M] /root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.o /root/arm-linux/RT73_Linu...
Make –C /lib/modules/2.6.31-14-generic/build SUBDIRS=/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.o
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_drvinfo’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:198: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_regs’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:217: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_ethtool_get_link’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:234: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_eeprom’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:250: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_ether_stats’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:282: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_wireless_stats’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:343: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_close_device’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:443: error: implicit declaration of function ‘kill_proc’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_open’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:481: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_close’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:585: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_init_device’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:668: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_probe’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1124: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1125: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1148: error: ‘struct net_device’ has no member named ‘open’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1149: error: ‘struct net_device’ has no member named ‘stop’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1150: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1151: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1152: error: ‘struct net_device’ has no member named ‘get_stats’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1160: error: ‘struct net_device’ has no member named ‘do_ioctl’
make[2]: *** [/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [all] Error 2
那位大虾能帮忙解决一下,小弟不胜感激!
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
CC [M] /root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.o
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_drvinfo’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:198: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_regs’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:217: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_ethtool_get_link’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:234: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_eeprom’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:250: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_ether_stats’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:282: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘rt73_get_wireless_stats’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:343: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_close_device’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:443: error: implicit declaration of function ‘kill_proc’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_open’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:481: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_close’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:585: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_init_device’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:668: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c: In function ‘usb_rtusb_probe’:
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1124: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1125: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1148: error: ‘struct net_device’ has no member named ‘open’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1149: error: ‘struct net_device’ has no member named ‘stop’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1150: error: ‘struct net_device’ has no member named ‘priv’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1151: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1152: error: ‘struct net_device’ has no member named ‘get_stats’
/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.c:1160: error: ‘struct net_device’ has no member named ‘do_ioctl’
make[2]: *** [/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [all] Error 2
那位大虾能帮忙解决一下,小弟不胜感激!
|
Make –C /lib/modules/2.6.31-14-generic/build SUBDIRS=/root/arm-linux/RT73_Linux_STA_Drv1.1.0.1/Module modules
想说的的那样这个驱动可能在28上面是可以编译的,31 上的 net_device结构改了,你可能搞错路径了吧
想说的的那样这个驱动可能在28上面是可以编译的,31 上的 net_device结构改了,你可能搞错路径了吧
|
31内核的netdevice结构重新编写了的,与以前的很不一样。。。