I failed to compile the 8812au.ko driver on raspberry pi2, too.
I have compiled using the latest version 3.18.9-v7+ #767 SMP PREEMPT Sat Mar 7 21:52:35 GMT 2015 armv7l GNU/Linux
Code: Select all
umask 0
mkdir src
cd src
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
sudo ln -s /home/pi/src/linux /lib/modules/`uname -r`/build
sudo ln -s /home/pi/src/linux /lib/modules/`uname -r`/source
cd linux
make clean
make bcm2709_defconfig
make modules_prepare
zcat /proc/config.gz >.config
cp ../firmware/extra/Module7.symvers Module.symvers
cd ../rtl8812au
vi Makefile
I changed the Makefile to compile on raspberry pi
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = y
Code: Select all
make clean
make
sudo insmod 8812au.ko
I used Module7.symvers as Module.symvers because of the pi2 (BCM2709) which is an arm 7 architecture.
On insmod I get some syslogd message:
Code: Select all
Message from syslogd@berry1 at Mar 15 14:53:09 ...
kernel:[ 2521.415542] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
kernel:[ 2521.514032] Process insmod (pid: 6241, stack limit = 0x95bc2238)
kernel:[ 2521.521240] Stack: (0x95bc3e88 to 0x95bc4000)
kernel:[ 2521.526808] 3e80: 7f1582e4 00007fff 8008d234 95bc2000 95bc3f34 bccc1000
kernel:[ 2521.537360] 3ea0: 00000000 95bc3f7c 95bc3f50 000015a9 bcdb1310 7f1582e4 95bc2008 7f158320
kernel:[ 2521.548013] 3ec0: 7f158448 00000000 95bc2000 808986ac 76d50000 ba7b96bc 0000046d 00000000
kernel:[ 2521.558756] 3ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
kernel:[ 2521.569519] 3f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000080 0016746d
kernel:[ 2521.580320] 3f20: 76bf7000 76ec9948 00000080 8000ed44 95bc2000 00000000 95bc3fa4 95bc3f48
kernel:[ 2521.591231] 3f40: 80090a4c 8008e968 bccc1000 0016746d bcdb0d48 bcdb0bc5 bce18948 000f0e48
kernel:[ 2521.602240] 3f60: 000fc728 00000000 00000000 00000000 00000025 00000026 0000001a 0000001e
kernel:[ 2521.613338] 3f80: 0000000e 00000000 00000000 7e81871c 00000000 77fc5030 00000000 95bc3fa8
kernel:[ 2521.624506] 3fa0: 8000eac0 8009096c 7e81871c 00000000 76bf7000 0016746d 76ec9948 76bf7000
kernel:[ 2521.635695] 3fc0: 7e81871c 00000000 77fc5030 00000080 77fc4f80 0016746d 76ec9948 00000000
kernel:[ 2521.646937] 3fe0: 00000000 7e8186c4 76ec0fb4 76e2bab4 60000010 76bf7000 0a4d524f 00000011
kernel:[ 2521.680410] Code: e51bc084 e15c0005 e2455008 0a000009 (e5953014)
Has anyone an idea, what I have to change in configuration?
There are some differences in the .config file on 'make bcm2709_defconfig' and 'zcat /proc/config.gz >.config', but skipping the 'zcat ..' didn't change anything