Results 1 to 9 of 9

Thread: RPi 3 AWUS1900 (RTL8814U) Problem

  1. #1
    Junior Member
    Join Date
    Oct 2017
    Posts
    5

    RPi 3 AWUS1900 (RTL8814U) Problem

    Hello, I am trying to install the driver for my AWUS1900 (RTL8814U) for my raspberry pi 3 but i get an error when trying to build it with the kernel. I tried a diferent kernel but it still won't work.

    Here is the driver I want to install. https://github.com/aircrack-ng/rtl8812au/tree/v4.3.21

    Here is the error i get when i try to install it.

    root@kali:~/rtl8812au# make RTL8814=1
    make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.9.41-Re4son-v7+/build M=/root/rtl8812au modules
    make[1]: Entering directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    Makefile:628: arch/armv7l/Makefile: No such file or directory
    make[1]: *** No rule to make target 'arch/armv7l/Makefile'. Stop.
    make[1]: Leaving directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    Makefile:1732: recipe for target 'modules' failed
    make: *** [modules] Error 2
    root@kali:~/rtl8812au#

    I have tried to solve this problem for around 2 days now but i can't seem to solve it.

  2. #2
    Senior Member
    Join Date
    Dec 2016
    Posts
    112
    You need the linux-headers

  3. #3
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128
    The re4son-kernel comes with headers but you need to install them manually:

    cd /usr/local/src/re4son-kernel_4*
    ./install.sh -e

    In hindsight I should have included the option to install them during the main kernel install - will include it in a future release.
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  4. #4
    Junior Member
    Join Date
    Oct 2017
    Posts
    5
    Quote Originally Posted by re4son View Post
    The re4son-kernel comes with headers but you need to install them manually:

    cd /usr/local/src/re4son-kernel_4*
    ./install.sh -e

    In hindsight I should have included the option to install them during the main kernel install - will include it in a future release.
    yes. I know and i did and here is the result...

    root@kali:/usr/local/src/re4son-kernel_4.9.41-20170927# ./install.sh -e

    **** Installing Re4son-Kernel headers ****
    (Reading database ... 157364 files and directories currently installed.)
    Preparing to unpack raspberrypi-kernel-headers_4.9.41-20170927_armhf.deb ...
    Unpacking raspberrypi-kernel-headers (4.9.41-20170927) over (4.9.41-20170927) ...
    Setting up raspberrypi-kernel-headers (4.9.41-20170927) ...
    run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.41-Re4son+
    Error! Bad return status for module build on kernel: 4.9.41-Re4son+ (armv7l)
    Consult /var/lib/dkms/realtek-rtl88xxau/5.1.5~20170828/build/make.log for more information.
    run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.41-Re4son-v7+
    Error! Bad return status for module build on kernel: 4.9.41-Re4son-v7+ (armv7l)
    Consult /var/lib/dkms/realtek-rtl88xxau/5.1.5~20170828/build/make.log for more information.
    **** Installation completed ****

    And when i check the log it say the samse as my first post...

  5. #5
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128
    I see. Give this a try:

    make ARCH=arm RTL8814=1
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  6. #6
    Junior Member
    Join Date
    Oct 2017
    Posts
    5
    Quote Originally Posted by re4son View Post
    I see. Give this a try:

    make ARCH=arm RTL8814=1
    i tried and it still say the same..

    Do you have discord or something ?

  7. #7
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    128
    Works fine for me:

    re4son@kali-pi:~/dev/rtl8812au$ make ARCH=arm RTL8814=1
    make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.9.41-Re4son-v7+/build M=/home/re4son/dev/rtl8812au modules
    make[1]: Entering directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_cmd.o
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_security.o
    .
    <snip>
    .
    CC [M] /home/re4son/dev/rtl8812au/platform/platform_ops.o
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_mp.o
    LD [M] /home/re4son/dev/rtl8812au/8814au.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/re4son/dev/rtl8812au/8814au.mod.o
    LD [M] /home/re4son/dev/rtl8812au/8814au.ko
    make[1]: Leaving directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  8. #8
    Junior Member
    Join Date
    Oct 2017
    Posts
    5
    Quote Originally Posted by re4son View Post
    Works fine for me:

    re4son@kali-pi:~/dev/rtl8812au$ make ARCH=arm RTL8814=1
    make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.9.41-Re4son-v7+/build M=/home/re4son/dev/rtl8812au modules
    make[1]: Entering directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_cmd.o
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_security.o
    .
    <snip>
    .
    CC [M] /home/re4son/dev/rtl8812au/platform/platform_ops.o
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_mp.o
    LD [M] /home/re4son/dev/rtl8812au/8814au.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/re4son/dev/rtl8812au/8814au.mod.o
    LD [M] /home/re4son/dev/rtl8812au/8814au.ko
    make[1]: Leaving directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    Ok, i am going to reinstall kali with your kernel preinstalled and test... i will write back what i did and how it went

  9. #9
    Junior Member
    Join Date
    Oct 2017
    Posts
    5
    Quote Originally Posted by re4son View Post
    Works fine for me:

    re4son@kali-pi:~/dev/rtl8812au$ make ARCH=arm RTL8814=1
    make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.9.41-Re4son-v7+/build M=/home/re4son/dev/rtl8812au modules
    make[1]: Entering directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_cmd.o
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_security.o
    .
    <snip>
    .
    CC [M] /home/re4son/dev/rtl8812au/platform/platform_ops.o
    CC [M] /home/re4son/dev/rtl8812au/core/rtw_mp.o
    LD [M] /home/re4son/dev/rtl8812au/8814au.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/re4son/dev/rtl8812au/8814au.mod.o
    LD [M] /home/re4son/dev/rtl8812au/8814au.ko
    make[1]: Leaving directory '/usr/src/linux-headers-4.9.41-Re4son-v7+'
    Yes, Thanks! it works now!

    I did the following and now it is working!

    1) Reinstalled Kali with your kernel pre-installed (from your site)
    2) apt-get update && apt-get upgrade && apt-get dist-upgrade && reboot
    3) cd /usr/local/src/re4son-kernel_4* and then ./install.sh -e
    4) Did a git clone from the site
    5) make ARCH=arm RTL8814=1 and make install ARCH=arm RTL8814=1
    6) Reboot

    And then it worked, Thanks! <3

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
  •