How to install the driver for wifi chip rtl8852BE?

I did a few search for the driver, and I found this repo: GitHub - lwfinger/rtw89: Driver for Realtek 8852AE, an 802.11ax device
I did the following steps as the instruction says:

For Fedora: You can install them with the following command

sudo dnf install kernel-headers kernel-devel
sudo dnf group install “C Development Tools and Libraries”
git clone GitHub - lwfinger/rtw89: Driver for Realtek 8852AE, an 802.11ax device
cd rtw89
make
sudo make install

but at the “make” command I got this error:
[vu_@fedora ~]$ cd rtw89/
[vu_@fedora rtw89]$ make
make -C /lib/modules/6.0.7-301.fc37.x86_64/build M=/home/vu_/rtw89 modules
make[1]: *** /lib/modules/6.0.7-301.fc37.x86_64/build: No such file or directory. Stop.
make: *** [Makefile:86: all] Error 2

I also did a few search but still not figure out how to fix this :<

sudo dnf --refresh upgrade
sudo reboot

thank you, I ran that command and now it works, but somehow there is still no wifi icon in my laptop, is there any chance you can help me with this, lol

Make sure to disable Secure Boot in BIOS/EFI and then build the modules with DKMS:

sudo dnf install git dkms kernel-devel openssl
sudo git clone https://github.com/lwfinger/rtw89.git \
/usr/src/rtw89-git
sudo sed -e "/^MAKE/d;/^CLEAN/d
/^DEST_MODULE_LOCATION/s|/updates/|/extra|" \
/usr/src/rtw89-git/debian/rtw89-dkms.dkms \
| sudo tee /usr/src/rtw89-git/dkms.conf > /dev/null
sudo dkms add rtw89/git
sudo systemctl restart dkms.service
sudo tee /etc/modules-load.d/rtw89.conf << EOF > /dev/null
rtw_8852be
EOF
sudo systemctl restart systemd-modules-load.service
5 Likes

Hi, sorry for the delay, I just woke up an hour ago, after a “sudo dnf upgrade --refresh” (using ethernet) and a reboot the wifi somehow worked just fine, thank you for the help though

This got it working for me. When I ran these steps, I got an error, so I ran it a second time. Is this a problem ?

wifi works but there are errors in my dmesg:

[    4.718748] rtw89_8852be 0000:02:00.0: Direct firmware load for rtw89/rtw8852b_fw-1.bin failed with error -2
[    4.718771] rtw89_8852be 0000:02:00.0: Direct firmware load for rtw89/rtw8852b_fw.bin failed with error -2
[    4.718773] rtw89_8852be 0000:02:00.0: failed to early request firmware: -2
[    4.718835] rtw89_8852be 0000:02:00.0: enabling device (0000 -> 0003)
[    4.728344] Error: Driver 'rtw89_8852be' is already registered, aborting...
[    4.728384] snd_pci_acp6x 0000:34:00.5: enabling device (0000 -> 0002)
[    4.733272] rtw89_8852be 0000:02:00.0: Firmware version 0.29.29.0, cmd version 0, type 5
[    4.733275] rtw89_8852be 0000:02:00.0: Firmware version 0.29.29.0, cmd version 0, type 3

Is this a problem ?