jwrdegoede / rtl8189ES_linux

78 stars 90 forks source link

Compilation errors on Orange Pi Zero plus 64-bit Armbian Ubuntu focal image. 5.8.13-sunxi64 #43

Closed sanjuruk closed 3 years ago

sanjuruk commented 3 years ago

I am trying to compile rtl8188fs again on Orange Pi Zero plus and saw @CGarces post on armbian forum

I am having trouble compiling it on Orange Pi Zero Plus device, which uses Armbian Ubuntu focal image. 5.8.13-sunxi64 The problem is compiling it on a 64bit system.

I tried steps mentioned on here to compile with failure. I updated the KSRC directory after installing header files as well: make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnu- KSRC=/lib/modules/$(uname -r)/build

still I encounter with some errors, /bin/sh: 1: arm-linux-gnu-gcc: not found (standard_in) 1: syntax error CC [M] /root/rtl8189ES_linux/core/rtw_cmd.o

Could you please take a look at this? Any tweaks I need to do in the MakeFile for compilation?

CGarces commented 3 years ago

Looks like you have a problem with the toolchain. See http://linux-sunxi.org/Toolchain I don't know what you are trying to do but note that aarch64 is the architecture for arm 64 bits, not arm

Also note that Armbian images already have this drivers, you don't need to add it manualy. https://github.com/armbian/build/blob/e8f961c9c7b9033cb28ad7faec3a217266d50384/lib/compilation-prepare.sh#L247

If you are building some Armbian image maybe should be better open an issue on the Armbian forums

sanjuruk commented 3 years ago

Thanks. My purpose is to compile the driver in Concurrent mode. I didn't quite manage to compile it on an Orange Pi device. How ever after referring to your link, I managed to comment out Concurrent definition while compiling a new image.