AW: wcn36xx: fix typo error

Rummelhagen, Mirko Mirko.Rummelhagen at berner-mattner.com
Thu Jan 23 08:20:34 EST 2014


Hi,

before updating the documentation, i wanted to get the drivers running. Up to now I am totally stuck at loading the drivers.

The first problem was loading cfg80211.ko which lead to an "exec format error". The corresponding dmesg ouput stated: "exports duplicate symbol __ieee80211_get_channel (owned by kernel)". Without cfg80211 I was of course not abel to load mac80211.ko or wcn36xx.ko. I was however able to load compat.ko and wcn36xx_msm.ko.
I figured the cfg80211.ko problem should be related to the fact, that the android kernel has been build with its own cfg80211. So I tried to compile the kernel without cfg80211 or with cgf80211 as a module. Both resulted in errors during the build like for example:

drivers/built-in.o: In function `hdd_SendReAssocEvent':
/home/mirko/mako/cm10.1/kernel/lge/mako/drivers/staging/prima/CORE/HDD/src/wlan_hdd_assoc.c:961: undefined reference to `cfg80211_roamed'

There are some more errors all related to kernel/lge/mako/drivers/staging/prima/CORE/HDD/src/xxx.c with undefined references.

This seems related due to the fact that the prima drivers can not find any cfg80211 support. So my idea was not to build the prima drivers in the build process by deleting the last line (corresponding to the prima-drivers) in the Makefile in the kernel/lge/mako/drivers/staging Folder. This seemed to work. I have successfully build cyanogenmod with a Kernel without cfg80211 and I am able to load all .ko Files. The WCNSS_* Files (which I assume are the output files from the prima driver) are in the same folders as they should be except /data/media/0/WCNSS_qcom_cfg.ini is missing. So I copied one in to this folder:

shell at android:/ # find -name "WCNSS*"                                          
./mnt/shell/emulated/0/WCNSS_qcom_cfg.ini
./system/etc/wifi/WCNSS_qcom_cfg.ini
./system/etc/wifi/WCNSS_qcom_wlan_nv.bin
./system/vendor/firmware/wlan/prima/WCNSS_cfg.dat
./system/vendor/firmware/wlan/prima/WCNSS_qcom_cfg.ini
./system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
./sys/bus/platform/devices/WCNSS_CTRL.6
./sys/devices/platform/WCNSS_CTRL.6
./data/misc/wifi/WCNSS_qcom_cfg.ini
./data/misc/wifi/WCNSS_qcom_wlan_nv.bin
./data/media/0/WCNSS_qcom_cfg.ini


Now I am not able to activate the WiFi anymore. My current corresponding dmesg messages are:

<3>[   79.745917] wcn36xx: ERROR Timeout while waiting SMD response
<3>[   79.746314] wcn36xx: ERROR Sending hal_start failed
<3>[   79.746528] wcn36xx: ERROR Failed to start chip


Does anybody know where I went wrong or has any ideas how I could proceed?
Any Help is really appreciated.


Mirko

-----Ursprüngliche Nachricht-----
Von: wcn36xx [mailto:wcn36xx-bounces at lists.infradead.org] Im Auftrag von Rummelhagen, Mirko
Gesendet: Donnerstag, 16. Januar 2014 17:58
An: Eugene Krasnikov
Cc: wcn36xx
Betreff: AW: wcn36xx: fix typo error

I will update the documentation, after testing again, if all steps mentioned are really correct.
I don't know exactly how .patch-Files work, but I will look into it and try to resolve the conflicts.

Mirko 


-----Ursprüngliche Nachricht-----
Von: Eugene Krasnikov [mailto:k.eugene.e at gmail.com]
Gesendet: Donnerstag, 16. Januar 2014 13:47
An: Rummelhagen, Mirko
Cc: Jason Mobarak; wcn36xx
Betreff: Re: wcn36xx: fix typo error

Will you update wiki documentation and send a new version of 0001-wcn36xx-backports-config.patch?

