Bringing up WiFi interface on Wandboard Quad

This forum is for supported devices using an ARMv7 Freescale SoC.

Bringing up WiFi interface on Wandboard Quad

Postby bcattle » Thu Jun 19, 2014 7:24 am

I'm having issues getting the WiFi interface working on the Wandboard Quad. I try to bring up the interface with

$this->bbcode_second_pass_code('', '
root ~ # ip link set wlan0 up
RTNETLINK answers: Operation not permitted
')

And the driver spews a bunch of error messages into the kernel log

$this->bbcode_second_pass_code('', '
[ 1755.229561] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 1757.229907] brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
[ 1757.234627] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1757.243999] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1757.253363] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1757.260696] brcmfmac: brcmf_sdio_regrw_helper: failed with -123
[ 1757.265319] brcmfmac: brcmf_sdbrcm_htclk: HT Avail request error: -123
[ 1757.270575] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000a=00, Err: -123
[ 1757.279910] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000a=00, Err: -123
[ 1757.289242] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000a=00, Err: -123
[ 1757.296573] brcmfmac: brcmf_sdcard_set_sbaddr_window: failed at addr:0x1000a
[ 1757.302348] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000a=00, Err: -123
[ 1757.311681] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000a=00, Err: -123
[ 1757.321020] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000a=00, Err: -123
[ 1757.328331] brcmfmac: brcmf_sdcard_set_sbaddr_window: failed at addr:0x1000a
[ 1757.334102] brcmfmac: brcmf_sdio_ramrw: FAILED to set window back to 0x18000000
[ 1757.340128] brcmfmac: brcmf_fil_cmd_data: Failed err=-110
[ 1757.344234] brcmfmac: brcmf_fil_cmd_data: bus is down. we have nothing to do.
[ 1757.350088] brcmfmac: brcmf_dongle_scantime: Scan assoc time error (-5)
[ 1757.350099] brcmfmac: brcmf_fil_cmd_data: bus is down. we have nothing to do.
[ 1757.361246] brcmfmac: brcmf_fil_cmd_data: bus is down. we have nothing to do.
[ 1757.367085] brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
[ 1757.999960] brcmfmac: brcmf_btcoex_boost_wifi: attempted to restore not saved BTCOEX params
[ 1758.060077] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1758.069421] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1758.078786] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1758.086119] brcmfmac: brcmf_sdio_regrw_helper: failed with -123
[ 1758.090754] brcmfmac: brcmf_sdbrcm_htclk: HT Avail request error: -123
[ 1758.095994] brcmfmac: brcmf_sdioh_request_word: Failed to write word, Err: 0xffffff85
[ 1758.104563] brcmfmac: brcmf_sdioh_request_word: Failed to write word, Err: 0xffffff85
[ 1758.113130] brcmfmac: brcmf_sdioh_request_word: Failed to write word, Err: 0xffffff85
[ 1758.119660] brcmfmac: brcmf_sdio_regrw_helper: failed with -123
[ 1758.124300] brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1000e=ff, Err: -123
[ 1758.133560] brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1000e=ff, Err: -123
[ 1758.142823] brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1000e=ff, Err: -123
[ 1758.150070] brcmfmac: brcmf_sdio_regrw_helper: failed with -123
[ 1758.154690] brcmfmac: brcmf_sdbrcm_bus_stop: Failed to force clock for F2: err -123
[ 1758.161060] brcmfmac: brcmf_sdioh_f0_write_byte: Disable F2 failed:-5
[ 1758.166202] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F0:@0x00002=02, Err: -5
[ 1758.175373] brcmfmac: brcmf_sdioh_f0_write_byte: Disable F2 failed:-5
[ 1758.180533] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F0:@0x00002=02, Err: -5
[ 1758.189688] brcmfmac: brcmf_sdioh_f0_write_byte: Disable F2 failed:-5
[ 1758.194849] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F0:@0x00002=02, Err: -5
[ 1758.202001] brcmfmac: brcmf_sdio_regrw_helper: failed with -5
[ 1758.206453] brcmfmac: brcmf_sdioh_request_word: Failed to write word, Err: 0xffffff85
[ 1758.215021] brcmfmac: brcmf_sdioh_request_word: Failed to write word, Err: 0xffffff85
[ 1758.223596] brcmfmac: brcmf_sdioh_request_word: Failed to write word, Err: 0xffffff85
[ 1758.230151] brcmfmac: brcmf_sdio_regrw_helper: failed with -123
[ 1758.234937] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1758.244298] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1758.253651] brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1000e=10, Err: -123
[ 1758.260980] brcmfmac: brcmf_sdio_regrw_helper: failed with -123
[ 1758.265601] brcmfmac: brcmf_sdbrcm_htclk: HT Avail request error: -123
[ 1758.271018] mmc1: card 0001 removed
[ 1758.343713] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1758.349576] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1758.355494] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1758.362867] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1758.371535] mmc1: queuing unknown CIS tuple 0x80 (11 bytes)
[ 1758.425166] mmc1: new high speed SDIO card at address 0001
[ 1758.430001] unable to find transceiver of type USB3 PHY
[ 1758.431022] brcmfmac: F1 signature read @0x18000000=0x16044330
[ 1758.433940] dwc3 dwc3.0.auto: no usb3 phy configured
[ 1758.437633] platform dwc3.0.auto: Driver dwc3 requests probe deferral
[ 1758.771348] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Jan 23 2013 17:46:35 version 5.90.195.114 FWID 01-cafa6b3e
[ 1758.787263] brcmfmac: brcmf_fws_init: enabled bdcv2 tlv signaling [1]
[ 1758.794862] unable to find transceiver of type USB3 PHY
[ 1758.798816] dwc3 dwc3.0.auto: no usb3 phy configured
[ 1758.803701] platform dwc3.0.auto: Driver dwc3 requests probe deferral
')

