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 problem

Other Parts Discussed in Thread: WL1271

Hi,

I have a TiWi-BLE modul on a i.MX6 processor. The w-lan seems to work correctly. I can scan with „iwlist wlan0 scan“ without problems. But the calibration don't work. I searched in this forum but there was no answer which could helped me.

root@linaro-server:~/ti-utils# lsmod

Module Size Used by

wl12xx 187876 0

mac80211 275350 1 wl12xx

cfg80211 163001 2 mac80211,wl12xx

root@linaro-server:~/ti-utils# ./calibrator --debug plt autocalibrate wlan0 /lib/modules/$(uname -r)/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko /lib/firmware/ti-connectivity/ini_files/127x/TQS_S_2.6.ini /lib/firmware/ti-connectivity/wl1271-nvs2.bin 00:00:00:00:00:00

-- Debug: Received Message:

-------------------------- BEGIN NETLINK MESSAGE ---------------------------

[HEADER] 16 octets

.nlmsg_len = 36

.nlmsg_type = 2 <ERROR>

.nlmsg_flags = 0 <>

.nlmsg_seq = 1394710814

.nlmsg_pid = 3309

[ERRORMSG] 20 octets

.error = 0 "Success"

[ORIGINAL MESSAGE] 16 octets

.nlmsg_len = 16

.nlmsg_type = 18 <0x12>

.nlmsg_flags = 5 <REQUEST,ACK>

.nlmsg_seq = 1394710814

.nlmsg_pid = 3309

--------------------------- END NETLINK MESSAGE ---------------------------

-- Debug: Received Message:

-------------------------- BEGIN NETLINK MESSAGE ---------------------------

[HEADER] 16 octets

.nlmsg_len = 76

.nlmsg_type = 2 <ERROR>

.nlmsg_flags = 0 <>

.nlmsg_seq = 1394710815

.nlmsg_pid = 3309

[ERRORMSG] 20 octets

.error = -5 "Input/output error"

[ORIGINAL MESSAGE] 16 octets

.nlmsg_len = 16

.nlmsg_type = 18 <0x12>

.nlmsg_flags = 5 <REQUEST,ACK>

.nlmsg_seq = 1394710815

.nlmsg_pid = 3309

--------------------------- END NETLINK MESSAGE ---------------------------

Fail to tune channel

-- Debug: Received Message:

-------------------------- BEGIN NETLINK MESSAGE ---------------------------

[HEADER] 16 octets

.nlmsg_len = 36

.nlmsg_type = 2 <ERROR>

.nlmsg_flags = 0 <>

.nlmsg_seq = 1394710816

.nlmsg_pid = 3309

[ERRORMSG] 20 octets

.error = 0 "Success"

[ORIGINAL MESSAGE] 16 octets

.nlmsg_len = 16

.nlmsg_type = 18 <0x12>

.nlmsg_flags = 5 <REQUEST,ACK>

.nlmsg_seq = 1394710816

.nlmsg_pid = 3309

--------------------------- END NETLINK MESSAGE ---------------------------

Calibration not complete. Removing half-baked nvs

root@linaro-server:~/ti-utils# lsmod

Module Size Used by

wl12xx 187876 0

mac80211 275350 1 wl12xx

cfg80211 163001 2 mac80211,wl12xx

dmesg:

add wake up source irq 108

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/timo/arm/wlan/build_work/compat-wireless/drivers/net/wireless/wl12xx/main.c:1432 wl12xx_queue_recovery_work+0x2c/0x88 [wl12xx]()

Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 [last unloaded: wl12xx_sdio]

[<800507d4>] (unwind_backtrace+0x0/0xf8) from [<8007e934>] (warn_slowpath_common+0x4c/0x64)

[<8007e934>] (warn_slowpath_common+0x4c/0x64) from [<8007e968>] (warn_slowpath_null+0x1c/0x24)

[<8007e968>] (warn_slowpath_null+0x1c/0x24) from [<7f09f400>] (wl12xx_queue_recovery_work+0x2c/0x88 [wl12xx])

[<7f09f400>] (wl12xx_queue_recovery_work+0x2c/0x88 [wl12xx]) from [<7f0a25dc>] (wl1271_cmd_send+0x8c/0x53c [wl12xx])

[<7f0a25dc>] (wl1271_cmd_send+0x8c/0x53c [wl12xx]) from [<7f0a3848>] (wl1271_cmd_test+0x48/0x80 [wl12xx])

[<7f0a3848>] (wl1271_cmd_test+0x48/0x80 [wl12xx]) from [<7f0b6190>] (wl1271_tm_cmd+0x2f4/0x4a0 [wl12xx])

