Compilation of the WI-FI driver: "Invalid module format" in KALI Linux!


(igor) #1

Hello, friends! Can not install WIFI driver writes that: "insmod: ERROR: could not insert module /home/pi/rtl8812AU_8821AU_linux-master/8812au.ko: Invalid module format". He is my BananaPI M2 Berry.

Installed KALI Linux: “2018-01-04-kali-xfce-desktop-v1.0-bpi-m2u-sd-emmc.img”.

Created links to “/lib/modules/3.10.108-BPI-M2U-Kernel” because they were incorrect. ln -s / usr / src / kernel build and ln -s / usr / src / kernel sourse Then: sudo apt-get install build-esential

I downloaded the source code for the driver “rtl8812AU_8821AU_linux-master.zip” from here: “https://github.com/bits3rpent/rtl8812AU_8821AU_linux”. In the sources, fixed the lines to “statics” in “./include /ieee80211.x” for is_multicast_mac_addr and for is_broadcast_mac_addr.

Then I compiled and tried to load the module but I gave out that “8812au.ko: Invalid module format” what to do?

3.10.108-BPI-M2U-Kernel


(igor) #2

Thanks! It was executed without errors, used: “https://github.com/BPI-SINOVOIP/BPI-M2U-bsp”.

(Удачи!)