PDA

View Full Version : Problems with RTL8812 driver



willdlcr
2018-09-20, 21:00
Hi everyone,

I have installed the last image of Kali (2018.3) on my Raspberry Pi 3 (model B)


root@kali:~# uname -a
Linux kali 4.14.50-kali-v7+ #1 SMP Mon Jul 16 02:35:00 UTC 2018 armv7l GNU/Linux


I'm now trying to install the RTL8812au driver in order to use the Alfa Awus 1900 Wifi adapter and I'm facing some issues :

I first tried to use the package realtek-rtl88xxau-dkms and the console returned this :


Setting up realtek-rtl88xxau-dkms (5.2.20.2~20180812-0kali1) ...
Loading new realtek-rtl88xxau-5.2.20.2~20180812 DKMS files...
It is likely that 4.14.50-kali-v7+ belongs to a chroot's host
Building for 4.14.50-kali-v6, 4.14.50-kali-v6+, 4.14.50-kali-v7 and 4.14.50-kali-v7+
Building initial module for 4.14.50-kali-v6
Error! Bad return status for module build on kernel: 4.14.50-kali-v6 (armv7l)
Consult /var/lib/dkms/realtek-rtl88xxau/5.2.20.2~20180812/build/make.log for more information.


If ran the command once again and the error disappeared...


root@kali:~# apt install realtek-rtl88xxau-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
realtek-rtl88xxau-dkms is already the newest version (5.2.20.2~20180812-0kali1).
0 upgraded, 0 newly installed, 0 to remove and 406 not upgraded.

Then, I cloned the aircrack-ng git to compile the driver from source and i still have an error :


root@kali:~/rtl8812au# make ARCH=arm RTL8812=1
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.14.50-kali-v7+/build M=/root/rtl8812au modules
make[1]: *** /lib/modules/4.14.50-kali-v7+/build: No such file or directory. Stop.
make: *** [Makefile:1918: modules] Error 2

Same with the dkms method :



root@kali:~/rtl8812au# ./dkms-install.sh
About to run dkms install steps...
Error! DKMS tree already contains: rtl8812au-5.1.5
You cannot add the same module/version combo more than once.
Error! echo
Your kernel headers for kernel 4.14.50-kali-v7+ cannot be found at
/lib/modules/4.14.50-kali-v7+/build or /lib/modules/4.14.50-kali-v7+/source.
Error! echo
Your kernel headers for kernel 4.14.50-kali-v7+ cannot be found at
/lib/modules/4.14.50-kali-v7+/build or /lib/modules/4.14.50-kali-v7+/source.
Finished running dkms install steps.

I don't really know what to do...

I don't know if this is relevant for this situation but the /boot/firmware folder is empty

If anyone had an idea I would appreciate it ! :-)

Will

steev
2018-09-21, 21:30
It looks like there's a small issue with the headers package when installed.

In order to fix it, you'll need to do the following:


cd /lib/modules/4.14.50-kali-v7+/
ln -s /usr/src/linux-headers-4.14.50-kali-v7 build

And then attempt to re-install that module package.

Not sure exactly what is going on with the kernel deb package build scripts, but they're somehow stripping off the + from the headers, but not the modules.