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.

DM365 WL18xx modules fail to build

Other Parts Discussed in Thread: WL1837, WL1835MOD, WL1837MOD, WL1271

Hi,

We have a DM365 based design that incorporates  a wl1837 and been working off of dvsdk 4.02 and the following guide

http://processors.wiki.ti.com/index.php/Using_WL18xx_with_DM365_EVM

Initially everything was building ok, but after switching to a different RFS and rebuilding again we now cannot seem to build the modules successfully. We have tried to init and then tried update but still have the same build problem. We also reinstalled the kernel patches with no luck. We've build each of the specific components successfully with the exception of modules and iw. The output is below, thanks in advance. Tom

====================================

rarebit@rarebit-laptop:~/topcon/build-utilites$ ./sudo_build_wl18xx.sh modules
Finished adding sudo to build script, Running...
 Changing ROOTFS path to /home/rarebit/topcon/wl8-filesystem
 Using user defined kernel
Makefile was found. Kernel version was set to 2.6.37.
   *****  building only Driver modules  *****  
/home/rarebit/topcon/build-utilites/src/backports
Copy original source files ...
Apply patches ...
Failed to apply changes from backport-adjustments/flow_dissector.patch
> patching file compat/net-core-flow_dissector.c
> Hunk #1 FAILED at 177.
> 1 out of 1 hunk FAILED -- saving rejects to file compat/net-core-flow_dissector.c.rej
Failed to apply changes from collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch
> patching file net/bluetooth/hidp/core.c
> Hunk #1 succeeded at 268 with fuzz 1 (offset 45 lines).
> Hunk #2 succeeded at 353 with fuzz 2 (offset 45 lines).
> Hunk #3 FAILED at 396.
> Hunk #4 succeeded at 474 with fuzz 2 (offset 65 lines).
> Hunk #5 FAILED at 739.
> 2 out of 5 hunks FAILED -- saving rejects to file net/bluetooth/hidp/core.c.rej
Failed to apply changes from collateral-evolutions/network/86-qdisc_tx_busylock/ieee802154.patch
> patching file net/ieee802154/6lowpan.c
> Hunk #1 FAILED at 530.
> Hunk #2 FAILED at 545.
> 2 out of 2 hunks FAILED -- saving rejects to file net/ieee802154/6lowpan.c.rej
Modify Kconfig tree ...
Rewrite Makefiles and Kconfig files ...
Traceback (most recent call last):
  File "./gentree.py", line 846, in <module>
    ret = _main()
  File "./gentree.py", line 493, in _main
    logwrite=logwrite)
  File "./gentree.py", line 785, in process
    fo = open(os.path.join(root, f), 'w')
IOError: [Errno 13] Permission denied: '/home/rarebit/topcon/build-utilites/src/compat_wireless/defconfigs/.svn/entries'
/home/rarebit/topcon/build-utilites
Generating local configuration database from kernel ... done.
scripts/Makefile.clean:17: /home/rarebit/topcon/build-utilites/src/compat_wireless/drivers/net/ethernet/3com/Makefile: No such file or directory
make[6]: *** No rule to make target `/home/rarebit/topcon/build-utilites/src/compat_wireless/drivers/net/ethernet/3com/Makefile'.  Stop.
make[5]: *** [/home/rarebit/topcon/build-utilites/src/compat_wireless/drivers/net/ethernet/3com] Error 2
make[4]: *** [/home/rarebit/topcon/build-utilites/src/compat_wireless/drivers/net/ethernet] Error 2
make[3]: *** [_clean_/home/rarebit/topcon/build-utilites/src/compat_wireless] Error 2
make[2]: *** [clean] Error 2
make[1]: *** [clean] Error 2
make: *** [clean] Error 2
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
boolean symbol HWMON tested for 'm'? test forced to 'n'
boolean symbol HWMON tested for 'm'? test forced to 'n'
#
# configuration written to .config
#
make[5]: `conf' is up to date.
boolean symbol HWMON tested for 'm'? test forced to 'n'
boolean symbol HWMON tested for 'm'? test forced to 'n'
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/rarebit/topcon/build-utilites/src/compat_wireless/compat/main.o
  CC [M]  /home/rarebit/topcon/build-utilites/src/compat_wireless/compat/compat-2.6.39.o
