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.

Got firmware panic while loading ti wl12xx module on imx6

Other Parts Discussed in Thread: WL1271

Hi,

I am getting below panic while loading wifi module for imx6 solo board.

wl1271: ERROR watchdog interrupt received! starting recovery.
wl1271: Reading FW panic log
wl1271: ERROR command complete timeout
------------[ cut here ]------------
WARNING: at /home/vishwa/ti-compat-wireless-wl12xx-0.20120206r412_02/drivers/net/wireless/wl12xx/cmd.c:107 wl1271_cmd_send+0x38c/0x3d
4 [wl12xx]()
Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211
[<8003e7e8>] (unwind_backtrace+0x0/0xf8) from [<8006a240>] (warn_slowpath_common+0x4c/0x64)
[<8006a240>] (warn_slowpath_common+0x4c/0x64) from [<8006a274>] (warn_slowpath_null+0x1c/0x24)
[<8006a274>] (warn_slowpath_null+0x1c/0x24) from [<7f091398>] (wl1271_cmd_send+0x38c/0x3d4 [wl12xx])
[<7f091398>] (wl1271_cmd_send+0x38c/0x3d4 [wl12xx]) from [<7f091558>] (wl12xx_cmd_stop_fwlog+0x54/0x80 [wl12xx])
[<7f091558>] (wl12xx_cmd_stop_fwlog+0x54/0x80 [wl12xx]) from [<7f090058>] (wl1271_recovery_work+0x1b4/0x2d0 [wl12xx])
[<7f090058>] (wl1271_recovery_work+0x1b4/0x2d0 [wl12xx]) from [<8007effc>] (process_one_work+0x10c/0x38c)
[<8007effc>] (process_one_work+0x10c/0x38c) from [<8007f834>] (worker_thread+0x170/0x37c)
[<8007f834>] (worker_thread+0x170/0x37c) from [<800836e4>] (kthread+0x80/0x88)
[<800836e4>] (kthread+0x80/0x88) from [<80038aa4>] (kernel_thread_exit+0x0/0x8)
---[ end trace 4e6ab4fb8eff15af ]---
wl1271: ERROR failed to send stop firmware logger command
First address of fwlogger = 0x2603
wl1271: Hardware recovery in progress. FW ver: Rev 6.3.3.0.79 pc: 0x29cc
wl1271: down
ieee80211 phy0: Hardware restart was requested
wl1271: firmware booted (Rev 6.3.3.0.79)
wl1271: Driver version: R4_SP2_03_00
wl1271: Association completed.
wl1271: ERROR no active RX BA session on tid: 0

Need some way to resolve this.

Thanks,

