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.

wl1271 calibration error - versions mismatch?

Other Parts Discussed in Thread: WL1271

Hi,

I'm trying to run the calibration tool against the WL1271 device and I get the following when I run the calibrator utility.

# calibrator plt autocalibrate wlan0 /system/etc/wifi/wl12xx_sdio.ko /system/etc/firmware/ti-connectivity/TQS_S_2.6.ini /system/etc/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00

wl1271_init

mac address:  0b:ad:de:ad:be:ef

mac address:  0b:ad:de:ad:be:f0

wl12xx: loaded

wl12xx: power up

 wl12xx: booting firmware ti-connectivity/wl127x-fw-4-plt.bin

wl12xx: firmware booted in PLT mode (Rev 6.3.10.0.136)

wl12xx: ERROR command execute failure 2

------------[ cut here ]------------

WARNING: at /home/bluetree/myandroid/wifi/compat-wireless/drivers/net/wireless/wl12xx/main.c:1433 wl12xx_queue_recovery_work+0x2c/0x9c [wl12xx]()

Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat

[<8003e578>] (unwind_backtrace+0x0/0xf0) from [<80068e50>] (warn_slowpath_common+0x4c/0x64)

[<80068e50>] (warn_slowpath_common+0x4c/0x64) from [<80068e80>] (warn_slowpath_null+0x18/0x1c)

[<80068e80>] (warn_slowpath_null+0x18/0x1c) from [<7f0a73e0>] (wl12xx_queue_recovery_work+0x2c/0x9c [wl12xx])

[<7f0a73e0>] (wl12xx_queue_recovery_work+0x2c/0x9c [wl12xx]) from [<7f0abc20>] (wl1271_cmd_send+0x4d0/0x504 [wl12xx])

[<7f0abc20>] (wl1271_cmd_send+0x4d0/0x504 [wl12xx]) from [<7f0ad554>] (wl1271_cmd_test+0x4c/0x70 [wl12xx])

[<7f0ad554>] (wl1271_cmd_test+0x4c/0x70 [wl12xx]) from [<7f0bdde8>] (wl1271_tm_cmd+0xf8/0x4a8 [wl12xx])

[<7f0bdde8>] (wl1271_tm_cmd+0xf8/0x4a8 [wl12xx]) from [<7f05b05c>] (ieee80211_testmode_cmd+0x34/0x3c [mac80211])

[<7f05b05c>] (ieee80211_testmode_cmd+0x34/0x3c [mac80211]) from [<7f016214>] (nl80211_testmode_do+0x54/0x60 [cfg80211])

[<7f016214>] (nl80211_testmode_do+0x54/0x60 [cfg80211]) from [<7f000f78>] (nl_doit_wrapper+0x104/0x13c [compat])

[<7f000f78>] (nl_doit_wrapper+0x104/0x13c [compat]) from [<80386cc8>] (genl_rcv_msg+0x1b0/0x1e0)

[<80386cc8>] (genl_rcv_msg+0x1b0/0x1e0) from [<80385100>] (netlink_rcv_skb+0x4c/0xb0)

[<80385100>] (netlink_rcv_skb+0x4c/0xb0) from [<80386b0c>] (genl_rcv+0x18/0x24)

[<80386b0c>] (genl_rcv+0x18/0x24) from [<80384da8>] (netlink_unicast+0x288/0x32c)

[<80384da8>] (netlink_unicast+0x288/0x32c) from [<803856bc>] (netlink_sendmsg+0x258/0x26c)

[<803856bc>] (netlink_sendmsg+0x258/0x26c) from [<80361610>] (sock_sendmsg+0x98/0xb4)

[<80361610>] (sock_sendmsg+0x98/0xb4) from [<80361bb4>] (sys_sendmsg+0x1b0/0x20c)

[<80361bb4>] (sys_sendmsg+0x1b0/0x20c) from [<80039f80>] (ret_fast_syscall+0x0/0x30)

---[ end trace 4723fc8db8b89614 ]---

wl12xx: WARNING TEST command failed

wl12xx: WARNING testmode cmd test failed: -5

Fail to tune channel

wl1271 unloaded

Calibration not complete. Removing half-baked nvs

I've seen that this error suggests a mismatch between the firmware and driver. However I'm reasonably sure that I am using the firmware .plt file and driver that was pulled down using the TI script so they should be consistent.  The tag in the script is ol_R5.SP5.01.

I did a small amount of investigation on the versions and I get the following for the different components:

bluetree@bluetree:/home/wlan/compat$ git describe
ol_R5.SP7.01
bluetree@bluetree:/home/wlan/compat-wireless$ git describe
ol_R5.SP7.01
bluetree@bluetree:/home/wlan/wl12xx$ git describe
ol_R5.SP4.01-2-g1aa2c8e
bluetree@bluetree:/home/wlan/ti-utils$ git describe
ol_R5.SP4.01-1-g4951e94

This looks a bit strange given the tag is ol_R5.SP5.01 but perhaps this is to be expected and may have nothing to do with the problem.

Everything I've seen suggests this is due to a version mismatch but I believe the versions are consistent for the given tag.  Can anyone suggest what might be going on or ways to debug further?

Thanks,

Bruno

  • Hi Bruno,

    As you suspected, "wl12xx: ERROR command execute failure 2" - indeed is a mismatch between the driver/calibrator/plt fw versions.

    The last wl12xx release is with git tag "ol_R5.SP7.01"

    It seems to me that the wl12xx driver & ti-utils git has not been updated to the latest.

    Please execute the build script at: https://github.com/TI-ECS/build-utilites/blob/master/wl12xx_build.sh (after modifying gen_tag to "ol_R5.SP7.01") and you shall have the the correct and latest versions for all the components.

    PLT should go through fine after this.

    Regards,
    Gigi Joseph.

  • Just to close this off. It took me a while to get back to this but I eventually updated to ol_R5.SP7.01 and this fixed the problem. I am now able to calibrate the device.

    Bruno