Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #35

Open
zhuwei opened this issue Mar 19, 2024 · 10 comments
Open

install error #35

zhuwei opened this issue Mar 19, 2024 · 10 comments

Comments

@zhuwei
Copy link

zhuwei commented Mar 19, 2024

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

@zhuwei
Copy link
Author

zhuwei commented Mar 19, 2024

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

@svpcom
Copy link
Owner

svpcom commented Mar 19, 2024

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

@zhuwei
Copy link
Author

zhuwei commented Mar 20, 2024

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

@svpcom
Copy link
Owner

svpcom commented Mar 20, 2024

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.

@zhuwei
Copy link
Author

zhuwei commented Mar 20, 2024

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?

@svpcom
Copy link
Owner

svpcom commented Mar 20, 2024

If you do native build then don't specify any flags. Just run make clean; make

@svpcom
Copy link
Owner

svpcom commented Mar 20, 2024

Also no need to change anything in makefile

@zhuwei
Copy link
Author

zhuwei commented Mar 20, 2024

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.

@svpcom
Copy link
Owner

svpcom commented Mar 20, 2024

file scripts/basic/fixdep --- what arch it shows?

@svpcom
Copy link
Owner

svpcom commented Mar 20, 2024

Also don't use DKMS - run make command manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants