This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL18xx drivers for i.MX6SL Kernel version 3.10.17

Expert 1985 points

Hi,

I am trying to insert wl18xx wifi modules .ko file and getting the following errors.

root@imx6slevk:~# insmod /lib/modules/lbxu/compat.ko
compat: disagrees about version of symbol module_layout
insmod: can't insert '/lib/modules/lbxu/compat.ko': invalid module format

 Any suggestions would be really appreciated.

Thank you.

Ijaz Fazily

  • Hi Ijaz,

    This suggests a build issue.
    Possibly your kernel config was changed and kernel rebuilt after you built the wl18xx modules. Hence the insmod is failing.

    Regards,
    Gigi Joseph.

  • Yes. That is correct!!!

    I will change that and check.

    Thank you.

    --

    Ijaz

  • Hi Gigi,

          I was able to insert the ko files for wl18xx successfully. when I do ifconfig the wifi module is not getting listed.

    Is there anything I should recheck from wifi module part. Is this module enabled for active high or active low?. I also probed the SDIO and enable pins from i.MX 6. Its 1.8v.

    dmesg after insmod:

    compat-drivers backport release: ol_r8.a8.04_32
    Backport based on wl18xx.git ol_r8.a8.10
    compat.git: wl18xx.git
    cfg80211: Calling CRDA to update world regulatory domain

    Thank you.

    Regards,

    Ijaz Fazily

  • Hi Ijaz,

    Please check if the WLAN_EN pin mapped correctly, and is going high. 
    Please also verify the power up sequence: http://processors.wiki.ti.com/index.php/WL18xx_Module_Schematic_Checklist#Power-up_Sequence

    Regards,
    Gigi Joseph.

  • Hi Gigi,

    I am on it.

    Between, I had set the gpio and sdio pins in device tree of i.MX 6 for our wifi module. But I have not specified anywhere else in the driver. Will that be enough. I also believe that we do not need to do any configuration setting through uart or something for wl18xx. so it works like plug and play module. Is my understanding correct?.

    Thank you.

    Regards,

    Ijaz Fazily

  • Hi Ijaz,

    Yes, the pins need to be defined in the dts file. Please take a look at: http://processors.wiki.ti.com/index.php/WL18xx_Platform_Integration_Guide to know what all changes are required in the dts file.

    For Bluetooth, we use UART. So unless you have a requirement for bluetooth, UART changes are not required.

    Regards,
    Gigi Joseph.

  • Hi Gigi,

      Due to some hardware issue we cannot proceed it further. So we are moving to WL1273L as of now for development purpose, until our new board gets ready.

    Could you please get me the download link for kernel version 3.10.17 and build guide link if any.

    I already have a build module which builds version 'ol_R5.SP5.01' for wl12xx. shall I use the same for my kernel version?.

    And do want me to post this as a new thread?

    Thank you so  very much for your help and support.

    Regards,

    Ijaz Fazily

  • Hi Ijaz,

    The last WL6 release is ol_R5.SP7.01. The build script is available at: https://github.com/TI-ECS/build-utilites/blob/master/wl12xx_build.sh . Please modify the gen_tag to : "ol_R5.SP7.01".

    Please note that this release was validated on Linux Kernel v 3.0.8 - There is no guarantee that it will work on kernel version 3.10.17 as is - you might have to modify the release to make it work.

    Regards,
    Gigi Joseph.

  • Hi Gigi,

     Does this release [ol_R5.SP7.01] support device tree?.

     while compiling compat wireless [wl12xx] for kernel v 3.10.17 I am getting the following build ERROR!!!

    Do I need to apply any patch or something?

    ###########################################################################################

    include/linux/gfp.h: In function 'gfp_zonelist':
    include/linux/gfp.h:272:2: error: implicit declaration of function 'IS_ENABLED' [-Werror=implicit-function-declaration]
      if (IS_ENABLED(CONFIG_NUMA) && unlikely(flags & __GFP_THISNODE))
      ^
    include/linux/gfp.h:272:17: error: 'CONFIG_NUMA' undeclared (first use in this function)
      if (IS_ENABLED(CONFIG_NUMA) && unlikely(flags & __GFP_THISNODE))
                     ^
    include/linux/gfp.h:272:17: note: each undeclared identifier is reported only once for each function it appears in
    In file included from include/linux/if_ether.h:23:0,
                     from include/uapi/linux/ethtool.h:17,
                     from include/linux/ethtool.h:16,
                     from include/linux/netdevice.h:42,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/linux/skbuff.h: In function 'nf_reset_trace':
    include/linux/skbuff.h:2740:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE)
         ^
    include/linux/skbuff.h:2740:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE)
                   ^
    In file included from include/net/net_namespace.h:13:0,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/net/net_namespace.h:7,
                     from include/linux/netdevice.h:43,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/net/netns/mib.h: At top level:
    include/net/netns/mib.h:15:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_IPV6)
         ^
    include/net/netns/mib.h:15:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_IPV6)
                   ^
    In file included from include/net/net_namespace.h:17:0,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/net/net_namespace.h:7,
                     from include/linux/netdevice.h:43,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/net/netns/ipv6.h:77:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
         ^
    include/net/netns/ipv6.h:77:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
                   ^
    In file included from include/net/net_namespace.h:25:0,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/net/net_namespace.h:7,
                     from include/linux/netdevice.h:43,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/net/netns/xfrm.h:59:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_IPV6)
         ^
    include/net/netns/xfrm.h:59:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_IPV6)
                   ^
    In file included from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/net/net_namespace.h:7:0,
                     from include/linux/netdevice.h:43,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/net/net_namespace.h:88:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_IPV6)
         ^
    include/net/net_namespace.h:88:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_IPV6)
                   ^
    include/net/net_namespace.h:103:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
         ^
    include/net/net_namespace.h:103:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
                   ^
    In file included from include/net/netprio_cgroup.h:16:0,
                     from include/linux/netdevice.h:48,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:10:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CPUSETS)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:10:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CPUSETS)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:16:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEBUG)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:16:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEBUG)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:22:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_SCHED)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:22:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_SCHED)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:28:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_CPUACCT)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:28:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_CPUACCT)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:34:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_MEMCG)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:34:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_MEMCG)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:40:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEVICE)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:40:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEVICE)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:46:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_FREEZER)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:46:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_FREEZER)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:52:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NET_CLS_CGROUP)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:52:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NET_CLS_CGROUP)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:58:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_BLK_CGROUP)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:58:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_BLK_CGROUP)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:64:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:64:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:70:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:70:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/cgroup.h:52:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:76:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_HUGETLB)
         ^
    include/linux/cgroup.h:52:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:76:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_HUGETLB)
         ^
    In file included from include/net/netprio_cgroup.h:16:0,
                     from include/linux/netdevice.h:48,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:10:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CPUSETS)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:10:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CPUSETS)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:16:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEBUG)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:16:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEBUG)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:22:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_SCHED)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:22:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_SCHED)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:28:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_CPUACCT)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:28:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_CPUACCT)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:34:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_MEMCG)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:34:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_MEMCG)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:40:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEVICE)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:40:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEVICE)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:46:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_FREEZER)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:46:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_FREEZER)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:52:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NET_CLS_CGROUP)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:52:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NET_CLS_CGROUP)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:58:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_BLK_CGROUP)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:58:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_BLK_CGROUP)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:64:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:64:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:70:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:70:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/cgroup.h:59:35: warning: "IS_MODULE" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                       ^
    include/linux/cgroup_subsys.h:76:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_HUGETLB)
         ^
    include/linux/cgroup.h:59:44: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_MODULE(option)
                                                ^
    include/linux/cgroup_subsys.h:76:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_HUGETLB)
         ^
    In file included from include/net/netprio_cgroup.h:16:0,
                     from include/linux/netdevice.h:48,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:10:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CPUSETS)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:10:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CPUSETS)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:16:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEBUG)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:16:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEBUG)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:22:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_SCHED)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:22:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_SCHED)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:28:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_CPUACCT)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:28:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_CPUACCT)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:34:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_MEMCG)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:34:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_MEMCG)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:40:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEVICE)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:40:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_DEVICE)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:46:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_FREEZER)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:46:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_FREEZER)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:52:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NET_CLS_CGROUP)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:52:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NET_CLS_CGROUP)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:58:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_BLK_CGROUP)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:58:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_BLK_CGROUP)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:64:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:64:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_PERF)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:70:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:70:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/cgroup.h:638:35: warning: "IS_BUILTIN" is not defined [-Wundef]
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                       ^
    include/linux/cgroup_subsys.h:76:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_HUGETLB)
         ^
    include/linux/cgroup.h:638:45: error: missing binary operator before token "("
     #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
                                                 ^
    include/linux/cgroup_subsys.h:76:5: note: in expansion of macro 'IS_SUBSYS_ENABLED'
     #if IS_SUBSYS_ENABLED(CONFIG_CGROUP_HUGETLB)
         ^
    In file included from include/linux/netdevice.h:48:0,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/net/netprio_cgroup.h:21:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/net/netprio_cgroup.h:21:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_NETPRIO_CGROUP)
                   ^
    In file included from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5:0,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/linux/netdevice.h:144:39: error: missing binary operator before token "("
     #if defined(CONFIG_WLAN) || IS_ENABLED(CONFIG_AX25)
                                           ^
    include/linux/netdevice.h:154:6: warning: "IS_ENABLED" is not defined [-Wundef]
     #if !IS_ENABLED(CONFIG_NET_IPIP) && !IS_ENABLED(CONFIG_NET_IPGRE) && \
          ^
    include/linux/netdevice.h:154:16: error: missing binary operator before token "("
     #if !IS_ENABLED(CONFIG_NET_IPIP) && !IS_ENABLED(CONFIG_NET_IPGRE) && \
                    ^
    In file included from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.29.h:5:0,
                     from /home/ijaz/lbxu_zbha/lbxu_zbha/imx/wlcore/wl12xx_work_space/compat-wireless/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    include/linux/netdevice.h:966:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_FCOE)
         ^
    include/linux/netdevice.h:966:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_FCOE)
                   ^
    include/linux/netdevice.h:983:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_LIBFCOE)
         ^
    include/linux/netdevice.h:983:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_LIBFCOE)
                   ^
    include/linux/netdevice.h:1165:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_VLAN_8021Q)
         ^
    include/linux/netdevice.h:1165:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_VLAN_8021Q)
                   ^
    include/linux/netdevice.h:1168:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_NET_DSA)
         ^
    include/linux/netdevice.h:1168:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_NET_DSA)
                   ^
    include/linux/netdevice.h:1325:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_FCOE)
         ^
    include/linux/netdevice.h:1325:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_FCOE)
                   ^
    include/linux/netdevice.h:1329:5: warning: "IS_ENABLED" is not defined [-Wundef]
     #if IS_ENABLED(CONFIG_NETPRIO_CGROUP)
         ^
    include/linux/netdevice.h:1329:15: error: missing binary operator before token "("
     #if IS_ENABLED(CONFIG_NETPRIO_CGROUP)
                   ^

    Regards,

    Ijaz

  • Hi Ijaz,

    We don't support wl12xx drivers with Device tree mechanism. Like I said, the last wl12xx release was on kernel 3.0.8. I believe the device tree support was added to the kernel in 3.8 version.

    Regards,
    Gigi Joseph.

  • Okay Gigi.

    Thank you.

  • Hi Gigi,

    I have done the integration of WL18xx. After inserting the ko files, I am getting following logs. I have also added the firmware in file system. could you please explain the errors and warnings in this log.

    root@imx6slevk:~# wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
    wlcore: WARNING falling back to default config
    wlcore: wl18xx driver version: ol_r8.a8.04_32-dirty
    wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    cfg80211: wext will not work because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface, like iwconfig will not work.
    wlcore: loaded
    wlcore: driver version: ol_r8.a8.04_32-dirty
    wlcore: compilation time: Wed Dec  3 15:52:36 2014

    Regards,

    Ijaz Fazily

  • Hi Ijaz,

    I think they are normal. Are you able to turn on and scan?

    ifconfig wlan0 up
    iw wlan0 scan | grep SSID

    The error seems to be because either the udev was not up while loading the modules or because "/lib/firmware/ti-connectivity/wl18xx-conf.bin" does not exist.

    Regards,
    Gigi Joseph.

  • Hi Gigi,

    I am able to scan and turn on the module. But when I tried 'iw wlan0 connect', not getting the expected prints.

    #######################################################################

    root@imx6slevk:/# iw wlan0 connect Belkin_N_Wireless_TEST
    root@imx6slevk:/# wlan0: authenticate with 00:22:75:4a:c2:a9
    wlan0: send auth to 00:22:75:4a:c2:a9 (try 1/3)
    wlan0: authenticated
    wlan0: associate with 00:22:75:4a:c2:a9 (try 1/3)
    wlan0: RX AssocResp from 00:22:75:4a:c2:a9 (capab=0x401 status=0 aid=2)
    wlcore: Association completed.
    wlan0: associated
    wlan0: deauthenticating from 00:22:75:4a:c2:a9 by local choice (reason=3)
    cfg80211: Calling CRDA to update world regulatory domain

    ##################################################################################

    I checked the connection by 'iw wlan0 link' , NOT CONNECTED.

    The following was the link I am referring :http://processors.wiki.ti.com/index.php/WiLink8_WLAN_Demo:_Linux

    Am I missing something?

    Regards,

    Ijaz Fazily

  • Hi Ijaz,

    I see that the connection goes through and then the AP disconnects.
    Can you try with another AP and see if it is fine?

    Regards,
    Gigi Joseph.