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