我正在尝试在新的 Lenovo 笔记本电脑 (T14s Gen1) 上安装 Debian Bullseye。该笔记本电脑配备了Realtek 8852AE wifi芯片,目前内核中尚未添加该芯片的驱动程序。有Github 存储库似乎存在合适的驱动程序,并且我能够在另一台 Debian Bullseye 机器上构建固件和内核模块。
我创建了一个 Debian Bullseye USB 棒并添加了我的常规预置文件,该文件工作正常。我尝试添加一系列“early_command”,但 di 总是在遇到的第一个 Early_command 处抛出错误。有大佬指点一下有什么问题吗?
### Copy the Realtek 8852AE firmware during installation
d-i preseed/early_command string \
/bin/cp /cdrom/realtek8852/rtw8852a_fw.bin /lib/firmware/rtw8852a_fw.bin;
### Modprobe the Realtek 8852AE network driver during installation
d-i preseed/early_command string \
/bin/cp /cdrom/realtek8852/rtw89core.ko /lib/modules/5.10.0-8-amd64/rtw89core.ko; \
/bin/cp /cdrom/realtek8852/rtw89pci.ko /lib/modules/5.10.0-8-amd64/rtw89pci.ko; \
/sbin/depmod -a \
/sbin/modprobe rtw89pci;
### Copy the Realtek 8852AE firmware on target machine
d-i preseed/late_command string \
/bin/cp /cdrom/realtek8852/rtw8852a_fw.bin /target/lib/firmware/rtw8852a_fw.bin;
### Modprobe the Realtek 8852AE network driver on target machine
d-i preseed/late_command string \
/bin/cp /cdrom/realtek8852/rtw89core.ko /target/lib/modules/5.10.0-8-amd64/rtw89core.ko; \
/bin/cp /cdrom/realtek8852/rtw89pci.ko /target/lib/modules/5.10.0-8-amd64/rtw89pci.ko; \
/bin/touch /target/etc/modules-load.d/rtw89.conf; \
/bin/echo "rtw89pci" >> /target/etc/modules-load.d/rtw89.conf;
答案1
我已经成功让 debian-installer 识别 Realtek 8852AE 芯片组并加载固件和内核模块,所以我想这就是我自己问题的答案:
### Make the Realtek 8852AE firmware available during installation
d-i preseed/early_command string \
/bin/cp /cdrom/realtek8852/rtw8852a_fw.bin /lib/firmware/rtw8852a_fw.bin
### Make the Realtek 8852AE network driver available during installation
d-i preseed/early_command string \
/bin/cp /cdrom/realtek8852/rtw89core.ko /lib/modules/5.10.0-8-amd64/rtw89core.ko; \
/bin/cp /cdrom/realtek8852/rtw89pci.ko /lib/modules/5.10.0-8-amd64/rtw89pci.ko
我最初的尝试失败了,因为在“preseed/early_command”阶段,没有加载其他模块,因此 modprobe 该模块的命令由于未满足的依赖关系而失败。
注意:early_和late_command接受用冒号(;)相互链接的多个命令,但要确保最后一个命令后面没有这样的冒号...
下一个挑战:在安装过程中实际连接到网络:/。