Guys can you guide me how to build the driver for CC Final? I have a Linux box with everything installed and I can build the current trunk, but I need the driver built for CC 15.05.
If you have a current CC build tree, then use that but replace package/kernel/mwlwifi/Makefile with the current trunk version: http://git.openwrt.org/?p=openwrt.git;a … 50d2a980c5
Remove any other files in package/kernel/mwlwifi/. They are not needed for CC.
Then build as usual:
make V=s package/mwlwifi/install
copy the resulting package from bin/mvebu/packages/base/ or wherever your build is configured to put them, and install with opkg.
If you want to build for the official CC, then
a) download the SDK:
wget http://downloads.openwrt.org/chaos_calm … 64.tar.bz2
b) unpack SDK:
tar jxvf OpenWrt-SDK-15.05-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64.tar.bz2
c) create the mwlwifi package
cd OpenWrt-SDK-15.05-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64
mkdir -p package/kernel/mwlwifi
wget 'http://git.openwrt.org/?p=openwrt.git;a … 50d2a980c5' -O package/kernel/mwlwifi/Makefile
d) build it
make V=s package/mwlwifi/install
e) install
scp bin/mvebu/packages/base/kmod-mwlwifi_3.18.20+10.3.0.12-20151029-1_mvebu.ipk root@yourwrt:/tmp/
ssh root@yourwrt
opkg install /tmp/kmod-mwlwifi_3.18.20+10.3.0.12-20151029-1_mvebu.ipk
Make sure you know how failsafe works
Reboot!
(It should be possible to do rmmod + insmod instead of reboot, but the driver currently fails to clean up properly on rmmod so that's eventually going to crash.)
EDIT:
and since I just did that to verify my recipe, I might as well put the package up for download in case you are among those trusting random binaries from the Internet
This should work with the official CC image, but there is no guarantee. It's completely untested:
http://openwrt.mork.no/chaos_calmer/15. … _mvebu.ipk
(Last edited by bmork on 29 Oct 2015, 15:54)