cilynx / rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959

rtl88x2bu driver updated for current kernels.
http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
359 stars 117 forks source link

Bad return status for module build on kernel: 4.19.66-v7l+ (armv7l) #37

Open FattyboyN opened 4 years ago

FattyboyN commented 4 years ago

DKMS make.log for rtl88x2bu-5.3.1 for kernel 4.19.66-v7l+ (armv7l) Wed 4 Sep 13:36:30 AEST 2019 /bin/sh: 1: bc: not found make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.19.66-v7l+/build M=/var/lib/dkms/rtl88x2bu/5.3.1/build modules make[1]: Entering directory '/usr/src/linux-headers-4.19.66-v7l+' Makefile:614: arch/armv7l/Makefile: No such file or directory make[1]: No rule to make target 'arch/armv7l/Makefile'. Stop. make[1]: Leaving directory '/usr/src/linux-headers-4.19.66-v7l+' make: [Makefile:2011: modules] Error 2

How to fix this?

kaydubbed commented 4 years ago

Pi4?

You need to change the makefile.

sed -i 's/I386_PC = y/I386_PC = n/' Makefile sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile

cilynx commented 4 years ago

As @kaydubbed says, you need to make sure you're enabling the correct platform in the Makefile.

Also, you're missing bc per /bin/sh: 1: bc: not found. You'll need to install bc for the gcc version check in the Makefile.

Can you confirm what system you're compiling for and if you have expr available by default? We could potentially replace bc with expr, but there's not much point if it's not available either.