更新 kernel
echo "deb http://deb.debian.org/debian unstable main contrib non-free" | tee -a /etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian unstable main contrib non-free" | tee -a /etc/apt/sources.list
apt update
apt -y upgrade
安裝相關套件 (Debian)
apt-get -y install firmware-realtek firmware-misc-nonfree
安裝相關套件 (Proxmox)
apt-get -y install wpasupplicant
下載驅動程式
放置於:/lib/firmware/rtl_nic/
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8125b-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8125a-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8107e-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8107e-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168fp-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168h-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168h-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168g-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168g-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8106e-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8106e-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8411-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8411-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8402-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168f-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168f-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8105e-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168e-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168e-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168e-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168d-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168d-1.fw
更新驅動程式
update-initramfs -u
查看硬體位置
modinfo mt7921e | grep alias
編輯 /etc/modprobe.d/mt7921e.conf
加入以下內容
alias pci:v000014C3d00000616sv*sd*bc*sc*i* mt7921e
alias pci:v000014C3d00000608sv*sd*bc*sc*i* mt7921e
alias pci:v000014C3d00007922sv*sd*bc*sc*i* mt7921e
alias pci:v000014C3d00007961sv*sd*bc*sc*i* mt7921e
編輯 /etc/udev/rules.d/99-mt7921e.rules
加入以下內容
SUBSYSTEM=="drivers", DEVPATH=="/sys/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 0616"
SUBSYSTEM=="drivers", DEVPATH=="/sys/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 0608"
SUBSYSTEM=="drivers", DEVPATH=="/sys/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 7922"
SUBSYSTEM=="drivers", DEVPATH=="/sys/bus/pci/drivers/mt7921e", ATTR{new_id}="14c3 7961"
如果重啟後還是沒有 wlp4s0
先執行 modrpobe -r mt7921e 之後在 modprobe mt7921e 看看是否出現 wlp4s0
參考連結
https://bbs.archlinux.org/viewtopic.php?id=273620
https://www.cnblogs.com/magikos/p/Possible-missing-firmware.html
https://www.linuxcapable.com/install-upgrade-to-lastest-linux-kernel-on-debian-11-bullseye/
本文来自投稿,不代表本站立场,如若转载,请注明出处: