我正试图在一台新的联想笔记本电脑(T14s Gen1)上安装。笔记本电脑有一个Realtek8852AE wifi芯片,目前内核中没有添加任何驱动程序。有一个合适的驱动程序出现在Github存储库上,我可以在另一台Debian机器上同时构建固件和内核模块。
我已经创建了一个棒,并添加了我的常规预置文件,这是很好的工作。我尝试添加一系列‘early_command _命令’,但是d-我总是在它遇到的第一个上抛出一个错误。任何指针都有什么问题吗?
### 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;发布于 2021-09-20 18:47:40
我已经成功地让识别了Realtek8852AE芯片组,并加载了固件和内核模块,所以我想这就是我自己问题的答案:
### 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“阶段,没有加载其他模块,因此,要探测这个模块的命令由于未满足的依赖关系而失败。
注意: early_和Mental _命令使用冒号(;)彼此链接在一起的多个命令,但要确保最后一个命令后面没有这样的冒号.
下一个挑战:在安装过程中实际连接到网络:/。
https://unix.stackexchange.com/questions/669785
复制相似问题