最近安装了openEuler24.03,但是开机以后没有无线网卡的驱动,但是好在github上有个项目提供了rtl89代码的存储库,包含了以下网卡的驱动程序:Realtek 8851BE, 8852AE, 8852BE, 8852CE, and 8922AE。
安装前需要安装 “make”、“gcc”、“kernel headers”、“kernel build essentials” 和 “git”。
git clone https://github.com/lwfinger/rtw89.git
cd rtw89
make
sudo make sign-install
但是安装好后重启发现还是没有无线网卡选项,使用dmesg | grep firmware
查看内核缓冲区是否有报错信息:
[sea@localhost ] sudo dmesg | grep firmware
[sudo] sea 的密码:
[ 0.053517] Spectre V2 : Enabling Restricted Speculation for firmware calls
[ 2.943852] bluetooth hci0: Direct firmware load for rtl_bt/rtl8852au_fw.bin failed with error -2
[ 2.944314] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8852au_fw not found
[ 2.968768] rtw89_8852ae 0000:02:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2
[ 2.969693] rtw89_8852ae 0000:02:00.0: failed to early request firmware: -2
[ 2.972900] rtw89_8852ae 0000:02:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2
[ 2.973529] rtw89_8852ae 0000:02:00.0: failed to wait firmware completion
[ 3.345750] nouveau 0000:01:00.0: acr: firmware unavailable
[ 3.345889] nouveau 0000:01:00.0: gr: firmware unavailable
[ 3.346030] nouveau 0000:01:00.0: sec2: firmware unavailable
[ 3.650559] r8169 0000:03:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2
[ 3.650569] r8169 0000:03:00.0: Unable to load firmware rtl_nic/rtl8168h-2.fw (-2)
[ 261.674611] rtw89_8852ae 0000:02:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2 /lib/firmware/rtw89/
[ 261.674618] rtw89_8852ae 0000:02:00.0: failed to early request firmware: -2
[ 261.676365] rtw89_8852ae 0000:02:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2
[ 261.676372] rtw89_8852ae 0000:02:00.0: failed to wait firmware completion
发现缺少rtw89/rtw8852a_fw.bin
文件,直接去另一个系统的/lib/firmware/rtw89目录下复制一份过来,然后:
sudo chmod 644 /lib/firmware/rtw89/rtw8852a_fw.bin
sudo modprobe -r rtw_8852ae
sudo modprobe rtw_8852ae
然后重启解决。