2014/1/16 Rummelhagen, Mirko <Mirko.Rummelhagen at berner-mattner.com>:
> Hi Guys,
>
> sorry for all the spam. I am finally able to build all necessary modules for MAKO. In case anybody has to start the build from scratch like me, here is a short summary, what I had to do in addition to the official documentation:
>
> 1. Kernel config (after building cm10.1 for the first time):
>    In the CM_ROOT folder (eg. ~/mako/cm10.1):
>       make  -C kernel/lge/mako
> O=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ ARCH=arm 
> CROSS_COMPILE="$CM_ROOT /prebuilts/misc/linux-x86/ccache/ccache
> $CM_ROOT /prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" 
> config
>
>    a. enable loadable module support (avoids build error for compat.mod.c)
>    b. enable crypto ccm support (enables the build of the mac80211.ko
> module)
>
> 2. Make the kernel with the new config (like in Step 1, but with modules/modules_install instead of config at the end):
>    make  -C kernel/lge/mako ... modules
>    make  -C kernel/lge/mako ... modules_install
>
> 3. "Generate a build tree" - Step:
>     I was not able to apply the patch: 0001-wcn36xx-backports-config.patch, but in the patch is the content of "copy-list.wcn36xx" stated with:
>     "wcn36xx/ -> drivers/net/wireless/ath/wcn36xx/"
>
>     So I created a new "copy-list.wcn36xx" file in the backport folder with just the line above.
>
>     Instead of: "./gentree.py --verbose --clean --git-revision next-20131122  ../linux-next/ ../backport-wcn" I had to use the --extra-driver option:
>     ./gentree.py --verbose --clean --git-revision next-20131206 
> --extra-driver ../ copy-list.wcn36xx  ../linux-next/ ../backport-wcn
>
>
> Special thanks to Eugene and Jason!
> Especially the "crypto ccm support" part I would never have found on my own. So Guys, thank you very much!!!
>
> Mirko
>
>
> -----Ursprüngliche Nachricht-----
> Von: Rummelhagen, Mirko
> Gesendet: Donnerstag, 16. Januar 2014 12:19
> An: Rummelhagen, Mirko; Jason Mobarak
> Cc: wcn36xx; Eugene Krasnikov
> Betreff: AW: wcn36xx: fix typo error
>
> Enabling the "crypto ccm support" did the trick to build the "mac80211.ko" module. So thank you very much Jason!
>
> Hopefully one last question:
> Now the only missing part is the "wcn36xx.ko" module. I used a symlink in the backport-wcn folder to the wcn36xx folder like described in: https://github.com/KrasnikovEugene/wcn36xx/commit/6948172c6f889d2 point 10. I know that this is an old documentation, but the official documentation does not mention how to include the wcn36xx driver into the backports.
> Any ideas why this module has not been build?
>
> Thanks in advance
>
>
> Mirko
>
>
> -----Ursprüngliche Nachricht-----
> Von: wcn36xx [mailto:wcn36xx-bounces at lists.infradead.org] Im Auftrag 
> von Rummelhagen, Mirko
> Gesendet: Donnerstag, 16. Januar 2014 11:23
> An: Jason Mobarak
> Cc: wcn36xx; Eugene Krasnikov
> Betreff: AW: wcn36xx: fix typo error
>
> Hi Jason,
>
> thank you for your hint. Actually I found this yesterday by accident. It was stated during the cm build process. It is correct, that the module support was not enabled. By enabling it, I was able to compile the backports without an error.
>
> But the "mac80211.ko" and "wcn36xx.ko" modules are not build. So I 
> will try your "crypto ccm support" hint. Could there be another 
> problem which causes those modules not to be build? (Before the build 
> I execute the ...defconfig-wcn36xx command. So the build should be 
> configured correctly.)
>
>
> Mirko
>
> -----Ursprüngliche Nachricht-----
> Von: Jason Mobarak [mailto:jam at cozybit.com]
> Gesendet: Donnerstag, 16. Januar 2014 03:18
> An: Rummelhagen, Mirko
> Cc: wcn36xx; Eugene Krasnikov
> Betreff: Re: wcn36xx: fix typo error
>
> On Wed, Jan 15, 2014 at 8:09 AM, Eugene Krasnikov <k.eugene.e at gmail.com> wrote:
>>> So, am I right assuming the fault does not depend on the "gentree.py" or "defconfig" step?
>>
>> Yeah, probably something wrong in the way mako-kernel is configured.
>
> Don't know if it's true for CM, but I think the mako kernel from Google/LG was configured without module support.
>
> Newer versions of kernel backports also require crypto ccm support in the kernel for mac80211 to compile correctly.
>
> -Jason
>
>>> Or should I still look into those processes?
>>
>> I dunno what is your goal so cannot answer this question;)
>>
>>
>> 2014/1/15 Rummelhagen, Mirko <Mirko.Rummelhagen at berner-mattner.com>:
>>> Hi,
>>>
>>> i was able to build the modules against the Kernel of the MINT cm-Version, with the same process which failed for MAKO. So, am I right assuming the fault does not depend on the "gentree.py" or "defconfig" step? Or should I still look into those processes?
>>>
>>>
>>> The ... defconfig-wcn36xx step delivers (for MINT and MAKO) the following output. So I assume this should be successful.
>>>
>>> mirko at ubuntu:~/git/backport-wcn$ 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 Generating local configuration database from kernel ... done.
>>> cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
>>> cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o zconf.tab.o zconf.tab.c
>>> cc   conf.o zconf.tab.o   -o conf
>>> #
>>> # configuration written to .config
>>> #
>>>
>>> Thanks so much for your help
>>>
>>> Mirko
>>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Eugene Krasnikov [mailto:k.eugene.e at gmail.com]
>>> Gesendet: Montag, 13. Januar 2014 17:23
>>> An: Rummelhagen, Mirko
>>> Cc: wcn36xx
>>> Betreff: Re: wcn36xx: fix typo error
>>>
>>> How about make ... defconfig-wcn36xx? Is that step successful?
>>> The problem is definitely fundamental but i do not remember what was the root cause....
>>>
>>> 2014/1/13 Rummelhagen, Mirko <Mirko.Rummelhagen at berner-mattner.com>:
>>>> Yes, I am able to build (and run) CM.
>>>>
>>>> Thank you for your hints. Because of looking into the old documentation, I just tried "make" in the wcn36xx/wcn36xx_msm folder. The same errors appear but for another file. It is most likely the same problem, but maybe you have another idea.
>>>>
>>>>
>>>>
>>>> mirko at ubuntu:~/Development/cm/git/wcn36xx/wcn36xx_msm$ make V=1 
>>>> make ARCH=arm 
>>>> CROSS_COMPILE=/home/mirko/android/system/prebuilts/gcc/linux-x86/ar
>>>> m
>>>> /a
>>>> rm-eabi-4.6/bin/arm-eabi- -C
>>>> /home/mirko/android/system/out/target/product/mako/obj/KERNEL_OBJ/
>>>> SUBDIRS=/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm modules
>>>> make[1]: Entering directory `/home/mirko/android/system/out/target/product/mako/obj/KERNEL_OBJ'
>>>> make -C /home/mirko/android/system/kernel/lge/mako
>>>> O=/home/mirko/android/system/out/target/product/mako/obj/KERNEL_OBJ/. modules make -C /home/mirko/android/system/out/target/product/mako/obj/KERNEL_OBJ \
>>>>         KBUILD_SRC=/home/mirko/android/system/kernel/lge/mako \
>>>>         KBUILD_EXTMOD="/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm" -f /home/mirko/android/system/kernel/lge/mako/Makefile \
>>>>         modules
>>>> test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
>>>>         echo;                                                           \
>>>>         echo "  ERROR: Kernel configuration is invalid.";               \
>>>>         echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
>>>>         echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
>>>>         echo;                                                           \
>>>>         /bin/false)
>>>> mkdir -p
>>>> /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/.tmp_versions ; 
>>>> rm -f
>>>> /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/.tmp_versions/*
>>>> make -f /home/mirko/android/system/kernel/lge/mako/scripts/Makefile.build obj=/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm
>>>> (cat /dev/null;   echo kernel//home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko;) > /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/modules.order
>>>> make -f /home/mirko/android/system/kernel/lge/mako/scripts/Makefile.modpost
>>>>   scripts/mod/modpost   -i /home/mirko/android/system/out/target/product/mako/obj/KERNEL_OBJ/Module.symvers -I /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/Module.symvers  -o /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/Module.symvers -S -E -w -c -s
>>>> WARNING: "smd_write" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_read" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__kmalloc" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_close" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__alloc_workqueue_key" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "get_random_bytes" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_write_avail" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "queue_work" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smsm_change_state" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__init_waitqueue_head" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__memzero" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_disable_read_intr" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_named_open_on_edge" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "dev_err" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "sscanf" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_device_del" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_device_alloc" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_device_add" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "destroy_workqueue" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "flush_workqueue" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_device_add_resources" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__stack_chk_fail" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "msecs_to_jiffies" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "wait_for_completion_interruptible_timeout" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_device_add_data" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_get_resource_byname" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "kfree" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "memcpy" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_cur_packet_size" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "request_firmware" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__aeabi_unwind_cpp_pr0" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "__stack_chk_guard" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "complete" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "smd_read_avail" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "wcnss_get_platform_device" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "release_firmware" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>> WARNING: "platform_device_put" [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.ko] undefined!
>>>>   /home/mirko/android/system/kernel/lge/mako/scripts/gcc-wrapper.py /home/mirko/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc -Wp,-MD,/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/.wcn36xx_msm.mod.o.d  -nostdinc -isystem /home/mirko/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/include -I/home/mirko/android/system/kernel/lge/mako/arch/arm/include -Iarch/arm/include/generated -Iinclude  -I/home/mirko/android/system/kernel/lge/mako/include -include /home/mirko/android/system/kernel/lge/mako/include/linux/kconfig.h   -I/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm -D__KERNEL__ -mlittle-endian   -I/home/mirko/android/system/kernel/lge/mako/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -fno-dwarf2-cfi-asm -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(wcn36xx_msm.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(wcn36xx_msm)" -DMODULE  -c -o /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.mod.o /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.mod.c
>>>> /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.mod.
>>>> c
>>>> :8
>>>> :1: error: variable '__this_module' has initializer but incomplete 
>>>> type 
>>>> /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.mod.
>>>> c
>>>> :9
>>>> :2: error: unknown field 'name' specified in initializer 
>>>> /home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.mod.
>>>> c
>>>> :9
>>>> :2: warning: excess elements in struct initializer [enabled by 
>>>> default] error, forbidden warning: wcn36xx_msm.mod.c:9
>>>> make[4]: ***
>>>> [/home/mirko/Development/cm/git/wcn36xx/wcn36xx_msm/wcn36xx_msm.mod.
>>>> o]
>>>> Error 1
>>>> make[3]: *** [modules] Error 2
>>>> make[2]: *** [sub-make] Error 2
>>>> make[1]: *** [all] Error 2
>>>> make[1]: Leaving directory `/home/mirko/android/system/out/target/product/mako/obj/KERNEL_OBJ'
>>>> make: *** [default] Error 2
>>>>
>>>>
>>>>
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Eugene Krasnikov [mailto:k.eugene.e at gmail.com]
>>>> Gesendet: Montag, 13. Januar 2014 16:47
>>>> An: Rummelhagen, Mirko
>>>> Cc: wcn36xx
>>>> Betreff: Re: wcn36xx: fix typo error
>>>>
>>>> Are you able to build CM kernel without compat? Also do not forget to have cfg80211 build as module but that is more like a trick for future.
>>>>
>>>> I do not remember for sure but I guess i had similar problem lot 
>>>> time ago and that was because or 'make defconfig' or gentree.py did 
>>>> not work properly. You might want to look in the old documentation 
>>>> as
>>>> well(https://github.com/KrasnikovEugene/wcn36xx/commit/6948172c6f88
>>>> 9
>>>> d2
>>>> a2bfacd0cc7a372f8f82fc744) but not sure how helpful because there 
>>>> is a reason why it's old ;)
>>>>
>>>> 2014/1/13 Rummelhagen, Mirko <Mirko.Rummelhagen at berner-mattner.com>:
>>>>> Thanks for the fast response.
>>>>>
>>>>> We tried:
>>>>> ./gentree.py --verbose --clean --git-revision next-20131206 
>>>>> ../linux-next/ ../backport-wcn (next-20131206 from git log)
>>>>>
>>>>> and:
>>>>> ./gentree.py --verbose --clean --git-revision next-20131122 
>>>>> ../linux-next/ ../backport-wcn (from the website)
>>>>>
>>>>> Kind regards
>>>>> Mirko
>>>>>
>>>>>> Added mailing list in case somebody can have a better advice.
>>>>>
>>>>>> 2014/1/13 Eugene Krasnikov <k.eugene.e at gmail.com>:
>>>>>>> unfortunately we are not able to send emails to the Mailing-List.
>>>>>>> We would highly appreciate your help concerning the build of your wcn36xx driver.
>>>>>>
>>>>>> What is the error code you get?
>>>>>>
>>>>>
>>>>> I am terribly sorry. While searching for the error code, I found that the server does not accept HTML mails. My bad.
>>>>>
>>>>>
>>>>>> Something wrong with compat.ko. Could you please share your 
>>>>>> parameters to this command:
>>>>>> http://wireless.kernel.org/en/users/Drivers/wcn36xx#Generate_a_bu
>>>>>> i
>>>>>> ld
>>>>>> _
>>>>>> t
>>>>>> ree
>>>>>> ?
>>>>>>
>>>>>>
>>>>>> 2014/1/13 Rummelhagen, Mirko <Mirko.Rummelhagen at berner-mattner.com>:
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> unfortunately we are not able to send emails to the Mailing-List.
>>>>>>> We would highly appreciate your help concerning the build of your wcn36xx driver.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> We are trying to cross-compile wcn36xx for CM 10.1 by executing 
>>>>>>> following instructions
>>>>>>>
>>>>>>> http://wireless.kernel.org/en/users/Drivers/wcn36xx#Mako_on_CM_1
>>>>>>> 0
>>>>>>> .1
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I am working with Ubuntu 13.10 (64bit) and gcc 4.8.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On the step:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 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/
>>>>>>> b
>>>>>>> in
>>>>>>> /
>>>>>>> a
>>>>>>> rm-eabi-
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> The building process delivers the error below. (The same error 
>>>>>>> appears when compiling against cm10.2.)
>>>>>>>
>>>>>>> Maybe you stumbled across the same error..would be great to get some help.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> :~/Development/cm/git/backport-wcn$ 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/
>>>>>>> b
>>>>>>> in
>>>>>>> /
>>>>>>> a
>>>>>>> rm-eabi-
>>>>>>> defconfig-wcn36xx
>>>>>>>
>>>>>>> make[2]: `conf' is up to date.
>>>>>>>
>>>>>>> #
>>>>>>>
>>>>>>> # configuration written to .config
>>>>>>>
>>>>>>> #
>>>>>>>
>>>>>>> mirko at ubuntu:~/Development/cm/git/backport-wcn$ 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/
>>>>>>> b
>>>>>>> in
>>>>>>> /
>>>>>>> a
>>>>>>> rm-eabi-
>>>>>>>
>>>>>>> make[5]: `conf' is up to date.
>>>>>>>
>>>>>>> #
>>>>>>>
>>>>>>> # configuration written to .config
>>>>>>>
>>>>>>> #
>>>>>>>
>>>>>>> Building backport-include/backport/autoconf.h ... done.
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/main.o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat-3.5.o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/user_namespac
>>>>>>> e
>>>>>>> .o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat-3.6.o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat-3.7.o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat-3.8.o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat-3.9.o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/backport-3.10.
>>>>>>> o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/backport-3.12.
>>>>>>> o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/backport-3.13.
>>>>>>> o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat_atomic.
>>>>>>> o
>>>>>>>
>>>>>>>   CC [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/dma-shared-he
>>>>>>> l
>>>>>>> pe
>>>>>>> r
>>>>>>> s
>>>>>>> .o
>>>>>>>
>>>>>>>   LD [M]
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat.o
>>>>>>>
>>>>>>>   Building modules, stage 2.
>>>>>>>
>>>>>>>   MODPOST 1 modules
>>>>>>>
>>>>>>> WARNING: "__kmalloc"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "genl_register_family"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "mem_map"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "__aeabi_unwind_cpp_pr1"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "rcu_barrier"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "genl_unregister_family"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "get_random_bytes"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "sg_next"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "devres_free"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "jiffies"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "strcmp"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "param_ops_charp"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "del_timer_sync"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "random32"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "printk"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "strncpy"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "__sw_hweight8"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "sg_alloc_table"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "remap_pfn_range"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "memcpy"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "devres_remove"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "genl_register_mc_group"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "genl_register_ops"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "__bitmap_weight"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "__aeabi_unwind_cpp_pr0"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "_clear_bit"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>> WARNING: "queue_delayed_work"
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.ko] undefined!
>>>>>>>
>>>>>>>   CC      /home/mirko/Development/cm/git/backport-wcn/compat/compat.mod.o
>>>>>>>
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat.mod.c:8:1: error:
>>>>>>> variable '__this_module' has initializer but incomplete type
>>>>>>>
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat.mod.c:9:2: error:
>>>>>>> unknown field 'name' specified in initializer
>>>>>>>
>>>>>>> /home/mirko/Development/cm/git/backport-wcn/compat/compat.mod.c:9:2:
>>>>>>> warning: excess elements in struct initializer [enabled by 
>>>>>>> default]
>>>>>>>
>>>>>>> error, forbidden warning: compat.mod.c:9
>>>>>>>
>>>>>>> make[7]: ***
>>>>>>> [/home/mirko/Development/cm/git/backport-wcn/compat/compat.mod.o
>>>>>>> ]
>>>>>>> Error 1
>>>>>>>
>>>>>>> make[6]: *** [modules] Error 2
>>>>>>>
>>>>>>> make[5]: *** [sub-make] Error 2
>>>>>>>
>>>>>>> make[4]: *** [all] Error 2
>>>>>>>
>>>>>>> make[3]: *** [modules] Error 2
>>>>>>>
>>>>>>> make[2]: *** [modules] Error 2
>>>>>>>
>>>>>>> make[1]: *** [modules] Error 2
>>>>>>>
>>>>>>> make: *** [default] Error 2
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Mirko Rummelhagen
>>>>>>> Software Engineer
>>>>>>>
>>>>>>> Tel:  +49 89 608090-118
>>>>>>>
>>>>>>> Fax: +49 89 6098182
>>>>>>>
>>>>>>> E-Mail: mirko.rummelhagen at berner-mattner.com
>>>>>>> Web: www.berner-mattner.com
>>>>>>>
>>>>>>> Berner & Mattner Systemtechnik GmbH Erwin-von-Kreibig-Str. 3
>>>>>>> D-80807 München
>>>>>>>
>>>>>>> Geschäftsführer: Dr. Klaus Eder, Dr. Jan-Oliver Wenzel
>>>>>>> Registernummer: HR B 83252 beim Amtsgericht München Sitz der
>>>>>>> Gesellschaft: München
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Eugene
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> Eugene
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Eugene
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Eugene
>>
>>
>>
>> --
>> Best regards,
>> Eugene
>>
>> _______________________________________________
>> wcn36xx mailing list
>> wcn36xx at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/wcn36xx
>
> _______________________________________________
> wcn36xx mailing list
> wcn36xx at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/wcn36xx



--
Best regards,
Eugene

_______________________________________________
wcn36xx mailing list
wcn36xx at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/wcn36xx



More information about the wcn36xx mailing list