wifi on Motorola Droid 4 in 5.3-rc2
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.
user@devuan:~/g/ofono$
I'm getting this warning during bootup:
[ 13.733703] asoc-audio-graph-card soundcard: No GPIO consumer pa found [ 14.279724] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead. [ 14.293273] wlcore: WARNING Your device performance is not optimized. [ 14.304443] wlcore: WARNING Please use the calibrator tool to configure your device. [ 14.317474] wlcore: loaded [ 16.977325] motmdm serial0-0: motmdm_dlci_send_command: AT+VERSION=
got MASERATIBP_N_05.25.00R,026.0R,XSAMASR01VRZNA026.0R,???
Any ideas?
Best regards,
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi
Quoted 6 lines · Pavel Machek
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
Quoted 7 lines
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.
Try to use iw command. iwlist use an obsolete interface that you need to activate in kernel for back compatibility with old command. Can be your problem?
Michael
Quoted 28 lines
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.user@devuan:~/g/ofono$
I'm getting this warning during bootup:
[ 13.733703] asoc-audio-graph-card soundcard: No GPIO consumer pa found [ 14.279724] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead. [ 14.293273] wlcore: WARNING Your device performance is not optimized. [ 14.304443] wlcore: WARNING Please use the calibrator tool to configure your device. [ 14.317474] wlcore: loaded [ 16.977325] motmdm serial0-0: motmdm_dlci_send_command: AT+VERSION=got MASERATIBP_N_05.25.00R,026.0R,XSAMASR01VRZNA026.0R,???
Any ideas?
Best regards,
Pavel--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Signature · 4 lines
| Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
Quoted 17 lines · Michael Nazzareno Trimarchi
Hi
Quoted 6 lines · Pavel Machek
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
Quoted 7 lines
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.
Quoted 3 lines
Try to use iw command. iwlist use an obsolete interface that you need to activate in kernel for back compatibility with old command. Can be your problem?
Let me see ... CONFIG_CFG80211_WEXT was not set.
Tried enabling it, and now I got. I remember getting it before, too... let me try few more boots, perhaps it is random.
Best regards,
Pavel
[ 13.653778] panel-dsi-cm 58004000.encoder:display: using lookup tables for GPIO lookup [ 13.661834] panel-dsi-cm 58004000.encoder:display: No GPIO consumer te found [ 14.756622] ------------[ cut here ]------------ [ 14.761352] WARNING: CPU: 0 PID: 20 at /data/fast/l/k/drivers/net/wireless/ti/wlcore/sdio.c:86 wl12xx_sdio_raw_read+0xa8/0x128 [ 14.772888] Modules linked in: [ 14.776062] CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G W 5.3.0-rc4-58571-gdbaece1 #85 [ 14.783630] Hardware name: Generic OMAP4 (Flattened Device Tree) [ 14.791381] Workqueue: events request_firmware_work_func [ 14.796813] [<c010f2b4>] (unwind_backtrace) from [<c010b528>] (show_stack+0x10/0x14) [ 14.804595] [<c010b528>] (show_stack) from [<c08c1d68>] (dump_stack+0xa8/0xc8) [ 14.811950] [<c08c1d68>] (dump_stack) from [<c012df4c>] (__warn+0xe8/0x114) [ 14.816894] [<c012df4c>] (__warn) from [<c012dfb4>] (warn_slowpath_null+0x3c/0x48) [ 14.826629] [<c012dfb4>] (warn_slowpath_null) from [<c0566674>] (wl12xx_sdio_raw_read+0xa8/0x128) [ 14.835540] [<c0566674>] (wl12xx_sdio_raw_read) from [<c0567704>] (wl12xx_get_mac+0x134/0x260) [ 14.844268] [<c0567704>] (wl12xx_get_mac) from [<c05530cc>] (wlcore_nvs_cb+0x270/0xb64) [ 14.852355] [<c05530cc>] (wlcore_nvs_cb) from [<c04d7264>] (request_firmware_work_func+0x3c/0x64) [ 14.861267] [<c04d7264>] (request_firmware_work_func) from [<c01455c0>] (process_one_work+0x140/0x348) [ 14.870697] [<c01455c0>] (process_one_work) from [<c0145964>] (worker_thread+0x164/0x4b0) [ 14.878906] [<c0145964>] (worker_thread) from [<c014a788>] (kthread+0x110/0x148) [ 14.883636] [<c014a788>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 14.893615] Exception stack(0xeda0bfb0 to 0xeda0bff8) [ 14.893615] bfa0: 00000000 00000000 00000000 00000000 [ 14.903625] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 14.913635] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 14.922058] ---[ end trace b611e5d6e7d5aa92 ]--- [ 14.926788] wl1271_sdio mmc4:0001:2: sdio read failed (-110) [ 14.932525] wlcore: ERROR couldn't get hw info
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi!
Quoted 11 lines
Quoted 10 lines
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.
Quoted 3 lines
Try to use iw command. iwlist use an obsolete interface that you need to activate in kernel for back compatibility with old command. Can be your problem?
Two more reboots (with no changes in the config) and wifi now works. Thanks!
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi
Quoted 72 lines · Pavel Machek
Quoted 17 lines · Michael Nazzareno Trimarchi
Hi
Quoted 6 lines · Pavel Machek
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
Quoted 7 lines
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.Quoted 3 lines
Try to use iw command. iwlist use an obsolete interface that you need to activate in kernel for back compatibility with old command. Can be your problem?
Let me see ...
CONFIG_CFG80211_WEXTwas not set.Tried enabling it, and now I got. I remember getting it before, too... let me try few more boots, perhaps it is random.
Best regards,
Pavel[ 13.653778] panel-dsi-cm 58004000.encoder:display: using lookup tables for GPIO lookup [ 13.661834] panel-dsi-cm 58004000.encoder:display: No GPIO consumer te found [ 14.756622] ------------[ cut here ]------------ [ 14.761352] WARNING: CPU: 0 PID: 20 at /data/fast/l/k/drivers/net/wireless/ti/wlcore/sdio.c:86 wl12xx_sdio_raw_read+0xa8/0x128 [ 14.772888] Modules linked in: [ 14.776062] CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G W 5.3.0-rc4-58571-gdbaece1 #85 [ 14.783630] Hardware name: Generic OMAP4 (Flattened Device Tree) [ 14.791381] Workqueue: events request_firmware_work_func [ 14.796813] [<c010f2b4>] (unwind_backtrace) from [<c010b528>] (show_stack+0x10/0x14) [ 14.804595] [<c010b528>] (show_stack) from [<c08c1d68>] (dump_stack+0xa8/0xc8) [ 14.811950] [<c08c1d68>] (dump_stack) from [<c012df4c>] (__warn+0xe8/0x114) [ 14.816894] [<c012df4c>] (__warn) from [<c012dfb4>] (warn_slowpath_null+0x3c/0x48) [ 14.826629] [<c012dfb4>] (warn_slowpath_null) from [<c0566674>] (wl12xx_sdio_raw_read+0xa8/0x128) [ 14.835540] [<c0566674>] (wl12xx_sdio_raw_read) from [<c0567704>] (wl12xx_get_mac+0x134/0x260) [ 14.844268] [<c0567704>] (wl12xx_get_mac) from [<c05530cc>] (wlcore_nvs_cb+0x270/0xb64) [ 14.852355] [<c05530cc>] (wlcore_nvs_cb) from [<c04d7264>] (request_firmware_work_func+0x3c/0x64) [ 14.861267] [<c04d7264>] (request_firmware_work_func) from [<c01455c0>] (process_one_work+0x140/0x348) [ 14.870697] [<c01455c0>] (process_one_work) from [<c0145964>] (worker_thread+0x164/0x4b0) [ 14.878906] [<c0145964>] (worker_thread) from [<c014a788>] (kthread+0x110/0x148) [ 14.883636] [<c014a788>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 14.893615] Exception stack(0xeda0bfb0 to 0xeda0bff8) [ 14.893615] bfa0: 00000000
Quoted 8 lines
00000000 00000000 00000000
[ 14.903625] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 14.913635] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 14.922058] ---[ end trace b611e5d6e7d5aa92 ]--- [ 14.926788] wl1271_sdio mmc4:0001:2: sdio read failed (-110) [ 14.932525] wlcore: ERROR couldn't get hw info
You have a timeout here. Can be that your reset sequence of the wifi is not optimal because
is not responding?
Michael
Quoted 5 lines
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Signature · 4 lines
| Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
Hi Pavel
For the second part
Quoted 17 lines · Pavel Machek
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.
Quoted 8 lines
user@devuan:~/g/ofono$
I'm getting this warning during bootup:
[ 13.733703] asoc-audio-graph-card soundcard: No GPIO consumer pa found [ 14.279724] wlcore: WARNING Detected unconfigured mac address innvs, derive from fuse instead.
This is ok. It means that your nvs file is not the original one taken from android
Quoted 2 lines
[ 14.293273] wlcore: WARNING Your device performance is notoptimized.
you can use plt command with calibrate
Michael
Quoted 14 lines
[ 14.304443] wlcore: WARNING Please use the calibrator tool to configure your device. [ 14.317474] wlcore: loaded [ 16.977325] motmdm serial0-0: motmdm_dlci_send_command: AT+VERSION=got MASERATIBP_N_05.25.00R,026.0R,XSAMASR01VRZNA026.0R,???
Any ideas?
Best regards,
Pavel--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Signature · 4 lines
| Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |
Quoted 22 lines · Pavel Machek
Quoted 17 lines · Michael Nazzareno Trimarchi
Hi
Quoted 6 lines · Pavel Machek
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
Quoted 7 lines
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.Quoted 3 lines
Try to use iw command. iwlist use an obsolete interface that you need to activate in kernel for back compatibility with old command. Can be your problem?
Quoted 6 lines
Let me see ...
CONFIG_CFG80211_WEXTwas not set.Tried enabling it, and now I got. I remember getting it before, too... let me try few more boots, perhaps it is random.
From developers' point of view WEXT is ancient and untested, everybody
should switch to nl80211. So I strongly using iw (which uses nl80211). Of course this nothing to do with the wlcore warning you saw, just wanted to make you aware the state of wireless extensions.
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 26 lines · Kalle Valo
Quoted 24 lines · Pavel Machek
Quoted 17 lines · Michael Nazzareno Trimarchi
Hi
Quoted 6 lines · Pavel Machek
Hi!
First, I guess I should mention that this is first time I'm attempting to get wifi going on D4.
Quoted 7 lines
I'm getting this:
user@devuan:~/g/ofono$ sudo ifconfig wlan0 down user@devuan:~/g/ofono$ sudo ifconfig wlan0 up user@devuan:~/g/ofono$ sudo iwlist wlan0 scan wlan0 Interface doesn't support scanning.Quoted 3 lines
Try to use iw command. iwlist use an obsolete interface that you need to activate in kernel for back compatibility with old command. Can be your problem?
Let me see ...
CONFIG_CFG80211_WEXTwas not set.
Quoted 7 lines
Quoted 4 lines
Tried enabling it, and now I got. I remember getting it before, too... let me try few more boots, perhaps it is random.
From developers' point of view WEXT is ancient and untested, everybody
should switch to nl80211. So I strongly using iw (which uses nl80211). Of course this nothing to do with the wlcore warning you saw, just wanted to make you aware the state of wireless extensions.
You may want to add this to Kconfig test... and maybe it would be good to mention iwconfig there, for easier grepping.
I'm using rather old distro; I'll update, but kernel is expected to be back-compatible.. and tested :-).
Best regards,
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi!
Quoted 14 lines
Quoted 5 lines
[ 13.653778] panel-dsi-cm 58004000.encoder:display: using lookup tables for GPIO lookup [ 13.661834] panel-dsi-cm 58004000.encoder:display: No GPIO consumer te found [ 14.756622] ------------[ cut here ]------------Quoted 8 lines
[ 14.761352] WARNING: CPU: 0 PID: 20 at /data/fast/l/k/drivers/net/wireless/ti/wlcore/sdio.c:86 wl12xx_sdio_raw_read+0xa8/0x128 [ 14.772888] Modules linked in: [ 14.776062] CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G W 5.3.0-rc4-58571-gdbaece1 #85 [ 14.783630] Hardware name: Generic OMAP4 (Flattened Device Tree) [ 14.791381] Workqueue: events request_firmware_work_func
Quoted 3 lines
You have a timeout here. Can be that your reset sequence of the wifi is not optimal because
is not responding?
I tried delays and printks... WL12XX_REG_FUSE_BD_ADDR_1 read fails, and retrying does not really help. If you have idea how to debug/fix this, let me know...
Best regards,
Pavel
drivers/net/wireless/ti/wl12xx/main.c +17 -1
@@ -1505,24 +1505,40 @@ static int wl12xx_get_fuse_mac(struct wl1271 *wl) {u32 mac1, mac2;int ret; - + +mdelay (1 ); +printk ("get_fuse_mac: %d\n" , __LINE__); ret =wlcore_set_partition (wl, &wl->ptable[PART_DRPW ]);if (ret <0 ) goto out; +mdelay (1 ); +printk ("get_fuse_mac: %d\n" , __LINE__); + ret =wlcore_read32 (wl,WL12XX_REG_FUSE_BD_ADDR_1 , &mac1); +if (ret <0 ) { +printk ("get_fuse_mac: X %d\n" , __LINE__); + ret =wlcore_read32 (wl,WL12XX_REG_FUSE_BD_ADDR_1 , &mac1); +if (ret <0 ) { +printk ("get_fuse_mac: XX %d\n" , __LINE__); ret =wlcore_read32 (wl,WL12XX_REG_FUSE_BD_ADDR_1 , &mac1);if (ret <0 ) goto out; + } + } + +printk ("get_fuse_mac: %d\n" , __LINE__); ret =wlcore_read32 (wl,WL12XX_REG_FUSE_BD_ADDR_2 , &mac2);if (ret <0 ) goto out; +printk ("get_fuse_mac: %d\n" , __LINE__);/* these are the two parts of the BD_ADDR */ wl->fuse_oui_addr = ((mac2 &0xffff ) <<8 ) + ((mac1 &0xff000000 ) >>24 ); wl->fuse_nic_addr = mac1 &0xffffff ; +printk ("get_fuse_mac: %d\n" , __LINE__); ret =wlcore_set_partition (wl, &wl->ptable[PART_DOWN ]); out:
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html