收起左侧

升级到最新版后网卡驱动无法手动安装

2
回复
177
查看
[ 复制链接 ]

5

主题

18

回帖

0

牛值

江湖小虾

2025-5-10 16:56:39 显示全部楼层 阅读模式

网卡型号为:

Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 2b)

飞牛默认不识别这个网卡,我通过控制台手动安装驱动,可正常使用。

驱动包upload 附件:8.052.01.tar.gz

通过执行以下命令,每次升级了内核都可以正常识别到网卡了

2 解压驱动文件 8.052.01.tar.gz

3 设置权限chmod +x autorun.sh

4 执行安装sudo ./autorun.sh

5 重启系统 reboot

重启后系统就可以识别到网卡,本次升级了内核后就无法安装这个驱动

具体报错情况:

Check old driver and unload it.
Build the module and install
/home/r8168-8.052.01/src/r8168_n.c:1624:6: warning: no previous prototype for ‘_proc_dump_tx_desc’ [-Wmissing-prototypes]
1624 | void _proc_dump_tx_desc(struct seq_file *m, struct TxDesc *desc_base,
| ^~~~~~~~~~~~~~~~~~
/home/r8168-8.052.01/src/r8168_n.c:2949:5: warning: no previous prototype for ‘mdio_real_read’ [-Wmissing-prototypes]
2949 | u32 mdio_real_read(struct rtl8168_private *tp,
| ^~~~~~~~~~~~~~
/home/r8168-8.052.01/src/r8168_n.c:5726:1: warning: no previous prototype for ‘rtl8168_set_rx_vlan_filter’ [-Wmissing-prototypes]
5726 | rtl8168_set_rx_vlan_filter(struct rtl8168_private tp)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/r8168-8.052.01/src/r8168_n.c: In function ‘rtl8168_get_drvinfo’:
/home/r8168-8.052.01/src/r8168_n.c:6296:17: error: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? [-Werror=implicit-function-declaration]
6296 | strlcpy(info->fw_version, rtl_fw->version,
| ^~~~~~~
| strncpy
/home/r8168-8.052.01/src/r8168_n.c: At top level:
/home/r8168-8.052.01/src/r8168_n.c:7978:20: error: initialization of ‘int (
)(struct net_device *, struct ethtool_keee )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_eee )’ [-Werror=incompatible-pointer-types]
7978 | .get_eee = rtl_ethtool_get_eee,
| ^~~~~~~~~~~~~~~~~~~
/home/r8168-8.052.01/src/r8168_n.c:7978:20: note: (near initialization for ‘rtl8168_ethtool_ops.get_eee’)
/home/r8168-8.052.01/src/r8168_n.c:7979:20: error: initialization of ‘int (
)(struct net_device *, struct ethtool_keee )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_eee *)’ [-Werror=incompatible-pointer-types]
7979 | .set_eee = rtl_ethtool_set_eee,
| ^~~~~~~~~~~~~~~~~~~
/home/r8168-8.052.01/src/r8168_n.c:7979:20: note: (near initialization for ‘rtl8168_ethtool_ops.set_eee’)
/home/r8168-8.052.01/src/r8168_n.c:28087:5: warning: no previous prototype for ‘rtl8168_enable_msix’ [-Wmissing-prototypes]
28087 | int rtl8168_enable_msix(struct rtl8168_private *tp)
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:229: /home/r8168-8.052.01/src/r8168_n.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.12.18-trim/Makefile:1932: /home/r8168-8.052.01/src] Error 2
make[2]: *** [Makefile:224: __sub-make] Error 2
make[1]: *** [Makefile:174: modules] Error 2
make: *** [Makefile:41: modules] Error 2

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

39

主题

8000

回帖

0

牛值

管理员

2025-5-13 18:45:08 显示全部楼层
0.9.2版本内核已升级要确认一下安装的驱动是否适配

5

主题

18

回帖

0

牛值

江湖小虾

2025-5-14 15:02:18 楼主 显示全部楼层

能否考虑在内核加入这个网卡的驱动。。每次升级内核都要手动安装驱动。

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则