Results 1 to 2 of 2

Thread: Problems with RTL8812 driver

  1. #1
    Join Date
    2018-Sep
    Posts
    1

    Problems with RTL8812 driver

    Hi everyone,

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

    Code:
    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 :

    Code:
    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...

    Code:
    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 :

    Code:
    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 :

    Code:
    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

  2. #2
    Join Date
    2014-Feb
    Posts
    309
    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:

    Code:
    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.

Similar Threads

  1. Problems with amd driver in kali
    By savaa in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2021-04-29, 12:27
  2. Nvidia driver problems
    By Nemon in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2018-05-22, 06:41
  3. Network Driver Problems
    By Image_Shack in forum Installing Archive
    Replies: 1
    Last Post: 2013-08-12, 10:42

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •