Skip to contentSkip to conversation

Buildroot: enable lib/firmware/brcm for rpi0w

Buildroot Andreas Ziegler 2 participants 8 messages Mar 24, 2021 – Mar 30, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello Laurentiu-Cristian,

Quoted 3 lines

Subject: [Buildroot] Buildroot: enable lib/firmware/brcm for rpi0w

output/target/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi-rpi.txt

The nvram file with 'raspberrypi' in its name is not present in the rpi-wifi-firmware blob; you need to create it yourself. As an example, this is what I use in a post-build script for a RPi4:

### create missing nvram file for Raspberry Pi 4 _TARGET_DIR="${TARGET_DIR}/lib/firmware" src_file=brcm/brcmfmac43455-sdio.txt dst_file=brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt if [ -f ${_TARGET_DIR}/${src_file} ] && ! [ -h
${_TARGET_DIR}/${dst_file} ]; then

	ln -rs ${_TARGET_DIR}/${src_file} ${_TARGET_DIR}/${dst_file}

fi

Kind regards,
Andreas

#2 lore raw

Hello Laurentiu-Cristian, Andreas,

Quoted 10 lines · Andreas Ziegler

Hello Laurentiu-Cristian,

Quoted 3 lines

Subject: [Buildroot] Buildroot: enable lib/firmware/brcm for rpi0w

output/target/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi-rpi.txt

The nvram file with 'raspberrypi' in its name is not present in the rpi-wifi-firmware blob; you need to create it yourself. As an example, this is what I use in a post-build script for a RPi4:

Quoted 8 lines
   ### create missing nvram file for Raspberry Pi 4
   _TARGET_DIR="${TARGET_DIR}/lib/firmware"
   src_file=brcm/brcmfmac43455-sdio.txt
   dst_file=brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt
   if [ -f ${_TARGET_DIR}/${src_file} ] && ! [ -h
${_TARGET_DIR}/${dst_file} ]; then
	ln -rs ${_TARGET_DIR}/${src_file} ${_TARGET_DIR}/${dst_file}

fi

Or use BR2_PACKAGE_LINUX_FIRMWARE/BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX already containing the file brcmfmac43455-sdio.raspberrypi,4-model-b.txt ([1], but according to [2],[3],[4] the linux-firmware provided files are 'older than that used by the Raspbian distribution, and has (in certain situations) significantly worse performance than it (and indeed with some APs, will not associate at all).')?

Did not (yet) compare the various provided firmware files:

- http://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
- github,LibreELEC,brcmfmac_sdio-firmware-rpi
- https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm

Regards,
Peter

[1] https://git.buildroot.net/buildroot/tree/package/linux-firmware/linux-firmware.mk#n602
[2] https://forums.gentoo.org/viewtopic-t-1108138-start-0.html
[3] https://forums.gentoo.org/viewtopic-p-8398532.html#8398532
[4] https://forum.manjaro.org/t/significant-wifi-speed-increase-with-latest-firmware/43607

Quoted 7 lines

Kind regards,
Andreas
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

Hello Peter,

Thank you for this detailed information!

Quoted 12 lines · Peter Seiderer

Or use BR2_PACKAGE_LINUX_FIRMWARE/BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX already containing the file brcmfmac43455-sdio.raspberrypi,4-model-b.txt
([1], but according to [2],[3],[4] the linux-firmware provided files are
'older than that used by the Raspbian distribution, and has (in certain situations)
significantly worse performance than it (and indeed with some APs, will not
associate at all).')?

Quoted 2 lines

Did not (yet) compare the various provided firmware files:

I performed some tests this morning; the linux-firmware version is indeed considerably older than the rpi-wifi-firmware one (buildroot 2021.02-git):

rpi-wifi-firmware [1]
[raspi]# dmesg | grep brcm

[    1.016287] brcmfmac: brcmf_fw_alloc_request: using 
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.163138] brcmfmac: brcmf_fw_alloc_request: using 
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.170984] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: 

Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea

linux-firmwlare [2]
[raspi]# dmesg | grep brcmfmac

[    1.014318] brcmfmac: brcmf_fw_alloc_request: using 
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.015164] usbcore: registered new interface driver brcmfmac
[    1.123380] brcmfmac: brcmf_fw_alloc_request: using 
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.131265] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: 

