Debain 10 - 从反向移植安装内核 5

Debain 10 - 从反向移植安装内核 5

我尝试在新安装的 debian 10 中从反向移植安装内核 5.x,但由于我有一个 10G NIC,所以失败了:

echo deb http://deb.debian.org/debian buster-backports main contrib non-free > /etc/apt/sources.list.d/buster-backports.list
apt-get update
apt-get -t buster-backports upgrade
apt-get install -t buster-backports firmware-linux firmware-linux-nonfree linux-headers-5.4.0-0.bpo.2-amd64 linux-image-5.4.0-0.bpo.2-amd64


update-initramfs: Generating /boot/initrd.img-5.4.0-0.bpo.2-amd64
W: Possible missing firmware /lib/firmware/bnx2x/bnx2x-e2-7.13.11.0.fw for module bnx2x
W: Possible missing firmware /lib/firmware/bnx2x/bnx2x-e1h-7.13.11.0.fw for module bnx2x
W: Possible missing firmware /lib/firmware/bnx2x/bnx2x-e1-7.13.11.0.fw for module bnx2x

找不到固件文件。机器无法启动。

内核日志说:

Jan 29 11:06:00 Debian-102-buster-64-minimal kernel: [    3.609341] ipmi_si IPI0001:00: IPMI message handler: Found new BMC (man_id: 0x003c0a, prod_id: 0x1001, dev_id: 0x20)
Jan 29 11:06:00 Debian-102-buster-64-minimal kernel: [    3.672134] ipmi_si IPI0001:00: IPMI kcs interface initialized
Jan 29 11:06:00 Debian-102-buster-64-minimal kernel: [    3.677407] ipmi_ssif: IPMI SSIF Interface driver
Jan 29 11:06:01 Debian-102-buster-64-minimal kernel: [    5.476563] bnx2x 0000:61:00.1: firmware: failed to load bnx2x/bnx2x-e2-7.13.11.0.fw (-2)
Jan 29 11:06:01 Debian-102-buster-64-minimal kernel: [    5.476763] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
Jan 29 11:06:01 Debian-102-buster-64-minimal kernel: [    5.476967] bnx2x 0000:61:00.1: Direct firmware load for bnx2x/bnx2x-e2-7.13.11.0.fw failed with error -2
Jan 29 11:06:01 Debian-102-buster-64-minimal kernel: [    5.477174] bnx2x: [bnx2x_func_hw_init:6002(eth1)]Error loading firmware
Jan 29 11:06:01 Debian-102-buster-64-minimal kernel: [    5.477331] bnx2x: [bnx2x_nic_load:2730(eth1)]HW init failed, aborting
Jan 29 11:06:02 Debian-102-buster-64-minimal kernel: [    5.672256] bnx2x 0000:61:00.0: firmware: failed to load bnx2x/bnx2x-e2-7.13.11.0.fw (-2)
Jan 29 11:06:02 Debian-102-buster-64-minimal kernel: [    5.672495] bnx2x 0000:61:00.0: Direct firmware load for bnx2x/bnx2x-e2-7.13.11.0.fw failed with error -2
Jan 29 11:06:02 Debian-102-buster-64-minimal kernel: [    5.672736] bnx2x: [bnx2x_func_hw_init:6002(eth0)]Error loading firmware
Jan 29 11:06:02 Debian-102-buster-64-minimal kernel: [    5.672895] bnx2x: [bnx2x_nic_load:2730(eth0)]HW init failed, aborting

使用 Debian 原始内核,一切运行正常。

如何从 backports 或另一个 ppa 在 debian10 中安装内核 5.x(无需编译我自己的内核)?

答案1

这是软件包中的一个错误。错误已经报告. 这些文件是刚刚失踪,错误报告中提供了一个补丁。

它的工作原理如下:

sudo su
echo deb http://deb.debian.org/debian buster-backports main contrib non-free > /etc/apt/sources.list.d/buster-backports.list
apt-get update
wget -P /lib/firmware/bnx2x/ https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/bnx2x/bnx2x-e1h-7.13.11.0.fw
wget -P /lib/firmware/bnx2x/ https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/bnx2x/bnx2x-e2-7.13.11.0.fw
wget -P /lib/firmware/bnx2x/ https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/bnx2x/bnx2x-e1-7.13.11.0.fw
apt-get install -t buster-backports linux-image-amd64

重启后你正在运行内核 5.x

相关内容