Latest compat-drivers

Eugene Krasnikov k.eugene.e at gmail.com
Tue Apr 16 10:56:26 EDT 2013


Hi Kalle,

I suggest to merge changes to wcn36xx to support latest mac80211.
While working on join implementation we can work in parallel on
updating documentation "How to build wcn36xx with latest wireless
stack". Could you please send pull request from initial-backports
branch?

P.S. I still was not been able to build wcn36xx according to your
instructions. But it's good that we have 2 different build
approaches:)  Also a bit wired that you did not need patch
https://github.com/KrasnikovEugene/wcn36xx/blob/master/local/0001-Check-if-DEFINE_DYNAMIC_DEBUG_METADATA-is-defined.patch
Did you have any warnings about define DEFINE_DYNAMIC_DEBUG_METADATA?

2013/4/16 Kalle Valo <kvalo at qca.qualcomm.com>:
> 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
>



-- 
Best regards,
Eugene



More information about the wcn36xx mailing list