Compiling 8812au driver for 4.1.7-v7+ - Raspberry Pi Forums
i'm trying compile 8812au driver use buffalo wi-ut-433dm wireless dongle
results of uname -a are:
performed following steps:
made following changes make file rtl3312au: attempting cross compile on following machine: have run apt-get upgrade/update , necessary libraries installed , tools / compilers rpi2 on path machine.
attempted following compile driver: able 1247282 byte 8812au.ko driver file after completing above steps.
when try insert module on rpi2 have following output: realtek 802.11ac driver has been part of main repository rasbian awhile none of released kernels have included addition buffalo wi-u2-433dm. step missing during compile process?
results of uname -a are:
code: select all
linux raspberrypi 4.1.7-v7+ #817 smp preempt sat sep 19 15:32:00 bst 2015 armv7l gnu/linux
code: select all
git clone --depth=1 https://github.com/raspberrypi/linux.git git clone --depth=1 https://github.com/raspberrypi/firmware.git git clone --depth=1 https://github.com/gnab/rtl8812au.git #the gnab driver has been updated include settings wi-ut-433dm git clone https://github.com/raspberrypi/tools #the tool chain has been placed in path.
code: select all
config_platform_i386_pc = n config_platform_arm_rpi = y
code: select all
linux ubuntu 3.8.0-39-generic #58~precise1-ubuntu smp fri may 2 21:33:40 utc 2014 x86_64 x86_64 x86_64 gnu/linux
attempted following compile driver:
code: select all
cd linux make arch=arm cross_compile=arm-linux-gnueabihf- clean make arch=arm cross_compile=arm-linux-gnueabihf- bcm2709_defconfig make arch=arm cross_compile=arm-linux-gnueabihf- modules_prepare cp ../firmware/extra/module7.symvers module.symvers cd ../rtl8812au make arch=arm cross_compile=arm-linux-gnueabihf- clean make arch=arm cross_compile=arm-linux-gnueabihf- ksrc=../linux
when try insert module on rpi2 have following output:
code: select all
sudo insmod 8812au.ko error: not insert module 8812au.ko: invalid module format
you have got wrong kernel source , firmware versions. check makefile - linux/makefile , think find show kernel @ least 4.1.10.
if use command git clone --depth=1 clone latest versions of kernel , firmware, @ least 4.1.10(-v7)+ #820. give incorrect files bcm2709_defconfig , module7.symvers when running modules_prepare before compiling wifi module , cause error see insmod. need clone older version of kernel , firmware. can increasing --depth= value. suggest setting depth kernel 100 , firmware 10, although i'm not sufficient.
select kernel version go linux directory , use commandand select correct firmware version go firmware directory , use commandif error commit not being found either kernel or firmware checkout need clone again whichever gave error using larger value --depth value , try checkout command again.
1 small warning. there issue firmware repository regarding 4.1.7(-v7)+ #817. raised issue on firmware repository expect remain in error. if check firmware commit 960832a6c2 find firmware/extra/git_hash show kernel commit 59e76bb7e2 , uname_string7 shows 4.1.7-v7+ , #815, if examine kernel7.img @ end of file copy of uname_string7 , shows 4.1.7-v7+ , #817. however, have compiled various drivers including 8812au , work version.
in fact if want try driver can download , install using commandsand includes usb id 0411:0242 wifi.
hope helps driver compiled ok, if have problems can try 1 have compiled.
mrengman
if use command git clone --depth=1 clone latest versions of kernel , firmware, @ least 4.1.10(-v7)+ #820. give incorrect files bcm2709_defconfig , module7.symvers when running modules_prepare before compiling wifi module , cause error see insmod. need clone older version of kernel , firmware. can increasing --depth= value. suggest setting depth kernel 100 , firmware 10, although i'm not sufficient.
select kernel version go linux directory , use command
code: select all
git checkout 59e76bb7e2
code: select all
git clone 960832a6c2
1 small warning. there issue firmware repository regarding 4.1.7(-v7)+ #817. raised issue on firmware repository expect remain in error. if check firmware commit 960832a6c2 find firmware/extra/git_hash show kernel commit 59e76bb7e2 , uname_string7 shows 4.1.7-v7+ , #815, if examine kernel7.img @ end of file copy of uname_string7 , shows 4.1.7-v7+ , #817. however, have compiled various drivers including 8812au , work version.
in fact if want try driver can download , install using commands
code: select all
wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.1.7-v7-817.tar.gz tar xzf 8812au-4.1.7-v7-817.tar.gz ./install.sh
hope helps driver compiled ok, if have problems can try 1 have compiled.
mrengman
raspberrypi
Comments
Post a Comment