Hi,
I am using WL1835 module with AM335x EVM. I am building WL1835 driver following the procedure in the link: http://processors.wiki.ti.com/index.php/WL18xx_WiFi_Build_Process
The device is detected during boot up but when I issue the command 'iw wlan0 scan | grep SSID', the device crashes.
Here is the log:
[ 2.352447] mmc1: new high speed SDIO card at address 0001
INIT: version 2.88 booting
Starting udev
[ 3.819946] Disabling lock debugging due to kernel taint
[ 3.827453] compat-drivers backport release: ol_r8.a8.04_32
[ 3.833312] Backport based on wl18xx.git ol_r8.a8.08
[ 3.838500] compat.git: wl18xx.git
[ 5.625366] cfg80211: Calling CRDA to update world regulatory domain
[ 6.010437] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
[ 6.019744] wlcore: WARNING falling back to default config
[ 6.025512] wlcore: wl18xx driver version: ol_r8.a8.04_32
[ 6.064056] cfg80211: World regulatory domain updated:
[ 6.069580] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 6.078155] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 6.086242] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 6.094360] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 6.102478] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 6.110565] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
[ 6.395629] EXT3-fs (mmcblk0p2): using internal journal
[ 6.458038] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[ 6.479675] wlcore: loaded
[ 6.482543] wlcore: driver version: ol_r8.a8.04_32
[ 6.487640] wlcore: compilation time: Thu Jun 5 14:53:51 2014
ALSA: Restoring mixer settings...
No state is present for card EVM
Found hardware: "AM335X_EVM" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card EVM
Configuring network interfaces... [ 7.003967] net eth0: CPSW phy found : id is : 0x4dd074
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.
Tue Jun 25 23:09:00 UTC 2013
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting Dropbear SSH server: dropbear.
Starting telnet daemon.
Performing wifi calibration...
rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
Error: Module wl12xx_sdio is not currently loaded
Error: could not load module /lib/modules/3.2.0/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko: No such file or directory
Failed to load kernel module using command /sbin/insmod /lib/modules/3.2.0/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko
Calibration not complete. Removing half-baked nvs
FATAL: Module wl12xx_sdio not found.
Starting network benchmark server: netserver.
Starting syslogd/klogd: done
Starting thttpd.
Starting PVR
Starting Lighttpd Web Server: 2013-06-25 23:09:01: (log.c.166) server started
lighttpd.
/
Starting Matrix GUI application.
[ 29.957214] gadget: Mass Storage Function, version: 2009/09/11
[ 29.963470] gadget: Number of LUNs=1
[ 29.967315] lun0: LUN: removable file: /dev/mmcblk0p1
[ 29.972747] gadget: Mass Storage Gadget, version: 2009/09/11
[ 29.978790] gadget: userspace failed to provide iSerialNumber
[ 29.984893] gadget: g_mass_storage ready
[ 29.989105] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 29.994720] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[ 30.002563] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 30.009674] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 30.017242] usb usb2: Product: MUSB HDRC host driver
[ 30.022430] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 30.027984] usb usb2: SerialNumber: musb-hdrc.0
[ 30.033172] hub 2-0:1.0: USB hub found
[ 30.037109] hub 2-0:1.0: 1 port detected
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
binutils-symlinks
binutils
gdbserver
If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above
NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
Stopping Bootlog daemon: bootlogd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login: root
root@am335x-evm:~# ifconfig wlan0 up
[ 45.395965] wlcore: PHY firmware version: Rev 8.2.0.0.195
[ 45.491149] wlcore: firmware booted (Rev 8.8.0.0.13)
root@am335x-evm:~# iw wlan0 scan | grep SSID
[ 56.948150] wlcore: ERROR ELP wakeup timeout!
[ 56.952728] ------------[ cut here ]------------
[ 56.957641] WARNING: at /home/ERT/wlanUtility/build-utilites-master/compat-wireless/drivers/net/wireless/ti/wlcore/main.c:802 wl12xx_queue_recovery_work+0x74/0x7c [wlcore]()
[ 56.973876] Modules linked in: g_mass_storage bufferclass_ti(O) omaplfb(O) pvrsrvkm(O) wl18xx(O) wlcore(O) mac80211(O) cfg80211(O) wlcore_sdio(O) compat(O)
[ 56.988494] Backtrace:
[ 56.991088] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04151b0>] (dump_stack+0x18/0x1c)
[ 56.999908] r6:bf0e4e74 r5:00000009 r4:00000000 r3:c05f9f0c
[ 57.005859] [<c0415198>] (dump_stack+0x0/0x1c) from [<c003f1dc>] (warn_slowpath_common+0x54/0x6c)
[ 57.015167] [<c003f188>] (warn_slowpath_common+0x0/0x6c) from [<c003f218>] (warn_slowpath_null+0x24/0x2c)
[ 57.025177] r8:bf10573c r7:ffffa0dc r6:c05fae48 r5:ffffff92 r4:edca94a0
[ 57.032012] r3:00000009
[ 57.034790] [<c003f1f4>] (warn_slowpath_null+0x0/0x2c) from [<bf0e4e74>] (wl12xx_queue_recovery_work+0x74/0x7c [wlcore])
[ 57.046203] [<bf0e4e00>] (wl12xx_queue_recovery_work+0x0/0x7c [wlcore]) from [<bf0efbf4>] (wl1271_ps_elp_wakeup+0xe0/0x230 [wlcore])
[ 57.058685] r4:edca94a0 r3:c05f9f28
[ 57.062469] [<bf0efb14>] (wl1271_ps_elp_wakeup+0x0/0x230 [wlcore]) from [<bf0e2110>] (wl1271_op_config+0x58/0x160 [wlcore])
[ 57.074249] [<bf0e20b8>] (wl1271_op_config+0x0/0x160 [wlcore]) from [<bf06f268>] (ieee80211_hw_config+0x58/0x294 [mac80211])
[ 57.086090] [<bf06f210>] (ieee80211_hw_config+0x0/0x294 [mac80211]) from [<bf07d07c>] (ieee80211_recalc_idle+0x28/0x2c [mac80211])
[ 57.098480] [<bf07d054>] (ieee80211_recalc_idle+0x0/0x2c [mac80211]) from [<bf074734>] (__ieee80211_start_scan+0x140/0x364 [mac80211])
[ 57.111145] r4:edca8b20 r3:00000002
[ 57.114929] [<bf0745f4>] (__ieee80211_start_scan+0x0/0x364 [mac80211]) from [<bf075384>] (ieee80211_request_scan+0x30/0x4c [mac80211])
[ 57.127593] r6:00000000 r5:eda5b200 r4:edb6c3c0
[ 57.132507] [<bf075354>] (ieee80211_request_scan+0x0/0x4c [mac80211]) from [<bf082a28>] (ieee80211_scan+0xa8/0xac [mac80211])
[ 57.144317] r5:edca8000 r4:00000001
[ 57.148223] [<bf082980>] (ieee80211_scan+0x0/0xac [mac80211]) from [<bf045f78>] (nl80211_trigger_scan+0x558/0x59c [cfg80211])
[ 57.160034] r4:edc99c34 r3:bf082980
[ 57.163848] [<bf045a20>] (nl80211_trigger_scan+0x0/0x59c [cfg80211]) from [<c0389c0c>] (genl_rcv_msg+0x224/0x25c)
[ 57.174591] [<c03899e8>] (genl_rcv_msg+0x0/0x25c) from [<c0388f78>] (netlink_rcv_skb+0xb4/0xc8)
[ 57.183685] [<c0388ec4>] (netlink_rcv_skb+0x0/0xc8) from [<c03899e0>] (genl_rcv+0x24/0x2c)
[ 57.192352] r6:eda5b400 r5:ed9e9980 r4:ed9e9980 r3:00000000
[ 57.198303] [<c03899bc>] (genl_rcv+0x0/0x2c) from [<c0388968>] (netlink_unicast+0x280/0x2d0)
[ 57.207122] r4:00000000 r3:c03899bc
[ 57.210876] [<c03886e8>] (netlink_unicast+0x0/0x2d0) from [<c0388cb8>] (netlink_sendmsg+0x258/0x2c8)
[ 57.220428] [<c0388a60>] (netlink_sendmsg+0x0/0x2c8) from [<c03606ac>] (sock_sendmsg+0x90/0xb0)
[ 57.229553] [<c036061c>] (sock_sendmsg+0x0/0xb0) from [<c0360a3c>] (__sys_sendmsg+0x2bc/0x2d0)
[ 57.238555] [<c0360780>] (__sys_sendmsg+0x0/0x2d0) from [<c03622cc>] (sys_sendmsg+0x44/0x70)
[ 57.247406] [<c0362288>] (sys_sendmsg+0x0/0x70) from [<c0014740>] (ret_fast_syscall+0x0/0x30)
[ 57.256317] r6:00009629 r5:becfec68 r4:400f8114
[ 57.261169] ---[ end trace 0d65a0fc112558c9 ]---
[ 57.267700] wlcore: Hardware recovery in progress. FW ver: Rev 8.8.0.0.13
[ 57.274871] ------------[ cut here ]------------
[ 57.279754] WARNING: at /home/ERT/wlanUtility/build-utilites-master/compat-wireless/drivers/net/wireless/ti/wlcore/io.h:65 wlcore_set_partition+0xa0/0x4e8 [wlcore]()
[ 57.295227] Modules linked in: g_mass_storage bufferclass_ti(O) omaplfb(O) pvrsrvkm(O) wl18xx(O) wlcore(O) mac80211(O) cfg80211(O) wlcore_sdio(O) compat(O)
[ 57.309814] Backtrace:
[ 57.312408] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04151b0>] (dump_stack+0x18/0x1c)
[ 57.321228] r6:bf0ebb7c r5:00000009 r4:00000000 r3:c05f9f0c
[ 57.327178] [<c0415198>] (dump_stack+0x0/0x1c) from [<c003f1dc>] (warn_slowpath_common+0x54/0x6c)
[ 57.336456] [<c003f188>] (warn_slowpath_common+0x0/0x6c) from [<c003f218>] (warn_slowpath_null+0x24/0x2c)
[ 57.346496] r8:00000000 r7:00000000 r6:bf10573c r5:bf124244 r4:edca94a0
[ 57.353332] r3:00000009
[ 57.356079] [<c003f1f4>] (warn_slowpath_null+0x0/0x2c) from [<bf0ebb7c>] (wlcore_set_partition+0xa0/0x4e8 [wlcore])
[ 57.367065] [<bf0ebadc>] (wlcore_set_partition+0x0/0x4e8 [wlcore]) from [<bf0e533c>] (wl1271_recovery_work+0x70/0x560 [wlcore])
[ 57.379058] r7:bf0e52cc r6:edca94d4 r5:edca94a0 r4:edca9734
[ 57.385040] [<bf0e52cc>] (wl1271_recovery_work+0x0/0x560 [wlcore]) from [<c0052330>] (process_one_work+0x11c/0x364)
[ 57.395965] [<c0052214>] (process_one_work+0x0/0x364) from [<c0052c90>] (worker_thread+0x17c/0x310)
[ 57.405426] [<c0052b14>] (worker_thread+0x0/0x310) from [<c00573b4>] (kthread+0x8c/0x94)
[ 57.413909] [<c0057328>] (kthread+0x0/0x94) from [<c004203c>] (do_exit+0x0/0x65c)
[ 57.421752] r6:c004203c r5:c0057328 r4:ee82ded4
[ 57.426574] ---[ end trace 0d65a0fc112558ca ]---
[ 57.431427] wlcore: down
command failed: Resource temporarily unavailable[ 57.438446] ieee80211 phy0: Hardware restart was requested
(-11)
root@am335x-evm:~# [ 57.843261] wlcore: PHY firmware version: Rev 8.2.0.0.195
[ 57.941192] wlcore: firmware booted (Rev 8.8.0.0.13)
I found in the forum that changing WL1271_WAKEUP_TIMEOUT to 2500 in the ps.c file solves the issue. I tried the same but it did not work for me. What could be the reason for this problem?