A question for Hans....
Do you have wi-fi working on BananaPro board (AP6181 module) ? (Assuming you have a BananaPro board as you appear to have written the dts file from the copyright on it.) Is there a "trick" needed to make this play nice with brcmfmac driver?
[ 232.253648] brcmfmac_sdio mmc1:0001:1: Direct firmware load for brcm/brcmfmac43362-sdio.txt failed with error -2 [ 233.087282] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
Regards
Clive
Hi,
On 06-03-15 16:33, Clive Messer wrote:
A question for Hans....
Do you have wi-fi working on BananaPro board (AP6181 module) ? (Assuming you have a BananaPro board as you appear to have written the dts file from the copyright on it.) Is there a "trick" needed to make this play nice with brcmfmac driver?
[ 232.253648] brcmfmac_sdio mmc1:0001:1: Direct firmware load for brcm/brcmfmac43362-sdio.txt failed with error -2 [ 233.087282] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
You can fix that error by dropping this file:
http://dl.cubieboard.org/public/Cubieboard/benn/firmware/ap6210/nvram_ap6210...
In place as the requested brcm/brcmfmac43362-sdio.txt file under /lib/firmware, that will give you working wifi, but only for a couple of minutes then things stop working. Arend van Spriel (from Broadcom, added to the CC) is looking into this. ETA for a fix is unknown atm.
Regards,
Hans
On Sat, 2015-03-07 at 12:23 +0100, Hans de Goede wrote:
Hans,
In place as the requested brcm/brcmfmac43362-sdio.txt file under /lib/firmware,
Idiot! (Me, not you!) I forgot about the nvram file! That would at least help get things initialised! ;)
that will give you working wifi, but only for a couple of minutes then things stop working. Arend van Spriel (from Broadcom, added to the CC) is looking into this. ETA for a fix is unknown atm.
Verified! 230MB of data through the interface, and kaboom! ;)
[ 437.034718] brcmfmac: brcmf_cfg80211_get_station: Could not get rate (-52) [ 438.327118] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
Hopefully with input from Broadcom this will get resolved sooner, rather than later.
I'll stick with a USB wi-fi dongle for the moment.
Regards
Clive
Hi,
On 07-03-15 18:33, Clive Messer wrote:
On Sat, 2015-03-07 at 12:23 +0100, Hans de Goede wrote:
Hans,
In place as the requested brcm/brcmfmac43362-sdio.txt file under /lib/firmware,
Idiot! (Me, not you!) I forgot about the nvram file! That would at least help get things initialised! ;)
that will give you working wifi, but only for a couple of minutes then things stop working. Arend van Spriel (from Broadcom, added to the CC) is looking into this. ETA for a fix is unknown atm.
Verified! 230MB of data through the interface, and kaboom! ;)
[ 437.034718] brcmfmac: brcmf_cfg80211_get_station: Could not get rate (-52) [ 438.327118] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
Hmm, interesting that looks like a different message then what we're seeing on the cubietruck.
Are you using the nvram file I linked to, or are you using a different one?
If you're using a different one can you provide a link to that ?
Regards,
Hans
Hi,
On 07-03-15 18:33, Clive Messer wrote:
On Sat, 2015-03-07 at 12:23 +0100, Hans de Goede wrote:
Hans,
In place as the requested brcm/brcmfmac43362-sdio.txt file under /lib/firmware,
Idiot! (Me, not you!) I forgot about the nvram file! That would at least help get things initialised! ;)
that will give you working wifi, but only for a couple of minutes then things stop working. Arend van Spriel (from Broadcom, added to the CC) is looking into this. ETA for a fix is unknown atm.
Verified! 230MB of data through the interface, and kaboom! ;)
[ 437.034718] brcmfmac: brcmf_cfg80211_get_station: Could not get rate (-52) [ 438.327118] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
Oh interesting I was just running some tests on a A10s based hdmi dongle, the Auxtek T004 which has aa brcm sdio wifi too, specifically a toc9002 module, which also contains a 43362 wifi component, and I've been testing this with the nvram from the cubietruck since the original nvram does not work with brcmfmac, and with this combo it seems to survive the error where things get stuck on the cubie, specifically things seem to still work after:
[ 168.950420] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 53, RD SBE !! [ 168.956458] sunxi-mmc 1c10000.mmc: data error, sending stop command
Which is normally where the cubietruck gets stuck and starts responding with a response timeout to everything.
Not sure what this means, could be due to this dongle having a different sdio module / 43362 revisison, could be that I'm running 4.0-rc1 and that something has changed for the better there.
Regards,
Hans
On Sat, 2015-03-07 at 19:57 +0100, Hans de Goede wrote:
Not sure what this means, could be due to this dongle having a different sdio module / 43362 revisison, could be that I'm running 4.0-rc1 and that something has changed for the better there.
Hmmm. The testing that I'm doing at the moment with the BananaPi/Pro is using a 4.0.0-0.rc2.git1.2 kernel with F21 image.
I grabbed the 4rc2 SRPM from the rawhide kernel nodebug repo, applied a few extra patches, (mostly concerned with adding sun4i-dma driver, pll2 clock and pre-requisites for mainline sunxi-codec support), which I have been using to test audio out of headphone jack on Cubietruck, BananaPi and BananaPro, with a F21 image......
SRPM is here.... http://www.squeezecommunity.org/repo/21/unstable/SRPMS/kernel-4.0.0-0.rc2.gi...
RPMS here.... http://www.squeezecommunity.org/repo/21/unstable/arm/
Back to Broadcom wi-fi and brcmfmac driver issues.....
I didn't actually download the nvram file you specified, (but have diffed against mine and it's exactly the same), as I already had the firmware pre-packaged from f20, in a manner in which it could be used by both ap6210 driver (when running sunxi kernel) and also with a symlink "/lib/firmware/brcm/brcmfmac43362-sdio.txt" -> ../ap6210/nvram_ap6210.txt, so the fmac driver works when running mainline. (I had forgotten to install this on the BananaPro before I first posted about the brcmfmac driver not working. Since rectified.)
http://www.squeezecommunity.org/repo/20/cubietruck/SRPMS/ap6210-firmware-1.0... http://www.squeezecommunity.org/repo/20/cubietruck/armhfp/ap6210-firmware-1....
[fedora@bananapro brcm]$ rpm -ql ap6210-firmware /usr/lib/firmware/ap6210 /usr/lib/firmware/ap6210/bcm20710a1.hcd /usr/lib/firmware/ap6210/bd_addr.txt /usr/lib/firmware/ap6210/fw_bcm40181a2.bin /usr/lib/firmware/ap6210/fw_bcm40181a2_apsta.bin /usr/lib/firmware/ap6210/fw_bcm40181a2_p2p.bin /usr/lib/firmware/ap6210/nvram_ap6210.txt /usr/lib/firmware/brcm /usr/lib/firmware/brcm/brcmfmac43362-sdio.txt
One thing that is perplexing me, is that although I'm using a sunxi kernel on my Cubietruck right now and ap6210 driver (which if I recall correctly is based on brcmhd, rather than brcmfmac), I'm sure I have had CubieTruck working with a 3.18 brcmfmac driver and didn't notice any wi-fi issues. I'll switch that back to a 3.18 kernel tomorrow (and also try the 4rc2) on the CT and see if I have any luck.
PS. Have also verified that /lib/firmware/bcrm/brcmfmac43362-sdio.bin (from linux-firmware RPM package) and the /usr/lib/firmware/ap6210/fw_bcm40181a2.bin (from my ap6210-firmware RPM package) do not differ. So regardless of using brcmhd/ap6210 driver or brcmfmac, and loading differently named nvram.txt/fw.bin depending on driver, they are exactly the same nvram/firmware files, rather than different revisions.
Anyway, it's no big deal. Have zero interest in the Bluetooth component, but would be nice if the wi-fi worked with mainline driver, but it's really no hardship to use a dongle.
Whatever the problems with the brcmfmac driver and CT/BananaPro.... It must be specific to the Broadcom 40181 wi-fi chipset. I'm not seeing any issues with a RevB1 Wandboard (4329 chipset), or RevC1 Wandboard (4330 chipset) and brcmfmac driver.....
Regards
Clive