SpeedWorld Posted December 5, 2019 Posted December 5, 2019 (edited) I have trying to run DMKS for Armbian, but I alway get this error. About to run dkms install steps... Creating symlink /var/lib/dkms/rtl8821CU/5.4.1/source -> /usr/src/rtl8821CU-5.4.1 DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' KVER=4.19.62-sunxi....(bad exit status: 2) Error! Bad return status for module build on kernel: 4.19.62-sunxi (armv7l) Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' KVER=4.19.62-sunxi....(bad exit status: 2) Error! Bad return status for module build on kernel: 4.19.62-sunxi (armv7l) Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information. Finished running dkms install steps. make.log: DKMS make.log for rtl8821CU-5.4.1 for kernel 4.19.62-sunxi (armv7l) Thu Dec 5 10:46:21 UTC 2019 make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.62-sunxi/build M=/var/lib/dkms make[1]: Entering directory '/usr/src/linux-headers-4.19.62-sunxi' CC [M] /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.o gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together make[2]: *** [scripts/Makefile.build:304: /var/lib/dkms/rtl8821CU/5.4.1/build/c1 make[1]: *** [Makefile:1517: _module_/var/lib/dkms/rtl8821CU/5.4.1/build] Error2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.62-sunxi' make: *** [Makefile:2183: modules] Error 2 It is a Sunxi H3 armhf CPU, detail is here: CPU ARM Cortex-A7 Quad-Core 512KB L2-Cache (shared between four cores) 32 KB (Instruction) / 32KiB (Data) L1-Cache per core SIMD NEON, VFP4 Virtualization Large Physical Address Extensions (LPAE) 1TB GPU ARM Mali400 MP2 Featuring 1 vertex shader (GP) and 2 fragment shaders (PP). Complies with OpenGL ES 2.0 Memory DDR2/DDR2L-DDR3/DDR3L controller NAND Flash controller and 64-bit ECC Anyone can help me would me out? Edited December 5, 2019 by SpeedWorld
SpeedWorld Posted December 5, 2019 Author Posted December 5, 2019 ok, I answer myself: sudo cp /lib/modules/$(uname -r)/build/arch/arm/Makefile /lib/modules/$(uname -r)/build/arch/arm/Makefile.$(date +%Y%m%d%H%M) sudo sed -i 's/-msoft-float//' /lib/modules/$(uname -r)/build/arch/arm/Makefile sudo ln -s /lib/modules/$(uname -r)/build/arch/arm /lib/modules/$(uname -r)/build/arch/armv7l
Igor Posted December 5, 2019 Posted December 5, 2019 4 hours ago, SpeedWorld said: ok, I answer myself: ... which is a part of the README https://github.com/brektrou/rtl8821CU#arm-architecture-tweak-for-this-driver-this-solves-compilation-problem-of-this-driver Does it work now?
Recommended Posts