[<7f0b6190>] (wl1271_tm_cmd+0x2f4/0x4a0 [wl12xx]) from [<7f0569e4>] (ieee80211_testmode_cmd+0x24/0x40 [mac80211])

[<7f0569e4>] (ieee80211_testmode_cmd+0x24/0x40 [mac80211]) from [<7f01085c>] (nl80211_testmode_do+0x50/0x64 [cfg80211])

[<7f01085c>] (nl80211_testmode_do+0x50/0x64 [cfg80211]) from [<804d33ac>] (genl_rcv_msg+0x1e0/0x214)

[<804d33ac>] (genl_rcv_msg+0x1e0/0x214) from [<804d27b0>] (netlink_rcv_skb+0xbc/0xd8)

[<804d27b0>] (netlink_rcv_skb+0xbc/0xd8) from [<804d31c4>] (genl_rcv+0x1c/0x24)

[<804d31c4>] (genl_rcv+0x1c/0x24) from [<804d212c>] (netlink_unicast+0x2a8/0x304)

[<804d212c>] (netlink_unicast+0x2a8/0x304) from [<804d24b0>] (netlink_sendmsg+0x288/0x300)

[<804d24b0>] (netlink_sendmsg+0x288/0x300) from [<804a1b10>] (sock_sendmsg+0x94/0xb4)

[<804a1b10>] (sock_sendmsg+0x94/0xb4) from [<804a2f04>] (__sys_sendmsg+0x2bc/0x2d4)

[<804a2f04>] (__sys_sendmsg+0x2bc/0x2d4) from [<804a392c>] (sys_sendmsg+0x3c/0x68)

[<804a392c>] (sys_sendmsg+0x3c/0x68) from [<8004a000>] (ret_fast_syscall+0x0/0x30)

---[ end trace 50a96257d82d453b ]---

wl12xx: WARNING TEST command failed

wl12xx: WARNING testmode cmd test failed: -5

wl12xx: power down

remove wake up source irq 108

Same problem if I try to set it manualy:

root@linaro-server:~/ti-utils# ./calibrator dev wlan0 plt power_mode off

root@linaro-server:~/ti-utils# ./calibrator --debug dev wlan0 plt power_mode on

-- Debug: Received Message:

-------------------------- BEGIN NETLINK MESSAGE ---------------------------

[HEADER] 16 octets

.nlmsg_len = 36

.nlmsg_type = 2 <ERROR>

.nlmsg_flags = 0 <>

.nlmsg_seq = 1394711585

.nlmsg_pid = 3403

[ERRORMSG] 20 octets

.error = 0 "Success"

[ORIGINAL MESSAGE] 16 octets

.nlmsg_len = 16

.nlmsg_type = 18 <0x12>

.nlmsg_flags = 5 <REQUEST,ACK>

.nlmsg_seq = 1394711585

.nlmsg_pid = 3403

--------------------------- END NETLINK MESSAGE ---------------------------

root@linaro-server:~/ti-utils# ./calibrator --debug dev wlan0 plt tune_channel 0 6

-- Debug: Received Message:

-------------------------- BEGIN NETLINK MESSAGE ---------------------------

[HEADER] 16 octets

.nlmsg_len = 76

.nlmsg_type = 2 <ERROR>

.nlmsg_flags = 0 <>

.nlmsg_seq = 1394711596

.nlmsg_pid = 3405

[ERRORMSG] 20 octets

.error = -5 "Input/output error"

[ORIGINAL MESSAGE] 16 octets

.nlmsg_len = 16

.nlmsg_type = 18 <0x12>

.nlmsg_flags = 5 <REQUEST,ACK>

.nlmsg_seq = 1394711596

.nlmsg_pid = 3405

--------------------------- END NETLINK MESSAGE ---------------------------

command failed: Input/output error (-5)

root@linaro-server:~/ti-utils#

My versions:

cross compiler: gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12

kernel 3.0.35.

