Hello community,
I spended now several hours to get the rtl8812 driver for an Edimax 7811UTC (5GHz USB Wifi) compiled.
My board is an Nanopi-Neo2, uname -a says
----
I tried several Methods from cross-compile on an Ubuntu x86_64 to compile native on Nanopi, either it fails for compile or, and that is my actual issue, get just an ARM 32bit elf Kernel module out (required one is for aarch64).
My latest steps for cross compile are:
Installed prebuilt toolchain and set path to it.
(optionally I tried Ubuntu arm-none-abi TC as well)
Next I preconfigured the kernel source:
Then I got the rtl8812 kernel module from https://github.com/gnab/rtl8812au.git
Before I changed the Platform:
And I got a pecious 8812au.ko file, but for the wrong architecture (ELF 32 EABI5 rather then aarch64).
----
My question are now:
1) How can I get a 64bit kernel module compiled on Nanopi or cross compiled.
2) alternatively an option is definitively to switch the whole Nanopi to 32 Bit. Is there an 32 Bit Image?
Any help is apreciated, many thanks in advance, Axel.
I spended now several hours to get the rtl8812 driver for an Edimax 7811UTC (5GHz USB Wifi) compiled.
My board is an Nanopi-Neo2, uname -a says
Code: Select all
Linux NanoPi-NEO2 4.14.0 #25 SMP Fri May 11 16:57:53 CST 2018 aarch64 aarch64 aarch64 GNU/Linux
----
I tried several Methods from cross-compile on an Ubuntu x86_64 to compile native on Nanopi, either it fails for compile or, and that is my actual issue, get just an ARM 32bit elf Kernel module out (required one is for aarch64).
My latest steps for cross compile are:
Code: Select all
$ git clone https://github.com/ARMWorks/NanoPi-Linux-4.1.y.git
$ git clone https://github.com/friendlyarm/prebuilts.git
$ sudo tar xzf prebuilts/gcc/arm-linux-gcc-4.4.3.tar.gz -C /
Installed prebuilt toolchain and set path to it.
(optionally I tried Ubuntu arm-none-abi TC as well)
Next I preconfigured the kernel source:
Code: Select all
make oldconfig && make prepare
Then I got the rtl8812 kernel module from https://github.com/gnab/rtl8812au.git
Before I changed the Platform:
Code: Select all
diff --git a/Makefile b/Makefile
index 71d0660..6b14487 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ CONFIG_EXT_CLK = n
CONFIG_FTP_PROTECT = n
CONFIG_WOWLAN = n
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_JB_X86 = n
CONFIG_PLATFORM_ARM_S3C2K4 = n
@@ -80,7 +80,7 @@ CONFIG_PLATFORM_DMP_PHILIPS = n
CONFIG_PLATFORM_TI_DM365 = n
CONFIG_PLATFORM_MSTAR_TITANIA12 = n
CONFIG_PLATFORM_SZEBOOK = n
-CONFIG_PLATFORM_ARM_SUNxI = n
+CONFIG_PLATFORM_ARM_SUNxI = y
CONFIG_PLATFORM_ARM_SUN6I = n
CONFIG_PLATFORM_ACTIONS_ATM702X = n
CONFIG_PLATFORM_ACTIONS_ATV5201 = n
Code: Select all
cd rtl8812au
make CROSS_COMPILE=arm-none-eabi- KSRC=../NanoPi-Linux-4.1.y clean all
And I got a pecious 8812au.ko file, but for the wrong architecture (ELF 32 EABI5 rather then aarch64).
----
My question are now:
1) How can I get a 64bit kernel module compiled on Nanopi or cross compiled.
2) alternatively an option is definitively to switch the whole Nanopi to 32 Bit. Is there an 32 Bit Image?
Any help is apreciated, many thanks in advance, Axel.