Mar 1 2015 07:29:38 version 7.45.18 (r538002) FWID 01-6a2c8ad4

Both worked (at least on my hardware: 'Machine model: Raspberry Pi 4 Model B Rev 1.1' running 5.10.21-rt33-v8) and data rate over WiFi was not different for both versions.

The version from [3] is quite recent:

RPi-Distro / firmware-nonfree
[raspi]# dmesg | grep brcmfmac

[    1.036680] brcmfmac: brcmf_fw_alloc_request: using 
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.037717] usbcore: registered new interface driver brcmfmac
[    1.183610] brcmfmac: brcmf_fw_alloc_request: using 
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.188657] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: 

Jan 4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e

Also here, no change in throughput.

The LibreELEC repository (rpi-wifi-firmware) seems to have adopted this version in commit 7dbd877545ae15069f2bd0e73893af942500e23d on Jan. 25.

Armbian-firmware, by the way, is on version 7.45.154 (2018-02-27).

There seem to be some bigger changes in the pipeline: linux-firmware removed the Broadcom redistributed binaries in January [4] for the 20210208 release; instead Cypress firmware should be used. The upstream repository for this firmware seems to be murata-wireless / cyw-fmac-fw [5]

I need to look into this in detail at some other time ...

Kind regards,
Andreas

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
(version 20201022)
[2]
https://github.com/LibreELEC/brcmfmac_sdio-firmware-rpi/tree/9c0ffe9a7f0753b36ed88f7981905a989d940ea9
[3] https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm
[4]
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?h=20210208&id=0f0aefd733f70beae4c0246edbd2c158d5ce974c
[5] https://github.com/murata-wireless/cyw-fmac-fw/

#4 lore raw

Hello Andreas,

Quoted 18 lines · Andreas Ziegler

Hello Peter,

Thank you for this detailed information!

Quoted 12 lines · Peter Seiderer

Or use BR2_PACKAGE_LINUX_FIRMWARE/BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX already containing the file brcmfmac43455-sdio.raspberrypi,4-model-b.txt
([1], but according to [2],[3],[4] the linux-firmware provided files are
'older than that used by the Raspbian distribution, and has (in certain situations)
significantly worse performance than it (and indeed with some APs, will not
associate at all).')?

Quoted 6 lines
Quoted 2 lines

Did not (yet) compare the various provided firmware files:

I performed some tests this morning; the linux-firmware version is indeed considerably older than the rpi-wifi-firmware one (buildroot 2021.02-git):

Many thanks for doing the tests!

Quoted 34 lines

rpi-wifi-firmware [1]
[raspi]# dmesg | grep brcm

[    1.016287] brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.163138] brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.170984] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0:

Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea

linux-firmwlare [2]
[raspi]# dmesg | grep brcmfmac

[    1.014318] brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.015164] usbcore: registered new interface driver brcmfmac
[    1.123380] brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.131265] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0:

Mar 1 2015 07:29:38 version 7.45.18 (r538002) FWID 01-6a2c8ad4

Both worked (at least on my hardware: 'Machine model: Raspberry Pi 4 Model B Rev 1.1' running 5.10.21-rt33-v8) and data rate over WiFi was not different for both versions.

The version from [3] is quite recent:

RPi-Distro / firmware-nonfree
[raspi]# dmesg | grep brcmfmac

[    1.036680] brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.037717] usbcore: registered new interface driver brcmfmac
[    1.183610] brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43455-sdio for chip BCM4345/6
[    1.188657] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0:
Quoted 6 lines

Jan 4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e

Also here, no change in throughput.

The LibreELEC repository (rpi-wifi-firmware) seems to have adopted this version in commit 7dbd877545ae15069f2bd0e73893af942500e23d on Jan. 25.

So a good reason to stay with LibreELEC (and fix the firmware package to provide raspberrypi,4-model-b.txt as a link or copy, do you know if missing it has some disadvantages or produces only the firmware load warning or is there a fallback to plain brcmfmac43455-sdio.txt?), keeping up with RPi-Distro...

Quoted 10 lines

Armbian-firmware, by the way, is on version 7.45.154 (2018-02-27).

