wl12xx module crashes on BeagleBoard XM

Hi,

We have connected the TI WL1271 Wireless LAN Adapter with beagle board. Kernel running on beagle board XM is 3.2.16.
We have patched the kernel for the USB, ethernet and ulcd7 working with the beagle board along with this wifi module. These interfaces are working fine and ifconfig shows wlan0 interface. However any attempt to scan the wireless using “iwlist wlan0 scan” crashes the wl12xx module.

Here are the messages:
root@devel:~# [ 119.497894] wl1271: ERROR command complete timeout
[ 119.506042] ------------[ cut here ]------------
[ 119.513824] WARNING: at drivers/net/wireless/wl12xx/cmd.c:107 wl1271_cmd_send+0x34c/0x3b8()
[ 119.525573] Modules linked in: smsc95xx snd_sosnd_pcm snd_timer snd wl12xx_sdio tsc2007 soundcore snd_page_alloc
[ 119.545684] [] (unwind_backtrace+0x0/0xf0) from [] (warn_slowpath_common+0x4c/0x64)
[ 119.561279] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x1c/0x24)
[ 119.577148] [] (warn_slowpath_null+0x1c/0x24) from [] (wl1271_cmd_send+0x34c/0x3b8)
[ 119.592742] [] (wl1271_cmd_send+0x34c/0x3b8) from [] (wl12xx_cmd_role_start_dev+0x7c/0xf4)
[ 119.609039] [] (wl12xx_cmd_role_start_dev+0x7c/0xf4) from [] (wl1271_scan_complete_work+0xf0/0x128)
[ 119.626403] [] (wl1271_scan_complete_work+0xf0/0x128) from [] (process_one_work+0x188/0x504)
[ 119.643615] [] (process_one_work+0x188/0x504) from [] (worker_thread+0x178/0x360)
[ 119.659820] [] (worker_thread+0x178/0x360) from [] (kthread+0x80/0x88)
[ 119.671936] [] (kthread+0x80/0x88) from [] (kernel_thread_exit+0x0/0x8)
[ 119.684143] —[ end trace 90e9505653c9ed73 ]—
[ 119.692382] wl1271: ERROR failed to initiate cmd role enable
[ 121.708648] wl1271: ERROR command complete timeout
[ 121.717010] ------------[ cut here ]------------
[ 121.725067] WARNING: at drivers/net/wireless/wl12xx/cmd.c:107 wl1271_cmd_send+0x34c/0x3b8()
[ 121.737152] Modules linked in: smsc95xx snd_soc_twl4030 snd_soc_core regmap_spi snd_pcm snd_timer snd wl12xx_sdiooundcore snd_page_alloc
[ 121.757781] [] (unwind_backtrace+0x0/0xf0) from [] (warn_slowpath_common+0x4c/0x64)
[ 121.774169] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x1c/0x24)
[ 121.790802] [] (warn_slowpath_null+0x1c/0x24) from [] (wl1271_cmd_send+0x34c/0x3b8)
[ 121.807403] [] (wl1271_cmd_send+0x34c/0x3b8) from [] (wl12xx_roc+0xac/0x158)
[ 121.819946] [] (wl12xx_roc+0xac/0x158) from [] (wl1271_scan_complete_work+0xfc/0x128)
[ 121.836425] [] (wl1271_scan_complete_work+0xfc/0x128) from [] (process_one_work+0x188/0x504)
[ 121.853546] [] (process_one_work+0x188/0x504) from [] (worker_thread+0x178/0x360)
[ 121.869689] [] (worker_thread+0x178/0x360) from [] (kthread+0x80/0x88)
[ 121.881683] [] (kthread+0x80/0x88) from [] (kernel_thread_exit+0x0/0x8)
[ 121.893707] —[ end trace 90e9505653c9ed74 ]—
[ 121.901947] wl1271: ERROR failed to send ROC command
[ 121.910339] wl1271: Scan completed due to error.
[ 121.918731] wl1271: Reading FW panic log
[ 123.943206] wl1271: ERROR command complete timeout
[ 123.951446] ------------[ cut here ]------------
[ 123.959564] WARNING: at drivers/net/wireless/wl12xx/cmd.c:107 wl1271_cmd_send+0x34c/0x3b8()
[ 123.971435] Modules linked in: smsc95xx snd_soc_twl4030 snd_soc_core regmap_spi snd_pcm snd_timer snd wl12xx_sdio tsc2007 soundcore snd_page_alloc
[ 123.991638] [0xf0) from [] (warn_slowpath_common+0x4c/0x64)
[ 124.007537] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x1c/0x24)
[ 124.023712] [] (warn_slowpath_null+0x1c/0x24) from [] (wl1271_cmd_send+0x34c/0x3b8)
[ 124.039550] [] (wl1271_cmd_send+0x34c/0x3b8) from [] (wl12xx_cmd_stop_fwlog+0x48/0x7c)
[ 124.055969] [] (wl12xx_cmd_stop_fwlog+0x48/0x7c) from [] (wl1271_recovery_work+0x1a0/0x2bc)
[ 124.072662] [] (wl1271_recovery_work+0x1a0/0x2bc) from [] (process_one_work+0x188/0x504)
[ 124.089080] [] (process_one_work+0x188/0x504) from [] (worker_thread+0x178/0x360)
[ 124.104858] [] (worker_thread+0x178/0x360) from [] (kthread+0x80/0x88)
[ 124.116729] [] (kthread+0x80/0x88) from [] (kernel_thread_exit+0x0/0x8)
[ 124.128662] —[ end trace 90e9505653c9ed75 ]—
[ 124.136657] wl1271: ERROR failed to send stop firmware logger command
[ 124.150665] wl1271: Hardware recovery in progress. FW ver: Rev 6.3.0.0.77 pc: 0x0
[ 124.162170] wl1271: down
[ 124.178588] ieee80211 phy0: Hardware restart was requested
[ 127.508422] wl1271: ERROR timeout waiting for the hardware to complete initialization
[ 131.137969] wl1271: ERROR timeout waiting for the hardware to complete initialization
[ 134.465911] wl1271: ERROR timeout waiting for the hardware to complete initialization
[ 134.479431] wl1271: ERROR firmware boot failed despite 3 retries

Is this a known issue? Has any one found such issue with wl12xx module?

Regards,
Ketan

Yes, I had it similar.

My problem was that MUX had wrong setup and no wlan_irq came to a cpu.

Hi,

In which file did you change the mux values. Could be that the irq pin has some default value that needs to be changed?
Any pointers?

Regards,
Ketan

As I don’t use in-kernel muxing I set necessary values in u-boot

четверг, 26 июля 2012 г. пользователь Kets <ketanrkamat@gmail.com> писал:

Are you using the Global Edge WL1271 board? or something else?
Where can you buy these boards?

Yes, this was procured from Global Edge http://www.globaledgesoft.com/ti-wl1271-adapter

Yes, this was procured from Global Edge

They are in India, is it available from a distributor in the US?

Yes, this was procured from Global Edge

They are in India, is it available from a distributor in the US?

How much did it cost?