缺少使用 Realtek RTL8111/8168/8411 NIC 通过 iPXE 网络启动 Debian 安装程序的固件

缺少使用 Realtek RTL8111/8168/8411 NIC 通过 iPXE 网络启动 Debian 安装程序的固件

我正在使用 iPXE 通过以下方式网络启动 Debian bullseyeTP Link TG-3468 网卡. 网卡使用Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)按照Linux lspci -vv.

启动到 iPXE 工作并且它可以加载initrd.gz直到它抱怨缺少固件:

Aug 12 11:09:29 check-missing-firmware:looking for firmware file rtl_nic/rtl8125b-2.fw requested by r8169
Aug 12 11:09:29 check-missing-firmware:missing firmware files (rtl_nic/rtl8168h-2.fw rtl_niczrtl8125b-2.fw) for r8169
Aug 12 11:09:39 check-missing-firmware:removing and loading kernel module r8169
Aug 12 11:09:40 kernel: [ 26.5222761 r8169 0000:01:00.0 eth0: RTL8168h/8111h, 51:af:97:97:cf:cf, XID 541. IRQ 49
Aug 12 11:09:40 kernel: [ 26.5222781 r8169 0000:01:00.0 eth0: jumbo features [frames:9194 bytes, tx checksumming: ko]
Aug 12 11:09:40 kernel: [ 26.5227331 r8169 0000:04:00.0 enp4s0: renamed from eth0
Aug 12 11:09:40 net/hw-detect.hotplug: Detected hotpluggable network interface enp4s0
Aug 12 11:09:40 check-missing-firmware: taking network interface enp4s0 up/down
Aug 12 11:09:40 kernel: [ 26.549920] r8169 0000:06:00.0 eth0: RTL8125B, a8:a1:59:9b:b7:cb, XID 641. IRQ 68
Aug 12 11:09:40 kernel: [ 26.549921] r8169 0000:06:00.0 eth0: jumbo features [frames:9194 bytes, tx checksumming: ko]
Aug 12 11:09:40 kernel: [ 26.550296] r8169 0000:06:00.0 enp6s0: renamed from eth0
Aug 12 11:09:40 net/hu-detect.hotplug: Detected hotpluggable network interface enр6s0
Aug 12 11:09:40 kernel: [ 26.582111] r8169 0000:04:00.0: firmware: failed to load rtl_nic/rtl8168h-2.fw (-2)
Aug 12 11:09:40 kernel: [ 26.582112] r8169 0000:04:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2
Aug 12 11:09:40 kernel: [ 26.582114] r8169 0000:04:00.0: Unable to load firmware rtl_nic/rtl8168h-2.fw (-2)
Aug 12 11:09:40 kernel: [ 26.609688] Generic FE-GE Realtek PHY r8169-0-400:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-0-400:00, irq-IGNORE)
Aug 12 11:09:40 kernel: [ 26.733651] r8169 0000:04:00.0 enp4s0: Link is Down
Aug 12 11:09:40 check-missing-firmware: taking network interface еnр6s0 up/down
Aug 12 11:09:40 kernel: [ 26.743025] r8169 0000:06:00.0: firmware: failed to load rtl_nic/rtl8125b-2.fw (-2)
Aug 12 11:09:40 kernel: [ 26.7430271 r8169 0000:06:00.0: Direct firmware load for rtl_nic/rtl8125b-2.fw failed with error -2
Aug 12 11:09:40 kernel: [ 26.743029] r8169 0000:06:00.0: Unable to load firmware rtl_nic/rtl8125b-2.fw (-2)
Aug 12 11:09:40 kernel: [ 26.769682] RTL82268_RTL8221B 2.5Gbps PHY r8169-0-600:00: attached PHY driver [RTL8226B_RTL8221B 2.5G bps PHY] (mii_bus:phy_addr=r8169-0-600:00, irq=IGNORE)
Aug 12 11:09:40 kernel: [ 26.893858] r8169 0000:06:00.0 enp6s0: Link is Down
Aug 12 11:09:40 check-missing-firmware: taking network interface enp5s0 up/down
Aug 12 11:09:41 check-missing-firmware: looking at dmesg again, restarting from timestamp: [ 15.137846]
Aug 12 11:09:41 check-missing-firmware: timestamp found, truncating dmesg accordingly
Aug 12 11:09:41 check-missing-firmware: looking for firmware file rtl_nic/rtl8168h-2.fw requested by r8169
Aug 12 11:09:41 check-missing-firmware: looking for firmware file rtl_nic/rtl8125b-2.fw requested by r8169
Aug 12 11:09:41 check-missing-firmware: missing firmware files (rtl_nic/rtl8168h-2.fw rtl_nic/rtl8125b-2.fw) for r8169

我有另一张 Intel I210 网卡,它可以顺利启动实时 ISO。

Realtek NIC 是否不适合网络启动?

答案1

您缺少rtl8168h-2.fw。您有其他变体,但没有这个。

我找到了似乎是固件 wkennington / linux-固件

您需要安装它,因为由于某种原因,启动不会接受其他版本。

答案2

讨论远程控制组中,作者给出了使用 magic initrd 策略的解决方案:

set inst-dir http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64
kernel ${inst-dir}/linux initrd=initrd.magic auto=true priority=critical
initrd ${inst-dir}/initrd.gz
initrd http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/firmware.cpio.gz
boot

相关内容