Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#982579: Failed to load firmware brcmfmac43430-sdio at BananaPi M2

463 views
Skip to first unread message

Bernhard

unread,
Feb 12, 2021, 1:30:03 AM2/12/21
to
Package: firmware-brcm80211
Version: 20201218-3

Hello,

At my BananaPi M2 Ultra, loading firmware failed:

> [ 10.514530] brcmfmac mmc2:0001:1: firmware: direct-loading firmware brcm/brcmfmac43430-sdio.bin
> [ 10.514732] brcmfmac mmc2:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-ultra.txt (
> -2)
> [ 10.525149] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
> [ 10.534664] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-ultra.txt f
> ailed with error -2
> [ 10.551207] brcmfmac mmc2:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.txt (-2)
> [ 10.559692] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.txt failed with error -2
>

Please add the corresponding firmware.

Best regards and thank you for the great support.
Bernhard

signature.asc

maximilian attems

unread,
Feb 13, 2021, 1:50:03 PM2/13/21
to
> > [ 10.514530] brcmfmac mmc2:0001:1: firmware: direct-loading firmware brcm/brcmfmac43430-sdio.bin
> > [ 10.514732] brcmfmac mmc2:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-ultra.txt (
> > -2)

this txt file is missing upstream, once someone (preferrably its
author submits it to linux-firmware) w appropriate license we are
happy to ship it -> latest git is here:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

> Please add the corresponding firmware.

once it is upstream, sure. please feel free to bug the bpi m2 guys
to do so.

thank you,

--
maks

Bernhard

unread,
Feb 14, 2021, 2:00:05 AM2/14/21
to
Hello Maximilian

Thank you for working for my problem.

In the GIT repository, i found the NVRAM config file for the Ampak AP6212 named:
brcmfmac43430-sdio.AP6212.txt

This WIFI module is assembled at the Banana Pi M2 Ultra and also at the Banana Pi M3.

I'll do some tests by manually copy this file to the directory and let you know, if it works.

Best regards and thank you for your support
Bernhard


signature.asc

Bernhard

unread,
Feb 16, 2021, 1:20:03 AM2/16/21
to
Hello Maks

I tested the following:

1. Copy file brcmfmac43430-sdio.AP6212.txt from upstream to lib/firmware/brcm
2. Create symbolic link named brcmfmac43430-sdio.sinovoip.bpi-m3.txt to the AP6212-file
3. Create symbolic link named brcmfmac43430-sdio.sinovoip.bpi-m2-ultra.txt to the AP6212-file

After that, the wlan0 interface is available and scanning of the WLAN-ESSIDs works.

Please either do it like described above or add the files directly instead of the symbolic links.
signature.asc

maximilian attems

unread,
Feb 16, 2021, 2:20:02 AM2/16/21
to
Dear Bernhard,

Thank you very much for your clear and helpful report!

> I tested the following:
>
> 1. Copy file brcmfmac43430-sdio.AP6212.txt from upstream to lib/firmware/brcm

so indeed it is a bug that we don't ship this one from upstream,
will fix this in next Debian upload.

> 2. Create symbolic link named brcmfmac43430-sdio.sinovoip.bpi-m3.txt to the AP6212-file
> 3. Create symbolic link named brcmfmac43430-sdio.sinovoip.bpi-m2-ultra.txt to the AP6212-file

this should be reported upstream, so that everyone takes advantage of
it, hence adding linux-firmware mailinglist on Cc, happy to cook up
a patch next 24hs.

> After that, the wlan0 interface is available and scanning of the WLAN-ESSIDs works.

great!


> Please either do it like described above or add the files directly instead of the symbolic links.