The interface boots successfully and wlan0 shows up in "ip link" and "ifconfig -a". I'm using kernel version 3.10.17-2-ARCH.

Any idea what's going on? Is there anything more I can test to figure out what the problem is? Thanks.
bcattle
 
Posts: 2
Joined: Thu Jun 19, 2014 7:09 am

Re: Bringing up WiFi interface on Wandboard Quad

Postby bcattle » Thu Jun 26, 2014 10:36 pm

Looks like the issue is a device tree modification is needed to support rev C1 board. See here: http://forums.wandboard.org/viewtopic.php?f=8&t=440&sid=b49b7de10d696605c91630681bd9767a#p2079
bcattle
 
Posts: 2
Joined: Thu Jun 19, 2014 7:09 am

Re: Bringing up WiFi interface on Wandboard Quad

Postby Alarmed » Thu Jul 31, 2014 8:24 pm

May I ask how I can use the build system you're using to patch the kernel and build a package? I'd like to give it a go on my wandboard. How do you identify the version of the board?
Alarmed
 
Posts: 54
Joined: Sun Jul 27, 2014 2:07 pm

Re: Bringing up WiFi interface on Wandboard Quad

Postby PLyttle » Fri Aug 01, 2014 6:18 am

When you upgrade to the latest stock kernel (linux-wandboard to 3.10.17-3) The new device tree and rfkill are available. it auto-senses which board you have.

To see which board you have, read the line between the heatsink and the EDM connector. Mine reads "WB-EDM-iMX6 REV C1". I deduce from this that i own a rev C1.

Make sure you have all the firmware installed. you need both the packages linux-firmware and firmware-brcm43xx.

Expect your wlan to drop out (not waking up) after a period of inactivity. The modification still needs some work. there are several threads about this. You can prevent this from happening by pinging the board once a minute. (ping -c 2000 -i 60 X.X.X.X)

LP
PLyttle
 
Posts: 120
Joined: Mon Jun 10, 2013 6:52 am

Re: Bringing up WiFi interface on Wandboard Quad

Postby pepedog » Fri Aug 01, 2014 7:52 am

$this->bbcode_second_pass_quote('Alarmed', 'M')ay I ask how I can use the build system you're using to patch the kernel and build a package? I'd like to give it a go on my wandboard. How do you identify the version of the board?

Update
Install base-devel and git
Git clone the source https://github.com/archlinuxarm/PKGBUILDs
cd to the right directory, edit PKGBUILD, then use makepkg -A
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Bringing up WiFi interface on Wandboard Quad

Postby Alarmed » Fri Aug 01, 2014 3:25 pm

$this->bbcode_second_pass_quote('', '
')To see which board you have, read the line between the heatsink and the EDM connector. Mine reads "WB-EDM-iMX6 REV C1". I deduce from this that i own a rev C1.


Mine says B1....
Alarmed
 
Posts: 54
Joined: Sun Jul 27, 2014 2:07 pm

Re: Bringing up WiFi interface on Wandboard Quad

Postby PLyttle » Fri Aug 01, 2014 4:06 pm

Well, then, install the latest kernel, make sure you installed the two firmware packages and reboot.
You should be golden. AFAIK there are no problems with the bcm 4329 chip.

With this setup you make sure that the kernel modules and the firmware fit. (names, locations etc)

If you want to use bluetooth too, you need to run "sudo systemctl enable brcm43xx" before you reboot.

LP
PLyttle
 
Posts: 120
Joined: Mon Jun 10, 2013 6:52 am

Re: Bringing up WiFi interface on Wandboard Quad

Postby Alarmed » Fri Aug 01, 2014 4:21 pm

By latest kernel you mean mainline? i.e. linux-armv7? I'm about to flash u-boot and install that.
Alarmed
 
Posts: 54
Joined: Sun Jul 27, 2014 2:07 pm

Re: Bringing up WiFi interface on Wandboard Quad

Postby PLyttle » Fri Aug 01, 2014 4:48 pm

no, the linux-wandboard kernel package, like mentioned before (linux-wandboard 3.10.17-3)

sudo pacman -S linux-wandboard
PLyttle
 
Posts: 120
Joined: Mon Jun 10, 2013 6:52 am

Re: Bringing up WiFi interface on Wandboard Quad

Postby Alarmed » Sat Aug 02, 2014 1:54 am

$this->bbcode_second_pass_code('', 'no, the linux-wandboard kernel package, like mentioned before (linux-wandboard 3.10.17-3) ')

I installed linux-armv7 and it worked! Slightly more stable it seems, no more kernel debug error messages in dmesg.
Alarmed
 
Posts: 54
Joined: Sun Jul 27, 2014 2:07 pm

Next

Return to Freescale

Who is online

Users browsing this forum: No registered users and 15 guests