Open zhuwei opened 7 months ago
DKMS make.log for rtl8812au-5.2.20.2 for kernel 4.19.232 (aarch64)
Tue Mar 19 13:14:05 CST 2024
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -C /lib/modules/4.19.232/build M=/var/lib/dkms/rtl8812au/5.2.20.2/build O="" modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.232'
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o] Error 126
make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o'
make[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o] Error 126
make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o'
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o] Error 126
make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o'
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o] Error 126
make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o'
make[1]: *** [Makefile:1676: _module_/var/lib/dkms/rtl8812au/5.2.20.2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.232'
make: *** [Makefile:1603: modules] Error 2
No, that it is because use have invalid cross-compiler setup. You need to speicify host arch as x86_64 or setup qemu-static to be able to execute arm64 ELFs directly
No, that it is because use have invalid cross-compiler setup. You need to speicify host arch as x86_64 or setup qemu-static to be able to execute arm64 ELFs directly
Thank you for your reply But I didn't understand what you meant. I made the modifications based on the readme. I think it should be possible?
$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed '120i\CONFIG_PLATFORM_ARM64 = y' Makefile
This errors show that built tools (which running locally during build) compiled by cross-compiler (for arm64) but they need to be compiled by host compiler (for x86). You need to specify host arch somewhere or setup qemu-aarch64-static to be able to execute arm binaries on x86 directly.
This errors show that built tools (which running locally during build) compiled by cross-compiler (for arm64) but they need to be compiled by host compiler (for x86). You need to specify host arch somewhere or setup qemu-aarch64-static to be able to execute arm binaries on x86 directly.
I'm sorry, maybe I didn't explain it clearly. I am currently doing this operation on Ubuntu arm64. I don't quite understand what you said about "You need to specify host arch somewhere". Is there a specific execution command?
If you do native build then don't specify any flags. Just run make clean; make
Also no need to change anything in makefile
If you do native build then don't specify any flags. Just run
make clean; make
Is it because the kernel version is too low?
DKMS make.log for rtl8812au-5.2.20.2 for kernel 4.19.232 (aarch64) Tue Mar 19 10:02:35 CST 2024 make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.19.232/build M=/var/lib/dkms/rtl8812au/5.2.20.2/build O="" modules make[1]: Entering directory '/usr/src/linux-headers-4.19.232' CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o CC [M] /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o] Error 126 make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_io.o' make[2]: *** Waiting for unfinished jobs.... /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o] Error 126 make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_cmd.o' /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o] Error 126 make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_security.o' /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: *** [scripts/Makefile.build:333: /var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o] Error 126 make[2]: *** Deleting file '/var/lib/dkms/rtl8812au/5.2.20.2/build/core/rtw_debug.o' make[1]: *** [Makefile:1676: _module_/var/lib/dkms/rtl8812au/5.2.20.2/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.232' make: *** [Makefile:1603: modules] Error 2
@svpcom Unfortunately, this error log appears.
file scripts/basic/fixdep
--- what arch it shows?
Also don't use DKMS - run make command manually
Is it because the kernel version is too low?