SEE POST#648 BELOW FOR AN EASIER METHOD
Howto: Compile and activate RTL8822CS wifi driver (for X96Max+, X96Air, rev 2?)
- Download rtl8822cs-dkms-git package from here http://ge.tt/7XzObYA3
- Decrompress it to a folder of your choice
- Open a terminal and cd into that folder
- When you type
ls
you should see three files: arch.patch, dkms.conf and PKGBUILD - Type
sudo pacman -S base-devel linux-vim-headers dkms bc git
to install the needed dependencies - Now type
makepkg -i
and wait …
Unfortunately, there is still an error and therefore some extra work has to be done:
- Type
cd src/rtl8822cs/
- Type
make
and wait for about 5 min. The driver should be compiled. - Type
sudo cp 88x2cs.ko /lib/modules/$(uname -r)
- Type
cd ../..
- Type
makepkg -i
once more - Finally, type
sudo modprobe 88x2cs
. If you do not get an error everything should be fine.
Not elegant but this is how it worked for me (I tried this procedure with a brand new Manjaro image). I hope it will also work for you.
Currently you still have to repeat that procedure when you upgrade to a new kernel. But once the error in the package is found the compilation by hand is not needed anymore and kernel updates should be no problem (hopefully).
@spikerguy Thank you for your invaluable help and support! Maybe you can have another look into the source.
When I insert MAKE[0]=“make” into dkms.conf I get:
...
(2/2) Install DKMS modules
==> dkms install --no-depmod -m rtl8822cs -v 0.1 -k 5.10.5-1-MANJARO-ARM
Error! Bad return status for module build on kernel: 5.10.5-1-MANJARO-ARM (aarch64)
[themojoman@X96MaxPlus rtl8822cs-dkms-git]$ cat /var/lib/dkms/rtl8822cs/0.1/build/make.log
DKMS make.log for rtl8822cs-0.1 for kernel 5.10.5-1-MANJARO-ARM (aarch64)
Mon Jan 25 04:56:47 PM CET 2021
make: *** No targets. Stop.
When I set it to MAKE[0]="" I get:
...
(2/2) Install DKMS modules
==> dkms install --no-depmod -m rtl8822cs -v 0.1 -k 5.10.5-1-MANJARO-ARM
Error! Build of 88x2cs.ko failed for: 5.10.5-1-MANJARO-ARM (aarch64)
Make sure the name of the generated module is correct and at the root of the
build directory, ...
[themojoman@X96MaxPlus rtl8822cs]$ cat /var/lib/dkms/rtl8822cs/0.1/build/make.log
DKMS make.log for rtl8822cs-0.1 for kernel 5.10.5-1-MANJARO-ARM (aarch64)
Mon Jan 25 03:59:07 PM CET 2021
make: Entering directory '/usr/lib/modules/5.10.5-1-MANJARO-ARM/build'
MODPOST /var/lib/dkms/rtl8822cs/0.1/build/Module.symvers
make: Leaving directory '/usr/lib/modules/5.10.5-1-MANJARO-ARM/build'