In file included from /home/rarebit/topcon/build-utilites/src/compat_wireless/compat/compat-2.6.39.c:11:
/home/rarebit/topcon/build-utilites/src/compat_wireless/backport-include/linux/compat.h:18: error: expected ';', ',' or ')' before '*' token
  CC [M]  /home/rarebit/topcon/build-utilites/src/compat_wireless/compat/kstrtox.o
make[6]: *** [/home/rarebit/topcon/build-utilites/src/compat_wireless/compat/compat-2.6.39.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [/home/rarebit/topcon/build-utilites/src/compat_wireless/compat] Error 2
make[4]: *** [_module_/home/rarebit/topcon/build-utilites/src/compat_wireless] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2
****** ERROR 0 *******
rarebit@rarebit-laptop:~/topcon/build-utilites$

  • Hi,

    Please confirm the entries in setup-env, and also check if running as root helps.

    Regards,
    Gigi Joseph.
  • Hi Gigi. Thanks for the suggestion. I rechecked the setup-env and verified the changes that were outlined in the wiki ie: the paths to toolchain, rootfs, kernel path and cross_compile. Running as root didn't appear to help either. This error seems to indicate that something is missing and it was there before.

    scripts/Makefile.clean:17: /home/rarebit/topcon/build-utilites/src/compat_wireless/drivers/net/ethernet/3com/Makefile: No such file or directory

    have tried to init R8.5 again and here is the output which appears to be ok with the exception of the bt-firmware.

    Additional thoughts would be welcomed. Tom

    ====================

    ./build_wl18xx.sh init R8.5
    Changing ROOTFS path to /home/rarebit/topcon/wl8-filesystem
    Using user defined kernel
    Makefile was found. Kernel version was set to 2.6.37.
    TR_DBG: ready to start
    ***** initializing workspace (w/o build) *****
    Using tag R8.5
    Cloning into: kernel
    Cloning into: openssl
    Cloning into: libnl
    Cloning into: crda
    Cloning into: wireless_regdb
    Cloning into: driver
    Cloning into: hostap
    Cloning into: ti_utils
    Cloning into: fw_download
    Cloning into: scripts_download
    Cloning into: backports
    Cloning into: iw
    Cloning into: uim
    Cloning into: bt-firmware

    Checking out branch OpenSSL_1_0_1g in repo openssl
    HEAD is now at b2d951e... Prepare for 1.0.1g release
    remote: Counting objects: 84, done.
    remote: Total 84 (delta 73), reused 73 (delta 73), pack-reused 11
    Unpacking objects: 100% (84/84), done.
    From git://github.com/openssl/openssl
    0d3587c..3138475 master -> origin/master

    Checking out branch libnl3_2_24 in repo libnl
    HEAD is now at 1a510c5... libnl-3.2.24 release

    Checking out branch master in repo crda
    Already on 'master'
    Your branch is behind 'origin/master' by 6 commits, and can be fast-forwarded.
    ^[[B^[[B^[[B^[[B^[[B^[[B^[[BHEAD is now at 81f2c7f Link against libdl as well
    Reset to tag R8.5 in repo crda

    Checking out branch master-2015-05-15 in repo wireless_regdb
    HEAD is now at 2715f19... wireless-regdb: update regulatory.bin based on preceding changes

    Checking out branch upstream_41 in repo driver
    Already on 'upstream_41'
    Your branch and 'origin/upstream_41' have diverged,
    and have 186 and 92346 different commit(s) each, respectively.
    HEAD is now at cb51164 wlcore: fix WLCORE_VENDOR_ATTR_GROUP_KEY policy (SQUASH)
    Reset to tag R8.5 in repo driver

    Checking out branch upstream_24 in repo hostap
    Already on 'upstream_24'
    Your branch and 'origin/upstream_24' have diverged,
    and have 194 and 3210 different commit(s) each, respectively.
    HEAD is now at 2710d0a ACS: don't choose JP-only channel
    Reset to tag R8.5 in repo hostap

    Checking out branch master in repo ti_utils
    Already on 'master'
    Your branch is behind 'origin/master' by 15 commits, and can be fast-forwarded.
    HEAD is now at dcf0800 wlconf: update configure-device.sh ini file name
    Reset to tag R8.5 in repo ti_utils

    Checking out branch ap_dfs in repo fw_download
    Already on 'ap_dfs'
    Your branch is behind 'origin/ap_dfs' by 6 commits, and can be fast-forwarded.
    HEAD is now at 02df01f Updated to FW 8.9.0.0.31
    Reset to tag R8.5 in repo fw_download

    Checking out branch sitara-scripts in repo scripts_download
    Already on 'sitara-scripts'
    Your branch is behind 'origin/sitara-scripts' by 24 commits, and can be fast-forwarded.
    HEAD is now at 2d248d4 testing_set_wlcore.sh: New ini file name
    Reset to tag R8.5 in repo scripts_download

    Checking out branch upstream_41 in repo backports
    Already on 'upstream_41'
    Your branch and 'origin/upstream_41' have diverged,
    and have 16 and 376 different commit(s) each, respectively.
    HEAD is now at 0d46f43 backports: skip some install operations if KLIB is defined
    Reset to tag R8.5 in repo backports

    Checking out branch v3.15 in repo iw
    HEAD is now at adc2294... version 3.15

    Checking out branch master in repo uim
    Already on 'master'
    HEAD is now at a75f45b uim: add init.d start script
    Reset to tag R8.5 in repo uim

    Checking out branch master in repo bt-firmware
    Already on 'master'
    fatal: ambiguous argument 'R8.5': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions
    Makefile was found. Kernel version was set to 2.6.37.
    Wifi Package Build Successful
  • Hi Gigi,

    I got past the original build issue by reinstalling. Now the drivers build and load. However I cannot seem to get the interface up. Have validated the physical interrupts with a scope, and /proc/interrupts are incrementing. The command "iw wlan0 scan | grep SSID" returns nothing. We are running a RAMDISK so we are loading the modules from the prompt. Wonder what to try next. Thanks in advance, Tom

    =============================================================

    Starting thttpd.

    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org dm365-evm ttyS0

    Arago 2011.02 dm365-evm ttyS0

    dm365-evm login: root
    root@dm365-evm:~# depmod -a
    root@dm365-evm:~# modprobe compat
    Loading modules backported from Linux version R8.5-0-gcb51164
    Backport generated by backports.git R8.4-2-gc188a7e
    root@dm365-evm:~# modprobe minix
    root@dm365-evm:~# modprobe cfg80211
    cfg80211: Calling CRDA to update world regulatory domain
    root@dm365-evm:~# modprobe mac80211
    NET: Registered protocol family 10
    root@dm365-evm:~# modprobe wl18xx
    root@dm365-evm:~# modprobe wlcore
    root@dm365-evm:~# cd /usr/sbin/wlconf/
    root@dm365-evm:~# ./configure-device.sh wl1837
    Device is capable of supporting 2 antenna in 2.4Ghz band
    how many antennae are fitted? [1/2] : 1
    Device is capable of supporting 5GHz
    how many 5GHz antennae are fitted? [0/1] : 0
    ERROR: Module wlcore_sdio does not exist in /proc/modules
    Create clean wl18xx-conf.bin from official_inis/WL1835MOD_INI.ini
    root@dm365-evm:/usr/sbin/wlconf# TOPCON: Powering on wifi
    wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    TOPCON: Powering off wifi
    wlcore: loaded
    wlcore: driver version: R8.5
    wlcore: compilation time: Sun Dec 20 08:51:50 2015
    TOPCON: Powering on wifi
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: firmware booted (Rev 8.9.0.0.31)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready

    root@dm365-evm:/usr/sbin/wlconf# ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 54:4A:16:12:ED:52
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@dm365-evm:/usr/sbin/wlconf# ifconfig wlan0 up
    root@dm365-evm:/usr/sbin/wlconf# cat /proc/interrupts
    CPU0
    12: 0 AINTC musb-hdrc
    16: 0 AINTC edma
    17: 0 AINTC edma_error
    26: 968 AINTC mmc0
    32: 9810 AINTC clockevent
    33: 1 AINTC free-run counter
    39: 0 AINTC i2c_davinci
    40: 632 AINTC serial
    42: 2 AINTC spi_davinci.0
    57: 3 GPIO-AINTC wl18xx
    Err: 0
    root@dm365-evm:/usr/sbin/wlconf# ifconfig wlan0 up
    root@dm365-evm:/usr/sbin/wlconf# cat /proc/interrupts
    CPU0
    12: 0 AINTC musb-hdrc
    16: 0 AINTC edma
    17: 0 AINTC edma_error
    26: 985 AINTC mmc0
    32: 9879 AINTC clockevent
    33: 1 AINTC free-run counter
    39: 0 AINTC i2c_davinci
    40: 689 AINTC serial
    42: 2 AINTC spi_davinci.0
    57: 4 GPIO-AINTC wl18xx
    Err: 0
    root@dm365-evm:/usr/sbin/wlconf# lsmod
    Module Size Used by
    wlcore_sdio 3726 0
    wl18xx 80750 0
    wlcore 168285 1 wl18xx
    mac80211 316303 2 wl18xx,wlcore
    ipv6 227367 9 mac80211
    cfg80211 179977 3 wl18xx,wlcore,mac80211
    minix 25674 0
    compat 16307 5 wlcore_sdio,wl18xx,wlcore,mac80211,cfg80211
    root@dm365-evm:/usr/sbin/wlconf# iw wlan0 scan | grep SSID
    root@dm365-evm:/usr/sbin/wlconf#
  • Hi,

    Can you please confirm if this is a TI module that you are using?
    The problem could be because of using the wrong conf/ini file.

    Regards,
    Gigi Joseph.
  • Hi,

    The HW is a custom design, the module has the following

    Model: WL18 MODGI

    IC:451I -WL18DBMOD

    Regs, Tom

  • BTW, these were the markings on the module. I have been referencing this data sheet.

    www.ti.com/.../wl1837mod.pdf
  • Hi,

    It looks to me that you're using the wrong ini file.

    ***
    root@dm365-evm:~# ./configure-device.sh wl1837
    Device is capable of supporting 2 antenna in 2.4Ghz band
    how many antennae are fitted? [1/2] : 1
    Device is capable of supporting 5GHz
    how many 5GHz antennae are fitted? [0/1] : 0
    ERROR: Module wlcore_sdio does not exist in /proc/modules
    Create clean wl18xx-conf.bin from official_inis/WL1835MOD_INI.ini
    ***

    Please refer to: http://www.ti.com/lit/pdf/SWRU422 Section 9 -"1837 TI Module .INI File Description"

    Regards,
    Gigi Joseph.

  • Hi Gigi,

    I went to the gitorious site the SWRU422 doc referred to and downloaded the following ini files

    WL1837MOD_INI_FCC_CE.ini

    WL1837MOD_INI_FCC_CE_JP.ini

    I created the w18xx-conf.bin and loaded the wlcore_sdio with the same "no response" results. Have I missed something? a step? Not sure how to proceed debugging this. Thanks in advance. Tom

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

    root@dm365-evm:/usr/sbin/wlconf# ./wlconf -o /lib/firmware/ti-connectivity/wl18xx-conf.bin -I official_inis/WL1837MOD_INI_FCC_CE.ini
    root@dm365-evm:/usr/sbin/wlconf# modprobe wlcore_sdio
    root@dm365-evm:/usr/sbin/wlconf# TOPCON: Powering on wifi
    wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    TOPCON: Powering off wifi
    wlcore: loaded
    wlcore: driver version: R8.5
    wlcore: compilation time: Sun Dec 20 08:51:50 2015
    TOPCON: Powering on wifi
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: firmware booted (Rev 8.9.0.0.31)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready

    root@dm365-evm:/usr/sbin/wlconf# ifconfig

    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    wlan0     Link encap:Ethernet  HWaddr 54:4A:16:12:ED:52  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    root@dm365-evm:/usr/sbin/wlconf# ifconfig wlan0 up
    root@dm365-evm:/usr/sbin/wlconf# iw wlan0 scan | grep SSID
    root@dm365-evm:/usr/sbin/wlconf# iw wlan0 scan            
    root@dm365-evm:/usr/sbin/wlconf#

    root@dm365-evm:/usr/sbin/wlconf# ifconfig wlan0 down
    wlcore: down
    TOPCON: Powering off wifi
    root@dm365-evm:/usr/sbin/wlconf# ifconfig wlan0 up  
    TOPCON: Powering on wifi
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: firmware booted (Rev 8.9.0.0.31)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@dm365-evm:/usr/sbin/wlconf# ifconfig
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    wlan0     Link encap:Ethernet  HWaddr 54:4A:16:12:ED:52  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    root@dm365-evm:/usr/sbin/wlconf# iw wlan0 scan
    root@dm365-evm:/usr/sbin/wlconf#

  • Hi Gigi,

    We continue to have no expected response from the scans. We have enabled debugging in the driver per this link

    processors.wiki.ti.com/.../WL18xx_Driver_Debug

    IRQs seem in order. We have tried a number of things but this continues to respond in the same matter. In the log below we are loading everything via the configuration script after updating the INI. Doing the steps manually ie: creating the conf file and then loading the modules individually result in the same response.

    The one thing I have noticed is the difference in the backports. We have built with R8.5. Is this right?

    Loading modules backported from Linux version R8.5-0-gcb51164
    Backport generated by backports.git R8.4-2-gc188a7e

    =======================
    root@topcon:~# depmod -a
    root@topcon:~# cd /usr/sbin/wlconf/
    root@topcon:/usr/sbin/wlconf# ./wlconf -o /lib/firmware/ti-connectivity/wl18xx-c
    onf.bin -I official_inis/WL1837MOD_INI_FCC_CE.ini
    root@topcon:/usr/sbin/wlconf# ./configure-device.sh wl1837
    Device is capable of supporting 2 antenna in 2.4Ghz band
    how many antennae are fitted? [1/2] : 1
    Device is capable of supporting 5GHz
    how many 5GHz antennae are fitted? [0/1] : 0
    ERROR: Module wlcore_sdio does not exist in /proc/modules
    A wl18xx-conf.bin file already exists, do you want to modify it (y) or generate a clean one from .ini (n)
    modify it? [y/n] : y
    Loading modules backported from Linux version R8.5-0-gcb51164
    Backport generated by backports.git R8.4-2-gc188a7e
    root@topcon:/usr/sbin/wlconf# cfg80211: Calling CRDA to update world regulatory domain
    NET: Registered protocol family 10
    TOPCON: Powering on wifi
    wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    TOPCON: Powering off wifi
    wlcore: loaded
    wlcore: driver version: R8.5
    wlcore: compilation time: Fri Dec 25 08:05:09 2015
    TOPCON: Powering on wifi
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: firmware booted (Rev 8.9.0.0.31)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready

    root@topcon:/usr/sbin/wlconf# iw wlan0 scan
    root@topcon:/usr/sbin/wlconf# lsmod
    Module Size Used by
    wl18xx 80750 0
    wlcore 168285 1 wl18xx
    mac80211 316303 2 wl18xx,wlcore
    ipv6 227367 9 mac80211
    cfg80211 179977 3 wl18xx,wlcore,mac80211
    wlcore_sdio 3726 0
    compat 16307 5 wl18xx,wlcore,mac80211,cfg80211,wlcore_sdio
    root@topcon:/usr/sbin/wlconf#
  • BTW, here's an output with the debugging turned on
    ===========================

    root@topcon:~# cd /usr/sbin/wlconf/
    root@topcon:/usr/sbin/wlconf# ./wlconf -o /lib/firmware/ti-connectivity/wl18xx-c
    onf.bin -I official_inis/WL1837MOD_INI_FCC_CE.ini

    root@topcon:/usr/sbin/wlconf# modprobe wlcore_sdio
    Loading modules backported from Linux version R8.5-0-gcb51164
    Backport generated by backports.git R8.4-2-gc188a7e
    root@topcon:/usr/sbin/wlconf# cfg80211: Calling CRDA to update world regulatory domain
    NET: Registered protocol family 10
    TOPCON: Powering on wifi
    wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    TOPCON: Powering off wifi
    wlcore: loaded
    wlcore: driver version: R8.5
    wlcore: compilation time: Fri Dec 25 08:05:09 2015
    TOPCON: Powering on wifi
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: firmware booted (Rev 8.9.0.0.31)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready

    root@topcon:/usr/sbin/wlconf# ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 54:4A:16:12:ED:52
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@topcon:/usr/sbin/wlconf# ifconfig wlan0 down
    wlcore: down
    TOPCON: Powering off wifi

    root@topcon:/usr/sbin/wlconf# echo 8 > /proc/sys/kernel/printk
    root@topcon:/usr/sbin/wlconf# echo 0x139 > /sys/module/wlcore/parameters/debug_level
    root@topcon:/usr/sbin/wlconf# ifconfig wlan0 up

    TOPCON: Powering on wifi
    wlcore: cmd_box_addr 0xb007f8
    wlcore: MBOX ptrs: 0xb00adc 0xb00b90
    wlcore: PHY firmware version: Rev 8.2.0.0.224
    wlcore: unmasking event_mask 0xffef01
    wlcore: firmware booted (Rev 8.9.0.0.31)
    wlcore: IRQ work
    wlcore: intr: 0x4 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
    wlcore: WL1271_ACX_INTR_EVENT_A
    wlcore: EVENT on mbox 0
    wlcore: MBOX vector: 0x80000
    ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@topcon:/usr/sbin/wlconf# iw wlan0 scan
    wlcore: n_pactive_ch = 1
    wlcore: freq 2467, ch. 12, flags 0x192, power 20, min/max_dwell 25/50, NO-IR
    wlcore: n_pactive_ch = 2
    wlcore: freq 2472, ch. 13, flags 0x192, power 20, min/max_dwell 25/50, NO-IR
    wlcore: n_pactive_ch = 3
    wlcore: freq 2484, ch. 14, flags 0x1f2, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 2412, ch. 1, flags 0x1a0, power 20, min/max_dwell 25/50
    wlcore: freq 2417, ch. 2, flags 0x1a0, power 20, min/max_dwell 25/50
    wlcore: freq 2422, ch. 3, flags 0x1a0, power 20, min/max_dwell 25/50
    wlcore: freq 2427, ch. 4, flags 0x1a0, power 20, min/max_dwell 25/50
    wlcore: freq 2432, ch. 5, flags 0x180, power 20, min/max_dwell 25/50
    wlcore: freq 2437, ch. 6, flags 0x180, power 20, min/max_dwell 25/50
    wlcore: freq 2442, ch. 7, flags 0x180, power 20, min/max_dwell 25/50
    wlcore: freq 2447, ch. 8, flags 0x180, power 20, min/max_dwell 25/50
    wlcore: freq 2452, ch. 9, flags 0x180, power 20, min/max_dwell 25/50
    wlcore: freq 2457, ch. 10, flags 0x190, power 20, min/max_dwell 25/50
    wlcore: freq 2462, ch. 11, flags 0x190, power 20, min/max_dwell 25/50
    wlcore: 2.4GHz: active 11 passive 3
    wlcore: 5GHz: active 0 passive 0
    wlcore: DFS: 0
    wlcore: build probe request band 0
    wlcore: SCAN: 00000000: 00 00 00 00 00 00 81 00 02 00 00 00 00 00 02 00
    wlcore: SCAN: 00000010: 03 00 00 0b 00 00 00 03 00 00 00 00 00 01 00 00
    wlcore: SCAN: 00000020: 19 00 32 00 64 00 0c 14 01 00 00 00 19 00 32 00
    wlcore: SCAN: 00000030: 64 00 0d 14 01 00 00 00 19 00 32 00 64 00 0e 14
    wlcore: SCAN: 00000040: 01 00 00 00 19 00 32 00 64 00 01 14 00 00 00 00
    wlcore: SCAN: 00000050: 19 00 32 00 64 00 02 14 00 00 00 00 19 00 32 00
    wlcore: SCAN: 00000060: 64 00 03 14 00 00 00 00 19 00 32 00 64 00 04 14
    wlcore: SCAN: 00000070: 00 00 00 00 19 00 32 00 64 00 05 14 00 00 00 00
    wlcore: SCAN: 00000080: 19 00 32 00 64 00 06 14 00 00 00 00 19 00 32 00
    wlcore: SCAN: 00000090: 64 00 07 14 00 00 00 00 19 00 32 00 64 00 08 14
    wlcore: SCAN: 000000a0: 00 00 00 00 19 00 32 00 64 00 09 14 00 00 00 00
    wlcore: SCAN: 000000b0: 19 00 32 00 64 00 0a 14 00 00 00 00 19 00 32 00
    wlcore: SCAN: 000000c0: 64 00 0b 14 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000290: 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00
    wlcore: IRQ work
    wlcore: intr: 0x20 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
    wlcore: WL1271_ACX_INTR_HW_AVAILABLE
    wlcore: IRQ work
    wlcore: intr: 0x28 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
    wlcore: WL1271_ACX_INTR_EVENT_B
    wlcore: EVENT on mbox 1
    wlcore: MBOX vector: 0x100
    wlcore: scan results: 0
    wlcore: WL1271_ACX_INTR_HW_AVAILABLE
    wlcore: Scanning complete
    wlcore: freq 5180, ch. 36, flags 0x22, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5190, ch. 38, flags 0x22, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5200, ch. 40, flags 0x2, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5210, ch. 42, flags 0x2, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5220, ch. 44, flags 0x2, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5230, ch. 46, flags 0x12, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5240, ch. 48, flags 0x2, power 20, min/max_dwell 25/50, NO-IR
    wlcore: freq 5260, ch. 52, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5280, ch. 56, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5300, ch. 60, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5320, ch. 64, flags 0x1a, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5500, ch. 100, flags 0x2a, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5520, ch. 104, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5540, ch. 108, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5560, ch. 112, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5580, ch. 116, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5600, ch. 120, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5620, ch. 124, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5640, ch. 128, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5660, ch. 132, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5680, ch. 136, flags 0xa, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: freq 5700, ch. 140, flags 0x1a, power 20, min/max_dwell 25/50, DFS, NO-IR
    wlcore: 2.4GHz: active 0 passive 0
    wlcore: 5GHz: active 0 passive 7
    wlcore: DFS: 15
    wlcore: build probe request band 1
    wlcore: SCAN: 00000000: 00 00 00 00 00 00 81 00 02 00 00 00 00 00 02 00
    wlcore: SCAN: 00000010: 00 07 00 00 00 00 0f 00 00 00 00 00 00 01 00 00
    wlcore: SCAN: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000000c0: 00 00 00 00 00 00 00 00 19 00 32 00 64 00 24 14
    wlcore: SCAN: 000000d0: 00 00 00 00 19 00 32 00 64 00 26 14 00 00 00 00
    wlcore: SCAN: 000000e0: 19 00 32 00 64 00 28 14 00 00 00 00 19 00 32 00
    wlcore: SCAN: 000000f0: 64 00 2a 14 00 00 00 00 19 00 32 00 64 00 2c 14
    wlcore: SCAN: 00000100: 00 00 00 00 19 00 32 00 64 00 2e 14 00 00 00 00
    wlcore: SCAN: 00000110: 19 00 32 00 64 00 30 14 00 00 00 00 19 00 32 00
    wlcore: SCAN: 00000120: 96 00 34 14 01 00 00 00 19 00 32 00 96 00 38 14
    wlcore: SCAN: 00000130: 01 00 00 00 19 00 32 00 96 00 3c 14 01 00 00 00
    wlcore: SCAN: 00000140: 19 00 32 00 96 00 40 14 01 00 00 00 19 00 32 00
    wlcore: SCAN: 00000150: 96 00 64 14 01 00 00 00 19 00 32 00 96 00 68 14
    wlcore: SCAN: 00000160: 01 00 00 00 19 00 32 00 96 00 6c 14 01 00 00 00
    wlcore: SCAN: 00000170: 19 00 32 00 96 00 70 14 01 00 00 00 19 00 32 00
    wlcore: SCAN: 00000180: 96 00 74 14 01 00 00 00 19 00 32 00 96 00 78 14
    wlcore: SCAN: 00000190: 01 00 00 00 19 00 32 00 96 00 7c 14 01 00 00 00
    wlcore: SCAN: 000001a0: 19 00 32 00 96 00 80 14 01 00 00 00 19 00 32 00
    wlcore: SCAN: 000001b0: 96 00 84 14 01 00 00 00 19 00 32 00 96 00 88 14
    wlcore: SCAN: 000001c0: 01 00 00 00 19 00 32 00 96 00 8c 14 01 00 00 00
    wlcore: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    wlcore: SCAN: 00000290: 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00
    wlcore: IRQ work
    wlcore: intr: 0x24 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
    wlcore: WL1271_ACX_INTR_EVENT_A
    wlcore: EVENT on mbox 0
    wlcore: MBOX vector: 0x100
    wlcore: scan results: 0
    wlcore: WL1271_ACX_INTR_HW_AVAILABLE
    wlcore: Scanning complete
    root@topcon:/usr/sbin/wlconf#
  • I will answer my own question here, appears there were some performance issues with the antenna that prevented any meaningful Rx data returned with a scan. The drivers have been functional, which was not clear originally from the scan results. If anyone has documentation that can aid in the interpretation of the scan data that is returned with debugging turned on, that would be appreciated.  

  • Hi Tom,

    Thanks for the update, I will mark this as closed.
    For the SCAN messages in the debug logs, you can refer to: wl18xx_scan_send() in scan.c (\drivers\net\wireless\ti\wl18xx\)

    Regards,
    Gigi Joseph.