rtl8812au
rtl8812au copied to clipboard
Unable to build on AML-S905X-CC
I'm trying to use this on a Libre Computer Board (Le Potato AML S905X-CC), with a Raspbian image I ported from a Raspberry Pi. I've run the steps listed for Buster, exporting the arm and arm64 architecture but still run into the same issue. I believe arm64 is what I should be using, though the system indicates aarch64 as opposed to arm64.
uname -a
Linux powermonlibre 6.0.7-00590-gc893dc8b7efe #1 SMP PREEMPT Mon Nov 7 23:51:44 UTC 2022 aarch64 GNU/Linux
sudo make dkms_install
mkdir: created directory '/usr/src/8812au-5.6.4.2_35491.20191025'
cp -r * /usr/src/8812au-5.6.4.2_35491.20191025
dkms add -m 8812au -v 5.6.4.2_35491.20191025
Creating symlink /var/lib/dkms/8812au/5.6.4.2_35491.20191025/source ->
/usr/src/8812au-5.6.4.2_35491.20191025
DKMS: add completed.
dkms build -m 8812au -v 5.6.4.2_35491.20191025
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
ARCH=arm ARCH=aarch64 ARCH=arm64 'make' -j4 KVER=6.0.7-00590-gc893dc8b7efe KSRC=/lib/modules/6.0.7-00590-gc893dc8b7efe/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.7-00590-gc893dc8b7efe (aarch64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
make: *** [Makefile:2318: dkms_install] Error 10
nano /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log
DKMS make.log for 8812au-5.6.4.2_35491.20191025 for kernel 6.0.7-00590-gc893dc8b7efe (aarch64)
Wed 9 Nov 11:04:49 CST 2022
make[1]: Entering directory '/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build'
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/6.0.7-00590-gc893dc8b7efe/build M=/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build modules
make[2]: Entering directory '/usr/src/linux-headers-6.0.7-00590-gc893dc8b7efe'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Debian 8.3.0-6) 8.3.0
You are using: gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_security.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_debug.o
CC [M] /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_io.o
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
gcc: error: unrecognized command line option ‘-msign-return-address=all’
gcc: error: unrecognized command line option ‘-msign-return-address=all’
make[3]: *** [scripts/Makefile.build:249: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_cmd.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:249: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_security.o] Error 1
gcc: error: unrecognized command line option ‘-msign-return-address=all’
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
make[3]: *** [scripts/Makefile.build:249: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_debug.o] Error 1
gcc: error: unrecognized command line option ‘-msign-return-address=all’
make[3]: *** [scripts/Makefile.build:249: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_io.o] Error 1
make[2]: *** [Makefile:1852: /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.0.7-00590-gc893dc8b7efe'
make[1]: *** [Makefile:2258: modules] Error 2
make[1]: Leaving directory '/var/lib/dkms/8812au/5.6.4.2_35491.20191025/build'
Try running this to boot raspbian on the le potato https://github.com/libre-computer-project/libretech-raspbian-portability then you should be able to run the generic debian instructions