Problems with the Marvell SD8786 WiFi module

This forum is for Marvell Armada 310 based devices including the TonidoPlug 2 and the TopKick.

Problems with the Marvell SD8786 WiFi module

Postby edruro » Sun Aug 03, 2014 1:08 pm

Hi. I have a problem with the integrated WiFi module of the TonidoPlug2, the Marvell SD8786. I have followed the instructions here: http://archlinuxarm.org/platforms/armv5/tonidoplug-2

$this->bbcode_second_pass_code('', '
1. Edit /etc/modules-load.d/mwifiex.conf and add "mwifiex_sdio" to the file.
2. Reboot, or simply modprobe mwifiex_sdio. You will now have an mlan0 interface for the wireless adapter.
')

And I get this at the boot time:

$this->bbcode_second_pass_code('', '
[ 33.293576] mwifiex_sdio mmc0:0001:1: Direct firmware load failed with error -2
[ 33.336450] mwifiex_sdio mmc0:0001:1: Falling back to user helper
[ 35.077632] mwifiex_sdio mmc0:0001:1: Failed to get firmware mrvl/sd8786_uapsta.bin
')

Looking around, I found the sd8786_upasta.bin file in another post of this forum and put it in the /lib/firmware/mrvl/, but then I get some kind of a kernel panic next time I boot the system. It is odd, really, when I connect the system into a serial interface, I get a whole lot of pages of hexadecimal data as soon as the system tries to bring up the WiFi and then the system tells me to reboot the system. No other error is given. As soon as I get ride of the sd8786_uapsta.bin file, the system boots perfectly again.

I always used the Ethernet plug for this device but I'm kinda annoyed by this. Am I the only one with this kind of problem?
edruro
 
Posts: 8
Joined: Sat Jul 20, 2013 11:51 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby edruro » Thu Aug 14, 2014 12:33 pm

Here's an update: I just connected the TonidoPlug2 into an TTL USB and here's the relevant parts of the booting up to the kernel panic:

$this->bbcode_second_pass_code('', '
[ 36.131195] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[ 36.232334] mwifiex_sdio mmc0:0001:1: invalid rx_len=3
[ 46.241151] mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id (1408019046.880325) = 0xe4, act = 0xff
[ 46.251876] mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
[ 46.257738] mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
[ 46.263539] mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
[ 46.268979] mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
[ 46.274344] mwifiex_sdio mmc0:0001:1: last_cmd_index = 0
[ 46.279706] mwifiex_sdio mmc0:0001:1: last_cmd_id: e4 00 1e 00 83 00 df 00 28 00
[ 46.287161] mwifiex_sdio mmc0:0001:1: last_cmd_act: ff 00 00 00 01 00 01 00 13 00
[ 46.294701] mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 4
[ 46.300483] mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: d6 80 1e 80 83 80 df 80 28 80
[ 46.308365] mwifiex_sdio mmc0:0001:1: last_event_index = 0
[ 46.313894] mwifiex_sdio mmc0:0001:1: last_event: 00 00 00 00 00 00 00 00 00 00
[ 46.321264] mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=0
[ 46.326958] mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
[ 46.332501] mwifiex_sdio mmc0:0001:1: cmd timeout
[ 46.338702] mwifiex_sdio: Resetting card...
[ 46.346941] mmc0: card 0001 removed
[ 46.491817] mmc0: new high speed SDIO card at address 0001
[ 47.131368] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[ 47.274414] Unhandled fault: section domain fault (0x0f9) at 0x0002ec90
[ 47.283896] mwifiex_sdio mmc0:0001:1: invalid rx_len=4
[ 57.301132] mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id (1408019057.940298) = 0xcd, act = 0x1
[ 57.311753] mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
[ 57.317619] mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
[ 57.323410] mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
[ 57.328841] mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
[ 57.334195] mwifiex_sdio mmc0:0001:1: last_cmd_index = 2
[ 57.339533] mwifiex_sdio mmc0:0001:1: last_cmd_id: e4 00 16 00 cd 00 df 00 28 00
[ 57.346986] mwifiex_sdio mmc0:0001:1: last_cmd_act: ff 00 01 00 01 00 01 00 13 00
[ 57.354525] mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 1
[ 57.360302] mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: e4 80 16 80 83 80 df 80 28 80
[ 57.368191] mwifiex_sdio mmc0:0001:1: last_event_index = 0
[ 57.373723] mwifiex_sdio mmc0:0001:1: last_event: 00 00 00 00 00 00 00 00 00 00
[ 57.381110] mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=0
[ 57.386804] mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
[ 57.392348] mwifiex_sdio mmc0:0001:1: cmd timeout
[ 57.401474] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 57.409085] mwifiex_sdio: Resetting card...
[ 57.415158] mmc0: card 0001 removed
[ 57.504605] mmc0: new high speed SDIO card at address 0001
[ 57.871179] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[ 57.966529] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT ARM
[ 57.991485] CPU: 0 PID: 0 Comm: swapper Tainted: G O 3.16.0-1-ARCH #1
[ 57.998920] task: c0779290 ti: c076e000 task.ti: c076e000
[ 58.004349] PC is at irq_gc_mask_clr_bit+0x20/0x38
[ 58.009166] LR is at handle_level_irq+0x10c/0x16c
[ 58.013893] pc : [<c00597f0>] lr : [<c0058820>] psr: 60000093
[ 58.013893] sp : c076fe90 ip : 10000000 fp : c076ff14
[ 58.025425] r10: dedc9600 r9 : c05554bc r8 : c0787c98
[ 58.030676] r7 : c076feb8 r6 : 00000000 r5 : 0000001c r4 : c07895c8
[ 58.037234] r3 : df40503c r2 : df40500c r1 : df405000 r0 : fed20204
[ 58.043792] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 58.051220] Control: 0005397f Table: 1d4f8000 DAC: 00000017
[ 58.056992] Process swapper (pid: 0, stack limit = 0xc076e1c0)
[ 58.062852] Stack: (0xc076fe90 to 0xc0770000)
...
[ 58.252652] Kernel panic - not syncing: Fatal exception in interrupt
[ 58.259038] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
')
edruro
 
Posts: 8
Joined: Sat Jul 20, 2013 11:51 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby WarheadsSE » Thu Aug 14, 2014 1:28 pm

Sounds to me like one of:
- the firmware is in need of being updated
- the driver doesn't like the firmware
- the firmware is possibly corrupt.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby edruro » Thu Aug 14, 2014 2:26 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'S')ounds to me like one of:
- the firmware is in need of being updated
- the driver doesn't like the firmware
- the firmware is possibly corrupt.


