Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspbery Pi: legacy kernel is missing support for CONFIG_FW_LOADER_COMPRESS #7916

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

igorpecovnik
Copy link
Member

@igorpecovnik igorpecovnik commented Mar 6, 2025

Description

Fixing a bug that failed to load some firmware files.

How Has This Been Tested?

https://forum.armbian.com/topic/50287-armbian-unofficial_24110-trunk_rpi4b_jammy_current_6678_minimal-not-fond-wifi/

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... labels Mar 6, 2025
@igorpecovnik igorpecovnik changed the title Raspbery Pi: install our firmware always. Raspberry Pi: install our firmware always. Mar 6, 2025
@pyavitz
Copy link
Collaborator

pyavitz commented Mar 6, 2025

He was using Legacy 6.6.y and that defconfig appears to be missing

CONFIG_FW_LOADER_COMPRESS=y
CONFIG_FW_LOADER_COMPRESS_ZSTD=y

During my discussion with him I asked him to take note of the current firmware installed

UPEX:~# ls -la /lib/firmware/brcm/brcmfmac43455-sdio*
lrwxrwxrwx 1 root root  35 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.bin.zst -> ../cypress/cyfmac43455-sdio.bin.zst
lrwxrwxrwx 1 root root  40 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.clm_blob.zst -> ../cypress/cyfmac43455-sdio.clm_blob.zst
lrwxrwxrwx 1 root root  35 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.bin.zst -> ../cypress/cyfmac43455-sdio.bin.zst
lrwxrwxrwx 1 root root  40 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.clm_blob.zst -> ../cypress/cyfmac43455-sdio.clm_blob.zst
lrwxrwxrwx 1 root root  26 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-a-plus.txt.zst -> brcmfmac43455-sdio.txt.zst
lrwxrwxrwx 1 root root  35 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.bin.zst -> ../cypress/cyfmac43455-sdio.bin.zst
lrwxrwxrwx 1 root root  40 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.clm_blob.zst -> ../cypress/cyfmac43455-sdio.clm_blob.zst
lrwxrwxrwx 1 root root  26 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt.zst -> brcmfmac43455-sdio.txt.zst
lrwxrwxrwx 1 root root  35 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.bin.zst -> ../cypress/cyfmac43455-sdio.bin.zst
lrwxrwxrwx 1 root root  40 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.clm_blob.zst -> ../cypress/cyfmac43455-sdio.clm_blob.zst
lrwxrwxrwx 1 root root  26 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt.zst -> brcmfmac43455-sdio.txt.zst
lrwxrwxrwx 1 root root  35 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin.zst -> ../cypress/cyfmac43455-sdio.bin.zst
lrwxrwxrwx 1 root root  40 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.clm_blob.zst -> ../cypress/cyfmac43455-sdio.clm_blob.zst
lrwxrwxrwx 1 root root  26 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt.zst -> brcmfmac43455-sdio.txt.zst
lrwxrwxrwx 1 root root  35 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.bin.zst -> ../cypress/cyfmac43455-sdio.bin.zst
lrwxrwxrwx 1 root root  40 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.clm_blob.zst -> ../cypress/cyfmac43455-sdio.clm_blob.zst
lrwxrwxrwx 1 root root  26 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.txt.zst -> brcmfmac43455-sdio.txt.zst
-rw-r--r-- 1 root root 972 Apr 10  2024 /lib/firmware/brcm/brcmfmac43455-sdio.txt.zst

So technically the correct firmware was in place, but the kernel didn't support the compression format.

The PR fixes the issue regardless, but now doubles up on the firmware installed. You may want to consider not installing the ubuntu firmware if possible?

@igorpecovnik
Copy link
Member Author

So best way from this to keep INSTALL_ARMBIAN_FIRMWARE=no and enable

CONFIG_FW_LOADER_COMPRESS=y
CONFIG_FW_LOADER_COMPRESS_ZSTD=y

in the legacy (6.6.y) kernel build?

For disabling ubuntu packages I would need to inspect each of one to be sure. Its a bit confusing that this was designed to work with Ubuntu kernel and firmware right from start.

@pyavitz
Copy link
Collaborator

pyavitz commented Mar 6, 2025

So best way from this to keep INSTALL_ARMBIAN_FIRMWARE=no and enable

CONFIG_FW_LOADER_COMPRESS=y CONFIG_FW_LOADER_COMPRESS_ZSTD=y

in the legacy (6.6.y) kernel build?

I think so, yes.

@github-actions github-actions bot added size/medium PR with more then 50 and less then 250 lines and removed size/small PR with less then 50 lines labels Mar 8, 2025
@igorpecovnik igorpecovnik changed the title Raspberry Pi: install our firmware always. Raspbery Pi: legacy kernel is missing support for CONFIG_FW_LOADER_COMPRESS Mar 8, 2025
@igorpecovnik igorpecovnik added Ready to merge Reviewed, tested and ready for merge 05 Milestone: Second quarter release and removed Needs review Seeking for review labels Mar 8, 2025
@github-actions github-actions bot added the Needs review Seeking for review label Mar 8, 2025
@igorpecovnik igorpecovnik merged commit 9d93e0c into main Mar 8, 2025
11 checks passed
@igorpecovnik igorpecovnik deleted the firmfix branch March 8, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
05 Milestone: Second quarter release Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review Ready to merge Reviewed, tested and ready for merge size/medium PR with more then 50 and less then 250 lines
Development

Successfully merging this pull request may close these issues.

2 participants