I'm having trouble to compile and use drivers for dwa-171 wifi usb. I have tried a lot of things but currently i'm unable to load module.
Recap of what i have done so far:
Getting kernel sources:
mkdir src && cd src
git clone --depth 500 https://github.com/raspberrypi/linux.git
git clone --depth 15 https://github.com/raspberrypi/firmware.git
Link sources:
sudo ln -s /home/pi/src/linux /lib/modules/$(uname -r)/build
sudo ln -s /home/pi/src/linux/arch/arm /home/pi/src/linux/arch/armv6l
Preparing to compile modules
make mrproper && make menuconfig && make modules_prepare
cp ../firmware/extra/Module.symvers .
Get drivers and compile
git clone https://github.com/gnab/rtl8812au
cd rtl8812au/
*edit Makefile for raspberry*
make clean && make && make install
Insert fresh module
insmod 8812au.ko
Which return me: Error: could not insert module 8812au.ko: Invalid module format
I haven't made much more progress, trying different stuff without success. Any help will be greatly appreciated. Thank you :)
EDIT:
Solved, somes errors where mades when creating kernel config file. Copying current config and recompile does the job.
zcat /proc/config.gz > ./.config
wpa_supplicant.conf
.sudo make make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.18.7-v7+/build M=/opt/rtl8812au modules make[1]: Entering directory '/lib/modules/3.18.7-v7+/build' make[1]: *** No rule to make target 'modules'. Stop. make[1]: Leaving directory '/lib/modules/3.18.7-v7+/build' Makefile:1051: recipe for target 'modules' failed make: *** [modules] Error 2