ubuntu 10.04 安装R8168驱动失败

fxwzzbd 2016-09-22 08:15:38
错误信息如下:

root@ubuntu:/opt/r8168-8.002.00# make clean modules
make -C src/ clean
make[1]: Entering directory `/opt/r8168-8.002.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers rset
make[1]: Leaving directory `/opt/r8168-8.002.00/src'
make -C src/ modules
make[1]: Entering directory `/opt/r8168-8.002.00/src'
make -C /lib/modules/2.6.32-21-generic/build SUBDIRS=/opt/r8168-8.002.00/src modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-21-generic'
CC [M] /opt/r8168-8.002.00/src/r8168_n.o
/opt/r8168-8.002.00/src/r8168_n.c:1085: error: unknown field ‘get_perm_addr’ specified in initializer
/opt/r8168-8.002.00/src/r8168_n.c:1085: error: ‘ethtool_op_get_perm_addr’ undeclared here (not in a function)
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_init_board’:
/opt/r8168-8.002.00/src/r8168_n.c:1319: error: implicit declaration of function ‘SET_MODULE_OWNER’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_init_one’:
/opt/r8168-8.002.00/src/r8168_n.c:1493: error: ‘struct net_device’ has no member named ‘open’
/opt/r8168-8.002.00/src/r8168_n.c:1494: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/opt/r8168-8.002.00/src/r8168_n.c:1495: error: ‘struct net_device’ has no member named ‘get_stats’
/opt/r8168-8.002.00/src/r8168_n.c:1497: error: ‘struct net_device’ has no member named ‘stop’
/opt/r8168-8.002.00/src/r8168_n.c:1498: error: ‘struct net_device’ has no member named ‘tx_timeout’
/opt/r8168-8.002.00/src/r8168_n.c:1499: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/opt/r8168-8.002.00/src/r8168_n.c:1503: error: ‘struct net_device’ has no member named ‘change_mtu’
/opt/r8168-8.002.00/src/r8168_n.c:1504: error: ‘struct net_device’ has no member named ‘set_mac_address’
/opt/r8168-8.002.00/src/r8168_n.c:1505: error: ‘struct net_device’ has no member named ‘do_ioctl’
/opt/r8168-8.002.00/src/r8168_n.c:1508: error: ‘struct net_device’ has no member named ‘poll’
/opt/r8168-8.002.00/src/r8168_n.c:1509: error: ‘struct net_device’ has no member named ‘weight’
/opt/r8168-8.002.00/src/r8168_n.c:1519: error: ‘struct net_device’ has no member named ‘poll_controller’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_change_mtu’:
/opt/r8168-8.002.00/src/r8168_n.c:1877: error: implicit declaration of function ‘netif_poll_enable’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_wait_for_quiescence’:
/opt/r8168-8.002.00/src/r8168_n.c:2128: error: implicit declaration of function ‘netif_poll_disable’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_tso_csum’:
/opt/r8168-8.002.00/src/r8168_n.c:2276: error: ‘struct sk_buff’ has no member named ‘nh’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_try_rx_copy’:
/opt/r8168-8.002.00/src/r8168_n.c:2529: error: implicit declaration of function ‘eth_copy_and_sum’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_rx_interrupt’:
/opt/r8168-8.002.00/src/r8168_n.c:2552: error: ‘struct net_device’ has no member named ‘quota’
/opt/r8168-8.002.00/src/r8168_n.c:2552: warning: type defaults to ‘int’ in declaration of ‘_min2’
/opt/r8168-8.002.00/src/r8168_n.c:2552: error: ‘struct net_device’ has no member named ‘quota’
/opt/r8168-8.002.00/src/r8168_n.c:2552: warning: comparison of distinct pointer types lacks a cast
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_interrupt’:
/opt/r8168-8.002.00/src/r8168_n.c:2742: error: implicit declaration of function ‘netif_rx_schedule_prep’
/opt/r8168-8.002.00/src/r8168_n.c:2743: error: implicit declaration of function ‘__netif_rx_schedule’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_poll’:
/opt/r8168-8.002.00/src/r8168_n.c:2782: error: ‘struct net_device’ has no member named ‘quota’
/opt/r8168-8.002.00/src/r8168_n.c:2782: warning: type defaults to ‘int’ in declaration of ‘_min2’
/opt/r8168-8.002.00/src/r8168_n.c:2782: error: ‘struct net_device’ has no member named ‘quota’
/opt/r8168-8.002.00/src/r8168_n.c:2790: error: ‘struct net_device’ has no member named ‘quota’
/opt/r8168-8.002.00/src/r8168_n.c:2793: error: implicit declaration of function ‘netif_rx_complete’
/opt/r8168-8.002.00/src/r8168_n.c: In function ‘rtl8168_init_module’:
/opt/r8168-8.002.00/src/r8168_n.c:3042: error: implicit declaration of function ‘pci_module_init’
make[3]: *** [/opt/r8168-8.002.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/opt/r8168-8.002.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-21-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/opt/r8168-8.002.00/src'
make: *** [modules] Error 2
root@ubuntu:/opt/r8168-8.002.00# make install
make -C src/ install
make[1]: Entering directory `/opt/r8168-8.002.00/src'
install -m 644 -c r8168.ko /lib/modules/2.6.32-21-generic/kernel/drivers/net/
install: cannot stat `r8168.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/opt/r8168-8.002.00/src'
make: *** [install] Error 2

...全文
913 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

1,318

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