Subhaprada

  • Hi Subhaprada,

    Your driver/firmware versions are out of date. Please update to the latest and retest.

    Latest version: "ol_R5.SP7.01"
    WL12xx build process: http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Build_Instructions

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    Thanks for your valuable reply.

    But from Where should I get the driver that you mentioned.

    I need that link to get it.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    Please check the Build Instruction link at: http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Build_Instructions
    This explains from where you can get the release also...

    Regards,
    Gigi Joseph.

  • Sorry Joseph.

    Still am unable to find out driver and firmware for that release .

    Can you please share the link with me so that I will take out the driver directly to download.

    Regards,

    Subhaprada

  • Hi Joseph,

    I got the link to get the firmware and driver source required for my testing.

    Thanks,

    Subhaprada

  • Hi Joseph,

    can you please suggest me which firmware version should i use for the driver version you mentioned.

    Regards,

    Subhaprada

  • Hi Subhaprada,

    If you follow the build script at: https://github.com/TI-ECS/build-utilites/blob/master/wl12xx_build.sh , the script will ensure to download the correct fw version.

    The correct fw version for ol_R5.SP7.01 is: Rev 6.3.10.0.139

    Regards,
    Gigi Joseph.

  • Hi,

    After doing modprobe i am getting following eror.

    root@freescale /home$ modprobe wl12xx_sdio

    wl1271_sdio: probe of mmc1:0001:1 failed with error -110
    wl1271_sdio: probe of mmc1:0001:2 failed with error -84

    Can you suggest me for this issue.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    Can you share the complete boot logs?

    Regards,
    Gigi Joseph.

  • Hi Joseph,

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

    This is taking the driver of its own and also firmware of its own.

    Finally giving the .ko for wifi.

    I am not able to select my driver using this link.

    Can u please suggesthow I will select my driver and firmware for my progress.

    Thanks,

    Subhaprada Panda

  • Hi Joseph,

    During calibration am getting following error.

    wl1271_sdio: probe of mmc1:0001:1 failed with error -84
    add wake up source irq 98
    wl12xx: loaded
    wl12xx: power up
    wl12xx: firmware booted in PLT mode (Rev 6.3.10.0.136)
    wl12xx: ERROR command execute failure 2
    ------------[ cut here ]------------
    WARNING: at /home/subhaprada/wksp/compat-wireless/drivers/net/wireless/wl12xx/main.c:1432 wl12xx_queue_recovery_work+0x2c/0x88 [wl12x
    x]()
    Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 [last unloaded: wl12xx_sdio]
    [<8003e7e8>] (unwind_backtrace+0x0/0xf8) from [<8006a240>] (warn_slowpath_common+0x4c/0x64)
    [<8006a240>] (warn_slowpath_common+0x4c/0x64) from [<8006a274>] (warn_slowpath_null+0x1c/0x24)
    [<8006a274>] (warn_slowpath_null+0x1c/0x24) from [<7f0973f4>] (wl12xx_queue_recovery_work+0x2c/0x88 [wl12xx])
    [<7f0973f4>] (wl12xx_queue_recovery_work+0x2c/0x88 [wl12xx]) from [<7f09a5d0>] (wl1271_cmd_send+0x8c/0x53c [wl12xx])
    [<7f09a5d0>] (wl1271_cmd_send+0x8c/0x53c [wl12xx]) from [<7f09b83c>] (wl1271_cmd_test+0x48/0x80 [wl12xx])
    [<7f09b83c>] (wl1271_cmd_test+0x48/0x80 [wl12xx]) from [<7f0ae184>] (wl1271_tm_cmd+0x2f4/0x4a0 [wl12xx])
    [<7f0ae184>] (wl1271_tm_cmd+0x2f4/0x4a0 [wl12xx]) from [<7f04e9d8>] (ieee80211_testmode_cmd+0x24/0x40 [mac80211])
    [<7f04e9d8>] (ieee80211_testmode_cmd+0x24/0x40 [mac80211]) from [<7f0087d4>] (nl80211_testmode_do+0x50/0x64 [cfg80211])
    [<7f0087d4>] (nl80211_testmode_do+0x50/0x64 [cfg80211]) from [<8036ab10>] (genl_rcv_msg+0x1bc/0x1f0)
    [<8036ab10>] (genl_rcv_msg+0x1bc/0x1f0) from [<8036a020>] (netlink_rcv_skb+0xbc/0xd8)
    [<8036a020>] (netlink_rcv_skb+0xbc/0xd8) from [<8036a94c>] (genl_rcv+0x1c/0x24)
    [<8036a94c>] (genl_rcv+0x1c/0x24) from [<803699a0>] (netlink_unicast+0x2a0/0x2fc)
    [<803699a0>] (netlink_unicast+0x2a0/0x2fc) from [<80369d24>] (netlink_sendmsg+0x288/0x300)
    [<80369d24>] (netlink_sendmsg+0x288/0x300) from [<80337a28>] (sock_sendmsg+0x94/0xb4)
    [<80337a28>] (sock_sendmsg+0x94/0xb4) from [<80338e1c>] (__sys_sendmsg+0x2bc/0x2d4)
    [<80338e1c>] (__sys_sendmsg+0x2bc/0x2d4) from [<80339844>] (sys_sendmsg+0x3c/0x68)
    [<80339844>] (sys_sendmsg+0x3c/0x68) from [<80037fc0>] (ret_fast_syscall+0x0/0x30)
    ---[ end trace de7287514dc32aba ]---
    wl12xx: WARNING TEST command failed
    wl12xx: WARNING testmode cmd test failed: -5
    Fail to tune channelwl12xx: power down

    remove wake up source irq 98
    Calibration not complete. Removing half-baked nvs

    Thanks,

    Subhaprada

  • Hi,

    Can anybody will suggest me how can i compile my wl12xx wifi driver and will it take firmware of its own or how i will take the firmware for it.

    I need the compilation process for my own wifi driver and also want the firmware needed for it.

    My driver version is mentioned in this mail loop before.

    Please find it.

    Thanks,

    Subhaprada Panda

  • Hi Subhaprada,

    The below error:

    wl12xx: firmware booted in PLT mode (Rev 6.3.10.0.136)
    wl12xx: ERROR command execute failure 2

    is because your driver and firmware are not matching.

    Please note that each driver release will have its corresponding firmware release. So you cannot take an old driver code, and use it with the latest firmware...

    Like I said before, R4_SP2_03_00 is a very old release. When you upgrade, please upgrade both the driver and the firmware to the latest release (git tag: ol_R5.SP7.01).

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    Thanks for your suggestions.

    But I want to know the compilation process for driver and firmware.

    I did not get from "NLCP build instrctions" about build procudure.

    If you will post that then I will be grateful  to you.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    Still not clear what you are looking for...

    The "NLCP build instructions" page talks about the WLAN build script available at (git://github.com/TI-ECS/build-utilites.git). Download it, and make a setup-env based on your platform (also explained in the wiki page) and run "./wl12xx_build.sh all". 

    You don't build the FW as it is available only as binary - the script takes care of downloading the correct fw binary based on the git tag in the build script.

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    Can you give me the link from where I will get latest driver and firmware for the wifi.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    In the wl12xx_build.sh script, please modify

    declare -A gen_tag="ol_R5.SP5.01"
    to
    declare -A gen_tag="ol_R5.SP7.01"
    to download and build the latest Wifi driver/firmware.

    As you know, the NLCP driver code is open source and available at: git://github.com/TI-OpenLink
    While downloading from the git, you have to give the correct version tag. The build script takes care of all this.

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    How can I build my driver and how i will link the path to my driver so that build script will run my driver and will take the firmware required for it.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    Can you please tell me what is your driver?
    Do you mean you have modified the driver code and want to build it? You can integrate your changes to the latest driver and then do the build....

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    As you told I took the latest driver and firmware.

    Build procedure was successful but I got below error while running the wifi driver script.

    Here it is loading all the four ko modules.

    Below is the error for your reference.

    Please reply me to resolve this issue.

    root@freescale /home$ ./wifi.sh
    cfg80211: Calling CRDA to update world regulatory domain
    wl12xx: driver version: ol_R5.SP7.01
    wl12xx: compilation time: Thu Jul 31 18:31:12 2014
    add wake up source irq 98
    wl12xx: loaded
    wl12xx: state: 0
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR firmware boot failed despite 3 retries
    ifconfig: SIOCSIFFLAGS: Invalid argument
    wpa_supplicant v0.8.x
    random: Trying to read entropy from /dev/random
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant1.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant1.conf' -> '/etc/wpa_supplicant1.conf'
    Reading configuration file '/etc/wpa_supplicant1.conf'
    ctrl_interface='/var/run/wpa_supplicant'
    update_config=1
    Priority group 2
       id=0 ssid='fossilshale'
    wl12xx: state: 0
    nl80211: interface wlan0 in phy phy0
    rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR firmware boot failed despite 3 retries
    Could not set interface wlan0 flags: Invalid argument
    nl80211: Could not set interface 'wlan0' UP
    wlan0: Failed to initialize driver interface
    Failed to add interface wlan0
    wlan0: Cancelling scan request
    wlan0: Cancelling authentication timeout
    udhcpc (v1.20.2) started
    wl12xx: state: 0
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR firmware boot failed despite 3 retries
    ifconfig: SIOCSIFFLAGS: Invalid argument
    Sending discover...
    udhcpc: sendto: Network is down
    Read error: Network is down, reopening socket
    Sending discover...
    udhcpc: sendto: Network is down
    Read error: Network is down, reopening socket
    Sending discover...
    udhcpc: sendto: Network is down
    Read error: Network is down, reopening socket
    Read error: Network is down, reopening socket
    root@freescale /home$
     CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.5    | VT102 |      Offline      

    Thanks and Regards,

    Subhaprada Panda                                                

  • hi joseph,

    after taking the latest driver and firmware am getting below error.

    wl12xx:Error nvs size is not expected:1113!=912

    thanks,

    subhaprada

  • Hi joseph,

    In addition to previous post am posting more error message for your reference.

    Need solution to avoid this error and need to function wifi driver.

    wl12xx: driver version: ol_R5.SP7.01

    wl12xx: loaded

    wl12xx: ERROR nvs size is not as expected: 1113 != 912wl12xx: ERROR nvs size is not as expected: 1113 != 912
    wl12xx: ERROR firmware boot failed despite 3 retries
    ifconfig: SIOCSIFFLAGS: Invalid argument
    wpa_supplicant v0.8.x
    random: Trying to read entropy from /dev/random
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant1.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant1.conf' -> '/etc/wpa_supplicant1.conf'
    Reading configuration file '/etc/wpa_supplicant1.conf'
    ctrl_interface='/var/run/wpa_supplicant'
    wl12xx: ERROR firmware boot failed despite 3 retries

    thanks,

    Subhaprada

  • Hi Joseph,

    I hope nvs file size generated is 1113 but expecting was 912.

    what should I do for that.

    Thanks,

    Subhaprada

  • Hi Joseph,

    waiting for your valuable reply to resolve above issue.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    Please generate a new nvs file, based on the below link:
    http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Calibration_Proccess

    and see if it helps.

    Regards,
    Gigi Joseph.

  • Hi Joseph,

    After doing calibration am getting below error message.

    wl1271_sdio: probe of mmc1:0001:1 failed with error -84
    wl1271_sdio: probe of mmc1:0001:2 failed with error -84
    Fail to set PLT power mode on
    Calibration not complete. Removing half-baked nvs

    Need you suggestion to avoid this error.


    Thanks,

    Subhaprada

  • Hi Joseph,

    Can you help me to solve above problem.

    Thanks,

    Subhaprada

  • Hi  Joseph,

    MY wifi is working for first time only.

    if i will make network down and then making up that time it is unable to work.


    Actually i want to add my board file to the existing driver (compat-wireless)
     what I downloaded and build through script earlier.

    Now how can i add my board file and config file in the script to work for my target imx6 freescale board.

    Need your help.

    Thanks,

    Subhaprada

  • Hi Subhaprada,

    [Q] MY wifi is working for first time only.
    if i will make network down and then making up that time it is unable to work.

    [A]
    Please refer to http://e2e.ti.com/support/wireless_connectivity/f/307/t/181835.aspx - it deals with a similar issue.
    Basically, please ensure if WLAN_EN is disabled and enabled correctly.

    [Q] Actually i want to add my board file to the existing driver (compat-wireless)
    what I downloaded and build through script earlier.
    Now how can i add my board file and config file in the script to work for my target imx6 freescale board.

    [A]
    Not sure I understood the question. What did you give for KLIB_BUILD in the setup-env script? It should be the path to your linux kernel

    Regards,
    Gigi Joseph.