Open antoinezambelli opened 4 years ago
Did you do:
sed -i 's/I386_PC = y/I386_PC = n/' Makefile sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile
I have it running well on my RPi4 but I am using the 64bit Gentoo build
Yeah I edited the Makefile. This error looks very similar to a mismatched kernel headers error I just learned about (yay?). I'll dig into it over the weekend and confirm. If it is the kernel mismatch then it's not an issue with this driver but with my Pi that I would need to reboot to the correct kernel/header version.
when I run 'sudo dkms build -m rtl88x2bu -v ${VER}' I got a error my error log: DKMS make.log for rtl88x2bu-5.3.1 for kernel 4.19.75-v7+ (armv7l) Tue 31 Mar 2020 05:17:21 PM CST make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.75-v7+/build M=/var/lib/dkms/rtl88x2bu/5.3.1/build modules make[1]: Entering directory '/usr/src/linux-headers-4.19.75-v7+' CC [M] /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_cmd.o CC [M] /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_security.o CC [M] /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_debug.o CC [M] /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_io.o /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: [scripts/Makefile.build:303: /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_io.o] Error 2 make[2]: Waiting for unfinished jobs.... /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: [scripts/Makefile.build:303: /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_security.o] Error 2 /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: [scripts/Makefile.build:303: /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_cmd.o] Error 2 /bin/sh: 1: scripts/basic/fixdep: Exec format error make[2]: [scripts/Makefile.build:303: /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_debug.o] Error 2 make[1]: [Makefile:1519: module/var/lib/dkms/rtl88x2bu/5.3.1/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.19.75-v7+'
my raspbian build: Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
How to fix it or avoid it ? thanks!
you seem to be building for 5.3.1 and have 4.19 installed.
Not sure where this comes from, I followed the README instructions on a fresh Buster build. It fails pretty quickly on the
build
step, here is my log file. Any ideas?