Page 1 of 1

Compile 8812au driver for Nanopi Neo2 on Armbian

Posted: Thu Feb 14, 2019 6:11 am
by rhagu
Hi,
I am running Armbian Bionic on my Nanopi Neo2 and would like to install the https://github.com/aircrack-ng/rtl8812au drivers for my Alfa AWUS036ACH. When I choose to compile the dkms modules for the Nanopi Neo2 it fails using this cpu: CONFIG_PLATFORM_ARM_SUN50IW1P1. Is this the correct compilation target?

In the Makefile I found two lines:

Code: Select all

CROSS_COMPILE := /home/android_sdk/Allwinner/a64/android-51/lichee/out/sun50iw1p1/android/common/buildroot/external-toolchain/bin/aarch64-linux-gnu-
KSRC :=/home/android_sdk/Allwinner/a64/android-51/lichee/linux-3.10/

I assumed that I need the cross compiler from here: http://wiki.friendlyarm.com/wiki/index. ... ource_Code and then compile the module on a x86_64 cpu, is that correct? Can I compile the module directly on the Nanopi Neo2 as well?

I read the wiki entry and tried to cross compile the module but some errors turned up, are the modules mentioned at http://wiki.friendlyarm.com/wiki/index. ... ource_Code the right ones to compile this kernel driver?

kind regards,
rhagu

Re: Compile 8812au driver for Nanopi Neo2 on Armbian

Posted: Thu Feb 14, 2019 9:17 am
by igorp
rhagu wrote:
Hi,
I am running Armbian Bionic on my Nanopi Neo2 and would like to install the https://github.com/aircrack-ng/rtl8812au drivers for my Alfa AWUS036ACH. When I choose to compile the dkms modules for the Nanopi Neo2 it fails using this cpu: CONFIG_PLATFORM_ARM_SUN50IW1P1. Is this the correct compilation target?

In the Makefile I found two lines:

Code: Select all

CROSS_COMPILE := /home/android_sdk/Allwinner/a64/android-51/lichee/out/sun50iw1p1/android/common/buildroot/external-toolchain/bin/aarch64-linux-gnu-
KSRC :=/home/android_sdk/Allwinner/a64/android-51/lichee/linux-3.10/

I assumed that I need the cross compiler from here: http://wiki.friendlyarm.com/wiki/index. ... ource_Code and then compile the module on a x86_64 cpu, is that correct? Can I compile the module directly on the Nanopi Neo2 as well?

I read the wiki entry and tried to cross compile the module but some errors turned up, are the modules mentioned at http://wiki.friendlyarm.com/wiki/index. ... ource_Code the right ones to compile this kernel driver?

kind regards,
rhagu


Plug your Alfa.

https://twitter.com/armbian/status/1094882362037620736
Those drivers are included in latest Armbian. Just make sure you have latest kernel, 4.19.y

Re: Compile 8812au driver for Nanopi Neo2 on Armbian

Posted: Thu Feb 14, 2019 5:10 pm
by rhagu
Hi igorp,
thanks for your reply, but before I tried compiling the driver I tried kismet and although I could set the card into monitor mode, there were packets found.

edit: wow, it works with the stretch image :shock: no idea what i did to mess it up in the first place. Thanks for the advice :-)