There seem to be some bigger changes in the pipeline: linux-firmware removed the Broadcom redistributed binaries in January [4] for the 20210208 release; instead Cypress firmware should be used. The upstream repository for this firmware seems to be murata-wireless / cyw-fmac-fw [5]

I need to look into this in detail at some other time ...

Seems kind of (another) firmware mess...., different versions at different repositories...., all with the same name (instead of clear version string)...

Regards,
Peter

Quoted 17 lines

Kind regards,
Andreas

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
(version 20201022)
[2]
https://github.com/LibreELEC/brcmfmac_sdio-firmware-rpi/tree/9c0ffe9a7f0753b36ed88f7981905a989d940ea9
[3] https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm
[4]
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?h=20210208&id=0f0aefd733f70beae4c0246edbd2c158d5ce974c
[5] https://github.com/murata-wireless/cyw-fmac-fw/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#5 lore raw

Hello Peter,

Quoted 3 lines · Peter Seiderer

Many thanks for doing the tests!

Not at all; after getting confused with different versions and repositories, I wanted to understand the reason behind this.

Short summary of my findings; I may state the obvious here, but it was new for me and maybe it helps someone with the same hazy knowledge about hardware engineering as myself:

Broadcom sold its RF division to Cypress in 2016. Cypress now supports the legacy wireless /bluetooth /radio hardware from Broadcom; that is the reason why BCM* and CYW* versions of firmware exist, and linux-firmware removed the original Broadcom supplied binaries.

Cypress does not directly sell to end customers, but provides silicon to hardware partners (AzureWave, Murata, ...), which in turn sell RF solutions. Cypress distributes firmware for their silicon chips (probably to same hardware partners).

End product is some type of SOC (subsystem on chip); the benefit is that tuning and regulatory issues have been taken care of. The SOC manufacturer is responsible for supplying bluetooth patch (HCD), regulatory data (CLM) and firmware configuration (TXT).

That means the firmware binary (BIN) can be obtained from any source, the other items (HCD, CLM, TXT) need to be sourced from the implementer.

Quoted 4 lines
Quoted 3 lines

The LibreELEC repository (rpi-wifi-firmware) seems to have adopted this
version in commit 7dbd877545ae15069f2bd0e73893af942500e23d on Jan. 25.

Quoted 8 lines

So a good reason to stay with LibreELEC (and fix the firmware package to
provide raspberrypi,4-model-b.txt as a link or copy, do you know if missing
it has some disadvantages or produces only the firmware load warning or is
there a fallback to plain brcmfmac43455-sdio.txt?), keeping up with RPi-Distro...

Yes, also my opinion to stay with LibreELEC. The repository is small, is updated in a timely manner, and is (slightly) better documented than RPi-Distro.

There is one thing (apart from providing the missing link) I would
propose: merge rpi-bt-firmware and rpi-wifi-firmware into rpi-rf-firmware, combining the code from both .mk and Config.in files. Functionality would be identical, but one less firmware package. If anyone is interested, I could provide a patch.

In recent kernels, firmware load tries board-specific path first, then falls back to firmware derived path [1]. If I remember correctly, in kernels < 5.0 the firmware load failed.

Quoted 7 lines
Quoted 7 lines

There seem to be some bigger changes in the pipeline: linux-firmware removed the Broadcom redistributed binaries in January [4] for the 20210208 release; instead Cypress firmware should be used. The upstream
repository for this firmware seems to be murata-wireless / cyw-fmac-fw [5]

Quoted 6 lines
Quoted 1 line

I need to look into this in detail at some other time ...

Seems kind of (another) firmware mess...., different versions at different
repositories...., all with the same name (instead of clear version string)...

There are at least three different versions available in Buildroot:

(available in Buildroot, repo 'master' version listed respectively)
libreELEC build 2021-01-04 version 7.45.229
linux-firmware build 2020-09-18 version 7.45.221
murata-wireless build 2020-09-18 version 7.45.221
(not in buildroot)
rpi-distro build 2021-01-04 version 7.45.229

Quoted 2 lines

Regards,
Peter

Kind regards,
Andreas

[1]
https://elixir.bootlin.com/linux/v5.10.21/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c#L616

#6 lore raw

Hello Andreas,

Quoted 49 lines · Andreas Ziegler

