r8169 Realtek 以太网模块在内核升级 >5.4.0-48-generic 后无法检测到设备 这是一个错误吗?

r8169 Realtek 以太网模块在内核升级 >5.4.0-48-generic 后无法检测到设备 这是一个错误吗?

5.4.0-48-generic在我的服务器上,内核从 升级到5.4.0-52(和)后,板载 realtek 以太网卡无法被检测到5.4.0-51。但奇怪的是,在具有相同主板、网卡版本和 bios 版本的游戏机上,运行具有相同 ubuntu 内核 ( ) 的 KDE Neon 5.4.0-52-generic,它工作正常。

lshw:
description: Motherboard
product: X470 GAMING PLUS (MS-7B79)
vendor: Micro-Star International Co., Ltd
dmidecode -s bios 版本:A.50
lspci -nnv:
18:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Kernel driver in use: r8169
lsb_release:Ubuntu 20.04.1 LTS focal
uname:Linux 5.4.0-52-generic x86_64

dmesg |grep 8169(5.4.0-48):

[    0.000000] kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-48-generic root=UUID=b33c1eb8-59d7-479e-977c-cff95aff44e9 ro nomodeset
[    0.000000] kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-48-generic root=UUID=b33c1eb8-59d7-479e-977c-cff95aff44e9 ro nomodeset
[    0.703027] kernel: libphy: r8169: probed
[    0.703613] kernel: r8169 0000:18:00.0 eth0: RTL8168h/8111h, 00:d8:61:10:37:54, XID 541, IRQ 65
[    0.704030] kernel: r8169 0000:18:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    0.739820] kernel: r8169 0000:18:00.0 p1p1: renamed from eth0
[    7.140575] kernel: Generic FE-GE Realtek PHY r8169-1800:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-1800:00, irq=IGNORE)
[    7.253204] kernel: r8169 0000:18:00.0 p1p1: Link is Down
[   10.768877] kernel: r8169 0000:18:00.0 p1p1: Link is Up - 1Gbps/Full - flow control rx/tx

dmesg |grep 8169(5.4.0-52):

[    0.000000] kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-52-generic root=UUID=b33c1eb8-59d7-479e-977c-cff95aff44e9 ro nomodeset
[    0.000000] kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-52-generic root=UUID=b33c1eb8-59d7-479e-977c-cff95aff44e9 ro nomodeset
[    0.705941] kernel: libphy: r8169: probed
[    0.706490] kernel: r8169 0000:18:00.0 eth0: RTL8168h/8111h, 00:d8:61:10:37:54, XID 541, IRQ 62
[    0.706876] kernel: r8169 0000:18:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]

这次realtekrmmod r8169 && modprobe r8169解决方法没有起作用。

我应该提交错误吗?或者发行版网络配置更改是否发生在 Ubuntu Server 中,但没有在 KDE Neon 中发生?

编辑:附加信息

如果我有机会再次关闭服务器,我也将尝试该r8168-dkms软件包并使用结果更新问题。

# modinfo r8169 | grep -i 10ec(5.4.0-48):

alias:          pci:v000010ECd00003000sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008125sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008169sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008167sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008161sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008136sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008129sv*sd*bc*sc*i*
alias:          pci:v000010ECd00002600sv*sd*bc*sc*i*
alias:          pci:v000010ECd00002502sv*sd*bc*sc*i*

sudo lshw -C network(5.4.0-48):

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:18:00.0
       logical name: p1p1
       version: 15
       serial: 00:d8:61:10:37:54
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:34 ioport:f000(size=256) memory:fe604000-fe604fff memory:fe600000-fe603fff
  *-network:0
       description: Ethernet interface
       physical id: 1
       logical name: vnet0
       serial: fe:54:00:cb:bd:03
       size: 10Mbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full link=yes multicast=yes port=twisted pair speed=10Mbit/s
  *-network:1
       description: Ethernet interface
       physical id: 2
       logical name: virbr0
       serial: 52:54:00:b3:57:96
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=192.168.122.1 link=no multicast=yes
  *-network:2
       description: Ethernet interface
       physical id: 3
       logical name: br0
       serial: 74:d4:35:53:6e:59
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=192.168.16.11 link=yes multicast=yes
  *-network:3 DISABLED
       description: Ethernet interface
       physical id: 4
       logical name: virbr0-nic
       serial: 52:54:00:b3:57:96
       size: 10Mbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full link=no multicast=yes port=twisted pair speed=10Mbit/s

cat /etc/network/interfaces(5.4.0-48):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

auto lo
iface lo inet loopback

#auto eth0

#iface eth0 inet static
#       address 192.168.16.10
#       netmask 255.255.255.0
#       gateway 192.168.16.2

#auto p1p1
iface p1p1 inet manual

auto br0
iface br0 inet static
        address 192.168.16.11
        netmask 255.255.255.0
        broadcast 192.168.16.255
        network 192.168.16.0
        gateway 192.168.16.2
        bridge_ports p1p1
        bridge_stp off
        bridge_fd 3
        bridge_maxwait 0
        post-up ip link set br0 address 74:d4:35:53:6e:59
        up route add -net 192.168.1.0/24 gw 192.168.20.80

iface br0:0 inet static
        address 192.168.16.10
        netmask 255.255.255.0

cat /etc/netplan/*.yaml(5.4.0-48):No such file or directory

答案1

r8168

尝试r8168-dkms驱动程序。

BIOS

MSI X470 GAMING PLUS

您的 BIOS 版本为 A.50。

有较新的 BIOS 可用,版本 A.H0,日期为 2020 年 6 月 16 日,可以下载这里

注意:确认我拥有适合您型号的正确网页。

注意:更新 BIOS 之前请做好备份。

答案2

解决了

此问题不再发生在 中5.4.0-65-generic。正如所怀疑的那样,这是内核或 r8168 模块的更改,可能已修复或恢复。

现在唯一的区别是设备eth0再次被调用,而不是p1p1

相关内容