The symbolic links are better than duplicated files, but there seem to
be on the Debian side an opened can of trouble on them, see #982757
(I'll post there soonish)

Thank you for the kind words, the test and your report!

--
maks
signature.asc

maximilian attems

unread,
Feb 16, 2021, 1:50:04 PM2/16/21
to
please find patch to add banana ultra support below

From b549a10838edc4f97d4a3b49b572fc613c7c703d Mon Sep 17 00:00:00 2001
From: maximilian attems <ma...@stro.at>
Date: Tue, 16 Feb 2021 19:35:27 +0100
Subject: [PATCH] Add symlink for BananaPi M2 to brcmfmac43430-sdio config

Fixes ( Debian bug #982579 [1]):
[ 10.514530] brcmfmac mmc2:0001:1: firmware: direct-loading firmware brcm/brcmfmac43430-sdio.bin
[ 10.514732] brcmfmac mmc2:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-ultra.txt ( -2)

Refs:
[1] https://bugs.debian.org/982579

Reported-by: Bernhard <bewo...@gmail.com>
Signed-off-by: maximilian attems <ma...@stro.at>
---
WHENCE | 1 +
1 file changed, 1 insertion(+)

diff --git a/WHENCE b/WHENCE
index aa96404..11c0970 100644
--- a/WHENCE
+++ b/WHENCE
@@ -2716,6 +2716,7 @@ File: "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
File: "brcm/brcmfmac43430-sdio.AP6212.txt"
Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-plus.txt -> brcmfmac43430-sdio.AP6212.txt
Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-zero.txt -> brcmfmac43430-sdio.AP6212.txt
+Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-ultra.txt -> brcmfmac43430-sdio.AP6212.txt
File: "brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt"
File: "brcm/brcmfmac43430-sdio.MUR1DX.txt"
File: "brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt"
--
2.30.0

maximilian attems

unread,
Feb 16, 2021, 1:50:04 PM2/16/21
to
> > 1. Copy file brcmfmac43430-sdio.AP6212.txt from upstream to lib/firmware/brcm
>
> so indeed it is a bug that we don't ship this one from upstream,
> will fix this in next Debian upload.

this needs to go in the debian git, will do soonish. (:

> > 2. Create symbolic link named brcmfmac43430-sdio.sinovoip.bpi-m3.txt to the AP6212-file

I am confused by this, as you did *not* submit an error log that showed
a request for this file, is this to add support to another device,
please be specific.

> > 3. Create symbolic link named brcmfmac43430-sdio.sinovoip.bpi-m2-ultra.txt to the AP6212-file
> this should be reported upstream, so that everyone takes advantage of
> it, hence adding linux-firmware mailinglist on Cc, happy to cook up
> a patch next 24hs.

sent, to add that symlink upstream.


thank you!

--
maks
signature.asc

Bernhard Wörner

unread,
Feb 17, 2021, 1:00:03 AM2/17/21
to
Hello Maks

The additional symlink bpi-m3 is for an additional device.

This is for the Banana Pi M3.

Should i create an additional Bug report?

Best regards
Bernhard

maximilian attems

unread,
Feb 17, 2021, 1:50:03 AM2/17/21
to
> The additional symlink bpi-m3 is for an additional device.
>
> This is for the Banana Pi M3.

great, please post the dmesg error message, happy to submit upstream. (:

> Should i create an additional Bug report?

no need, this bug report can be cloned.

Bernhard

unread,
Feb 22, 2021, 1:10:03 AM2/22/21
to
Hello Maks

Here, the DMesg output for BananaPi M3:

> [ 11.957171] brcmfmac mmc2:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.sinovoip,bpi-m3.txt (-2)
> [ 11.967106] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
> [ 11.977035] brcmfmac mmc2:0001:1: firmware: failed to load brcm/brcmfmac43430-sdio.txt (-2)
> [ 12.994756] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

Best regards and thank you for your support.
Bernhard

signature.asc

maximilian attems

unread,
Feb 22, 2021, 4:30:03 PM2/22/21
to
please also add BananaPi M3 support.


From 216a0bda280e7b361c335f545156e86a059d9551 Mon Sep 17 00:00:00 2001
From: maximilian attems <ma...@stro.at>
Date: Mon, 22 Feb 2021 22:18:36 +0100
Subject: [PATCH 2/2] WHENCE: add missing symlink for BananaPi M3

Fixes (Debian bug #982579):
> [ 11.957171] brcmfmac mmc2:0001:1: firmware: failed to load
brcm/brcmfmac43430-sdio.sinovoip,bpi-m3.txt (-2)
> [ 11.967106] firmware_class: See https://wiki.debian.org/Firmware for
information about missing firmware
> [ 11.977035] brcmfmac mmc2:0001:1: firmware: failed to load
brcm/brcmfmac43430-sdio.txt (-2)
> [ 12.994756] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl
0x50

Reported-by: Bernhard <bewo...@gmail.com>
Signed-off-by: maximilian attems <ma...@stro.at>
---
WHENCE | 1 +
1 file changed, 1 insertion(+)

diff --git a/WHENCE b/WHENCE
index 11c0970..b569990 100644
--- a/WHENCE
+++ b/WHENCE
@@ -2717,6 +2717,7 @@ File: "brcm/brcmfmac43430-sdio.AP6212.txt"
Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-plus.txt -> brcmfmac43430-sdio.AP6212.txt
Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-zero.txt -> brcmfmac43430-sdio.AP6212.txt
Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m2-ultra.txt -> brcmfmac43430-sdio.AP6212.txt
+Link: brcm/brcmfmac43430-sdio.sinovoip,bpi-m3.txt -> brcmfmac43430-sdio.AP6212.txt

Josh Boyer

unread,
Mar 3, 2021, 1:30:05 PM3/3/21
to
Both patches applied and pushed out.

In the future, could you please send the patches either as direct
emails or as attachments or as pull requests? When you embed them in
the body of the email I have to manually adjust them to get the commit
log properly included.

josh

maximilian attems

unread,
Mar 3, 2021, 3:10:04 PM3/3/21
to
> Both patches applied and pushed out.

great thank you.

> In the future, could you please send the patches either as direct
> emails or as attachments or as pull requests? When you embed them in
> the body of the email I have to manually adjust them to get the commit
> log properly included.

sure, will do as pull request.
0 new messages