wl12xx Driver an toolchain: ol_R5.SP5.01 (build with build-utilites from git://github.com/TI-ECS/build-utilites.git)

Any Ideas what I could do to get it running?

Kind regards,

Timo

  • Hi Timo,

    The error:
    "wl12xx: ERROR command execute failure 2"

    suggests that the firmware did not understand a command that was sent to it. This can happen if there is a mismatch between the firmware & the calibrator tool versions. Please confirm if you have pushed the right version of the calibrator to your device.

    If it doesn't work, I suggest that you upgrade to the latest release "ol_R5.SP7.01"

    Regards,
    Gigi Joseph.

  • With the release "ol_R5.SP7.01" all works fine. Thank you!

  • Hi Joseph,

    While testing the wl1271 interface for Tx/Rx or calibrating, I am getting the following error script. Please help me overcome it.

    The error script:

    [ 1014.164825] wl12xx: ERROR command execute failure 2
    [ 1014.169982] ------------[ cut here ]------------
    [ 1014.174926] WARNING: at /home/ubuntu/targetfs/usr/bin/compat-wireless/drivers/net/wireless/wl12xx/main.c:1432 wl12xx_queue_recovery_work+0x30
    /0x94 [wl12xx]()
    [ 1014.189697] Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat [last unloaded: wl12xx_sdio]
    [ 1014.199615] [<c004f2d8>] (unwind_backtrace+0x0/0xec) from [<c0077580>] (warn_slowpath_common+0x4c/0x64)
    [ 1014.209472] [<c0077580>] (warn_slowpath_common+0x4c/0x64) from [<c00775b0>] (warn_slowpath_null+0x18/0x1c)
    [ 1014.219665] [<c00775b0>] (warn_slowpath_null+0x18/0x1c) from [<bf0f34dc>] (wl12xx_queue_recovery_work+0x30/0x94 [wl12xx])
    [ 1014.231231] [<bf0f34dc>] (wl12xx_queue_recovery_work+0x30/0x94 [wl12xx]) from [<bf0f7e00>] (wl1271_cmd_send+0x4c4/0x4ec [wl12xx])
    [ 1014.243499] [<bf0f7e00>] (wl1271_cmd_send+0x4c4/0x4ec [wl12xx]) from [<bf0f9fcc>] (wl1271_cmd_test+0x50/0x74 [wl12xx])
    [ 1014.254821] [<bf0f9fcc>] (wl1271_cmd_test+0x50/0x74 [wl12xx]) from [<bf10cd80>] (wl1271_tm_cmd+0x100/0x534 [wl12xx])
    [ 1014.266204] [<bf10cd80>] (wl1271_tm_cmd+0x100/0x534 [wl12xx]) from [<bf06f244>] (ieee80211_testmode_cmd+0x34/0x3c [mac80211])
    [ 1014.278320] [<bf06f244>] (ieee80211_testmode_cmd+0x34/0x3c [mac80211]) from [<bf01ed14>] (nl80211_testmode_do+0x54/0x60 [cfg80211])
    [ 1014.290771] [<bf01ed14>] (nl80211_testmode_do+0x54/0x60 [cfg80211]) from [<c0441788>] (genl_rcv_msg+0x180/0x1c0)
    [ 1014.301452] [<c0441788>] (genl_rcv_msg+0x180/0x1c0) from [<c043fb20>] (netlink_rcv_skb+0x4c/0xb0)
    [ 1014.310760] [<c043fb20>] (netlink_rcv_skb+0x4c/0xb0) from [<c04415fc>] (genl_rcv+0x18/0x24)
    [ 1014.319519] [<c04415fc>] (genl_rcv+0x18/0x24) from [<c043f7e4>] (netlink_unicast+0x248/0x2e8)
    [ 1014.328460] [<c043f7e4>] (netlink_unicast+0x248/0x2e8) from [<c0440144>] (netlink_sendmsg+0x294/0x310)
    [ 1014.338226] [<c0440144>] (netlink_sendmsg+0x294/0x310) from [<c03f7f88>] (sock_sendmsg+0x98/0xb4)
    [ 1014.347534] [<c03f7f88>] (sock_sendmsg+0x98/0xb4) from [<c03f8514>] (sys_sendmsg+0x1b0/0x20c)
    [ 1014.356506] [<c03f8514>] (sys_sendmsg+0x1b0/0x20c) from [<c0049520>] (ret_fast_syscall+0x0/0x30)
    [ 1014.365692] ---[ end trace 1b75b31a2719ed1e ]---
    [ 1014.370574] wl12xx: WARNING TEST command failed
    [ 1014.375305] wl12xx: WARNING testmode cmd test failed: -5
    command failed: Input/output error (-5)

    While booting the wlan, the following lines show in the log related to backport version.

    [   29.569976] Compat-wireless backport release: ol_R5.SP7.01
    [   29.575805] Backport based on wl12xx.git ol_R5.SP4.01-2-g1aa2c8e

    Please let me know this is proper or not. If ol_R5.SP7 is required, please let me know the procedure to make this update.


    Thanking you in advance,

    Anindya

  • Hi Anindya,

    Please follow the wl12xx build script from https://github.com/TI-ECS/build-utilites/blob/master/wl12xx_build.sh
    and change "gen_tag" in the script to "ol_R5.SP7.01" and build.

    The error you are getting seems to be again related to the building - the firmware you are using is probably not the latest

    Regards,
    Gigi Joseph.