Hello Peter,

Quoted 3 lines · Peter Seiderer

Many thanks for doing the tests!

Not at all; after getting confused with different versions and repositories, I wanted to understand the reason behind this.

Short summary of my findings; I may state the obvious here, but it was new for me and maybe it helps someone with the same hazy knowledge about hardware engineering as myself:

Broadcom sold its RF division to Cypress in 2016. Cypress now supports the legacy wireless /bluetooth /radio hardware from Broadcom; that is the reason why BCM* and CYW* versions of firmware exist, and linux-firmware removed the original Broadcom supplied binaries.

Cypress does not directly sell to end customers, but provides silicon to hardware partners (AzureWave, Murata, ...), which in turn sell RF solutions. Cypress distributes firmware for their silicon chips (probably to same hardware partners).

End product is some type of SOC (subsystem on chip); the benefit is that tuning and regulatory issues have been taken care of. The SOC manufacturer is responsible for supplying bluetooth patch (HCD), regulatory data (CLM) and firmware configuration (TXT).

That means the firmware binary (BIN) can be obtained from any source, the other items (HCD, CLM, TXT) need to be sourced from the implementer.

Quoted 4 lines
Quoted 3 lines

The LibreELEC repository (rpi-wifi-firmware) seems to have adopted this
version in commit 7dbd877545ae15069f2bd0e73893af942500e23d on Jan. 25.

Quoted 8 lines

So a good reason to stay with LibreELEC (and fix the firmware package to
provide raspberrypi,4-model-b.txt as a link or copy, do you know if missing
it has some disadvantages or produces only the firmware load warning or is
there a fallback to plain brcmfmac43455-sdio.txt?), keeping up with RPi-Distro...

Yes, also my opinion to stay with LibreELEC. The repository is small, is updated in a timely manner, and is (slightly) better documented than RPi-Distro.

Quoted 5 lines

There is one thing (apart from providing the missing link) I would
propose: merge rpi-bt-firmware and rpi-wifi-firmware into rpi-rf-firmware, combining the code from both .mk and Config.in files. Functionality would be identical, but one less firmware package. If anyone is interested, I could provide a patch.

+1 from my side...

Quoted 28 lines

In recent kernels, firmware load tries board-specific path first, then falls back to firmware derived path [1]. If I remember correctly, in kernels < 5.0 the firmware load failed.

Quoted 7 lines
Quoted 7 lines

There seem to be some bigger changes in the pipeline: linux-firmware removed the Broadcom redistributed binaries in January [4] for the 20210208 release; instead Cypress firmware should be used. The upstream
repository for this firmware seems to be murata-wireless / cyw-fmac-fw [5]

Quoted 6 lines
Quoted 1 line

I need to look into this in detail at some other time ...

Seems kind of (another) firmware mess...., different versions at different
repositories...., all with the same name (instead of clear version string)...

There are at least three different versions available in Buildroot:

(available in Buildroot, repo 'master' version listed respectively)
libreELEC build 2021-01-04 version 7.45.229
linux-firmware build 2020-09-18 version 7.45.221
murata-wireless build 2020-09-18 version 7.45.221
(not in buildroot)
rpi-distro build 2021-01-04 version 7.45.229

Quoted 5 lines
Quoted 2 lines

Regards,
Peter

Kind regards,
Andreas

Thanks again for the detailed information (and testing)!

Did just sent out an patch adding the convenience firmware configuration links for RPi3A+, RPi3B+ and RPi4B (see [2])...

Regards,
Peter

[2] https://patchwork.ozlabs.org/project/buildroot/patch/20210329184503.10514-1-ps.report at gmx.net/

Quoted 7 lines

[1]
https://elixir.bootlin.com/linux/v5.10.21/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c#L616
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#7 lore raw

Hello Peter,

Quoted 59 lines · Peter Seiderer

Hello Andreas,

Quoted 54 lines · Andreas Ziegler

Hello Peter,

Quoted 3 lines · Peter Seiderer

Many thanks for doing the tests!

Not at all; after getting confused with different versions and repositories, I wanted to understand the reason behind this.

Short summary of my findings; I may state the obvious here, but it was new for me and maybe it helps someone with the same hazy knowledge about
hardware engineering as myself:

Broadcom sold its RF division to Cypress in 2016. Cypress now supports the legacy wireless /bluetooth /radio hardware from Broadcom; that is the reason why BCM* and CYW* versions of firmware exist, and linux-firmware removed the original Broadcom supplied binaries.

Cypress does not directly sell to end customers, but provides silicon to
hardware partners (AzureWave, Murata, ...), which in turn sell RF solutions. Cypress distributes firmware for their silicon chips (probably to same hardware partners).

End product is some type of SOC (subsystem on chip); the benefit is that
tuning and regulatory issues have been taken care of. The SOC manufacturer is responsible for supplying bluetooth patch (HCD), regulatory data (CLM) and firmware configuration (TXT).

That means the firmware binary (BIN) can be obtained from any source, the other items (HCD, CLM, TXT) need to be sourced from the implementer.

Quoted 4 lines
Quoted 3 lines

The LibreELEC repository (rpi-wifi-firmware) seems to have adopted this
version in commit 7dbd877545ae15069f2bd0e73893af942500e23d on Jan. 25.

Quoted 8 lines

So a good reason to stay with LibreELEC (and fix the firmware package to
provide raspberrypi,4-model-b.txt as a link or copy, do you know if missing
it has some disadvantages or produces only the firmware load warning or is
there a fallback to plain brcmfmac43455-sdio.txt?), keeping up with RPi-Distro...

Yes, also my opinion to stay with LibreELEC. The repository is small, is
updated in a timely manner, and is (slightly) better documented than RPi-Distro.

Quoted 7 lines
Quoted 5 lines

There is one thing (apart from providing the missing link) I would
propose: merge rpi-bt-firmware and rpi-wifi-firmware into rpi-rf-firmware, combining the code from both .mk and Config.in files. Functionality would be identical, but one less firmware package. If anyone is interested, I could provide a patch.

+1 from my side...

I will propose something via the mailing list.

Quoted 30 lines
Quoted 30 lines

In recent kernels, firmware load tries board-specific path first, then falls back to firmware derived path [1]. If I remember correctly, in kernels < 5.0 the firmware load failed.

Quoted 7 lines
Quoted 7 lines

There seem to be some bigger changes in the pipeline: linux-firmware removed the Broadcom redistributed binaries in January [4] for the 20210208 release; instead Cypress firmware should be used. The upstream
repository for this firmware seems to be murata-wireless / cyw-fmac-fw [5]

Quoted 6 lines
Quoted 1 line

I need to look into this in detail at some other time ...

Seems kind of (another) firmware mess...., different versions at different
repositories...., all with the same name (instead of clear version string)...

There are at least three different versions available in Buildroot:

(available in Buildroot, repo 'master' version listed respectively)
libreELEC build 2021-01-04 version 7.45.229
linux-firmware build 2020-09-18 version 7.45.221
murata-wireless build 2020-09-18 version 7.45.221
(not in buildroot)
rpi-distro build 2021-01-04 version 7.45.229

Quoted 2 lines

Regards,
Peter

Quoted 8 lines
Quoted 2 lines

Kind regards,
Andreas

Thanks again for the detailed information (and testing)!

Did just sent out an patch adding the convenience firmware configuration
links for RPi3A+, RPi3B+ and RPi4B (see [2])...

Tested and works for me. Hardware used was RPi4B. I replied to your patch, adding two lines for additional boards using BCM43430 Hardware. One is in the Linux Firmware Repository (3B), the other is the one reported by Laurentiu Christian (0W). I hope this approach is acceptable.

Quoted 13 lines

Regards,
Peter

[2]
https://patchwork.ozlabs.org/project/buildroot/patch/20210329184503.10514-1-ps.report at gmx.net/

Quoted 7 lines

[1]
https://elixir.bootlin.com/linux/v5.10.21/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c#L616
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Kind regards,
Andreas

#8 lore raw

Hello Andreas,

Quoted 112 lines · Andreas Ziegler

Hello Peter,

Quoted 59 lines · Peter Seiderer

Hello Andreas,

Quoted 54 lines · Andreas Ziegler

Hello Peter,

Quoted 3 lines · Peter Seiderer

Many thanks for doing the tests!

Not at all; after getting confused with different versions and repositories, I wanted to understand the reason behind this.