Yeah, that's what I thought. As a reference, sd8786_upasta.bin (firmware) is not available in linux-firmware package, only on http://archlinuxarm.org/builder/firmware/firmware/mrvl/ and along the old drivers for Linux 2.6 on the original RootFS.

For what I did read, apparently the firmware did work with some early 3.x kernel versions and/or old mwifiex_sdio drivers, but that doesn't seem to be the case anymore.
edruro
 
Posts: 8
Joined: Sat Jul 20, 2013 11:51 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby WarheadsSE » Thu Aug 14, 2014 2:55 pm

Well, I am the one that got the patches accepted into 3.4.0 to have it supported by the mainline driver.

The fact that it is horking up now is kinda of annoying, but I also no longer have a working device with sd8786 :? My engineering sample of the Topkick crapped out :?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby edruro » Thu Aug 14, 2014 3:11 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'W')ell, I am the one that got the patches accepted into 3.4.0 to have it supported by the mainline driver.

The fact that it is horking up now is kinda of annoying, but I also no longer have a working device with sd8786 :? My engineering sample of the Topkick crapped out :?


Well, if I can help, I have my TonidoPlug2 available to test new builds of the driver module or other firmwares. I can also provide the full screenlog of the kernel panic (it's 1157 lines long).
edruro
 
Posts: 8
Joined: Sat Jul 20, 2013 11:51 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby tamelion » Sun Sep 07, 2014 3:28 am

WarheadsSE you've been doing some fine work on the Topkick/TonidoPlug2, I'm extremely sorry to hear your sample died -- as far as I can tell you were the only one who was in a position to maintain for this chipset.

For now, (unless we try to patch the kernel module ourselves) do we simply have to downgrade the kernel for wireless support?
tamelion
 
Posts: 3
Joined: Sun Sep 07, 2014 3:19 am

Re: Problems with the Marvell SD8786 WiFi module

Postby WarheadsSE » Sun Sep 07, 2014 10:39 am

Sorta :/
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Problems with the Marvell SD8786 WiFi module

Postby tamelion » Mon Sep 08, 2014 10:42 am

Talk about begging for a request for an explanation! :)
tamelion
 
Posts: 3
Joined: Sun Sep 07, 2014 3:19 am

Re: Problems with the Marvell SD8786 WiFi module

Postby WarheadsSE » Mon Sep 08, 2014 2:39 pm

Meaning I have absolutely no way to assist in testing/confirming this, by any means.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Marvell Armada 310

Who is online

Users browsing this forum: No registered users and 3 guests