Latest compat-drivers

Kalle Valo kvalo at qca.qualcomm.com
Tue Apr 16 09:23:40 EDT 2013


Kalle Valo <kvalo at qca.qualcomm.com> writes:

> Hi Eugene,
>
> I started to looking at my compat-drivers compilation problems. But as
> compat-drivers build system is being rewritten I instead started to
> looking at the new system and it solved all my problems!
>
> I think we should seriously consider using the new system, it's so much
> better than the old one. Especially that we can now easily control what
> we compile. As we are just interested about rfkill, cfg80211 and
> mac80211 we can disable the rest.
>
> I have wcn36xx now compiling against mako kernel, but I haven't tried
> running it yet. Will do that soon.
>
> Here are instructions how I compiled wcn36xx. I have also attached a
> tarball containg the patches which I needed on top of yours.

I have now pushed all wcn36xx changes to a branch:

https://github.com/kvalo/wcn36xx/tree/initial-backports

Also here are updated instructions, changes are:

o don't checkout out linux-next to save space
o use next-20130412 tag
o add missing defconfig step
o use my wcn36xx branch

I have also attached the patch for backports.git.

I have compiled these on two Ubuntu 12.04 64 bit machines.

----------------------------------------------------------------------

git clone git://git.sipsolutions.net/backports.git
git clone --no-checkout git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git clone git://github.com/KrasnikovEugene/wcn36xx.git

cd wcn36xx
git pull git://github.com/kvalo/wcn36xx.git initial-backports

cd ../backports

patch -p1 < backports-wcn36xx.patch
./gentree.py --verbose --clean \
	--git-revision next-20130412 \
	--copy-list copy-list.mac80211 \
	--extra-driver ../  copy-list.wcn36xx \
	../linux-next /var/tmp/output/

cd /var/tmp/output/

export CM_ROOT=/home/kvalo/work/cm/mako/cm-10.1
export CM_BUILD=mako

make KLIB=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ \
	KLIB_BUILD=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ \
	ARCH=arm \
	CROSS_COMPILE=$CM_ROOT/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- \
	defconfig-wcn36xx

make KLIB=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ \
	KLIB_BUILD=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ \
	ARCH=arm \
	CROSS_COMPILE=$CM_ROOT/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-

adb push compat/compat.ko /sdcard/
adb push net/wireless/cfg80211.ko /sdcard/
adb push net/mac80211/mac80211.ko /sdcard/
adb push drivers/net/wireless/ath/wcn36xx/wcn36xx.ko /sdcard/

----------------------------------------------------------------------

-- 
Kalle Valo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: backports-wcn36xx.patch.gz
Type: application/octet-stream
Size: 1137 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/wcn36xx/attachments/20130416/8ecb94c7/attachment.obj>


More information about the wcn36xx mailing list