Short summary of my findings; I may state the obvious here, but it was new for me and maybe it helps someone with the same hazy knowledge about
hardware engineering as myself:

Broadcom sold its RF division to Cypress in 2016. Cypress now supports the legacy wireless /bluetooth /radio hardware from Broadcom; that is the reason why BCM* and CYW* versions of firmware exist, and linux-firmware removed the original Broadcom supplied binaries.

Cypress does not directly sell to end customers, but provides silicon to
hardware partners (AzureWave, Murata, ...), which in turn sell RF solutions. Cypress distributes firmware for their silicon chips (probably to same hardware partners).

End product is some type of SOC (subsystem on chip); the benefit is that
tuning and regulatory issues have been taken care of. The SOC manufacturer is responsible for supplying bluetooth patch (HCD), regulatory data (CLM) and firmware configuration (TXT).

That means the firmware binary (BIN) can be obtained from any source, the other items (HCD, CLM, TXT) need to be sourced from the implementer.

Quoted 4 lines
Quoted 3 lines

The LibreELEC repository (rpi-wifi-firmware) seems to have adopted this
version in commit 7dbd877545ae15069f2bd0e73893af942500e23d on Jan. 25.

Quoted 8 lines

So a good reason to stay with LibreELEC (and fix the firmware package to
provide raspberrypi,4-model-b.txt as a link or copy, do you know if missing
it has some disadvantages or produces only the firmware load warning or is
there a fallback to plain brcmfmac43455-sdio.txt?), keeping up with RPi-Distro...

Yes, also my opinion to stay with LibreELEC. The repository is small, is
updated in a timely manner, and is (slightly) better documented than RPi-Distro.

Quoted 7 lines
Quoted 5 lines

There is one thing (apart from providing the missing link) I would
propose: merge rpi-bt-firmware and rpi-wifi-firmware into rpi-rf-firmware, combining the code from both .mk and Config.in files. Functionality would be identical, but one less firmware package. If anyone is interested, I could provide a patch.

+1 from my side...

I will propose something via the mailing list.

Quoted 30 lines
Quoted 30 lines

In recent kernels, firmware load tries board-specific path first, then falls back to firmware derived path [1]. If I remember correctly, in kernels < 5.0 the firmware load failed.

Quoted 7 lines
Quoted 7 lines

There seem to be some bigger changes in the pipeline: linux-firmware removed the Broadcom redistributed binaries in January [4] for the 20210208 release; instead Cypress firmware should be used. The upstream
repository for this firmware seems to be murata-wireless / cyw-fmac-fw [5]

Quoted 6 lines
Quoted 1 line

I need to look into this in detail at some other time ...

Seems kind of (another) firmware mess...., different versions at different
repositories...., all with the same name (instead of clear version string)...

There are at least three different versions available in Buildroot:

(available in Buildroot, repo 'master' version listed respectively)
libreELEC build 2021-01-04 version 7.45.229
linux-firmware build 2020-09-18 version 7.45.221
murata-wireless build 2020-09-18 version 7.45.221
(not in buildroot)
rpi-distro build 2021-01-04 version 7.45.229

Quoted 2 lines

Regards,
Peter

Quoted 8 lines
Quoted 2 lines

Kind regards,
Andreas

Thanks again for the detailed information (and testing)!

Did just sent out an patch adding the convenience firmware configuration
links for RPi3A+, RPi3B+ and RPi4B (see [2])...

Quoted 5 lines

Tested and works for me. Hardware used was RPi4B. I replied to your patch, adding two lines for additional boards using BCM43430 Hardware. One is in the Linux Firmware Repository (3B), the other is the one reported by Laurentiu Christian (0W). I hope this approach is acceptable.

A little bit unusual (but not completely out of the way)..., but some remarks inline to the patch...., all in all I think an additional patch (based on my one) would be easier...

Regards,
Peter

Quoted 17 lines
Quoted 14 lines

Regards,
Peter

[2]
https://patchwork.ozlabs.org/project/buildroot/patch/20210329184503.10514-1-ps.report at gmx.net/

Quoted 7 lines

[1]
https://elixir.bootlin.com/linux/v5.10.21/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c#L616
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Kind regards,
Andreas