Page 1 of 1

Driver rtw88 wifi RTL8821CE

Posted: Wed Apr 24, 2024 8:58 pm
by judd
As a first step, install the firmware package, as the firmware comes by default in the kernel, but is not enabled due to licensing issues:

Code: Select all

$ ls -al /boot/kernel/if_rtw88.ko
-r--r--r-- 1 root wheel 1185856 26 Dec. 04:37 /boot/kernel/if_rtw88.ko
Then install the driver:

Code: Select all

pkg install wifi-firmware-rtw88-kmod

From Realtek RTW88 FreeBSD wiki "Currently known issue":

Does not work on machines with more than 4GB of physical memory. Likely busdma+LinuxKPI problem to be investigated. D34715 has a change to gather data (which is in freebsd/main by now).

You need to boot with compat.linuxkpi.skb.mem_limit=1 in loader.conf to limit DMA to 32bit (announcement on freebsd-wireless for more info).


/boot/loader.conf:

Code: Select all

compat.linuxkpi.skb.mem_limit=1
reboot system, see if the driver has attached to the device, if not, try:

Code: Select all

kldload if_rtw88

Souce: https://forums.freebsd.org/threads/driv ... 1ce.93184/

Re: Driver rtw88 wifi RTL8821CE

Posted: Wed Apr 24, 2024 11:44 pm
by neville
Thanks!