我正在尝试在一台新的联想笔记本电脑(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;