From d749bb70b4f94e5c52b4f4583c53b7569f7688f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Mon, 12 May 2025 17:20:57 +0200 Subject: [PATCH] Add device-specific symlinks for WiFi firmware on Yellow (#4058) Because we use custom compatible strings in Yellow DTS's, the firmware loader first attempts to load a firmware with this compatible in its name. Because it doesn't exists, it shows error like this one before falling back to a more generic one: brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.bin failed with error -2 While these errors are mostly harmless, add symlinks with our compatible in the name to suppress them. Instead of patching upstream package/brcmfmac_sdio-firmware-rpi which installs the firmware files, add them to yellow overlay to make maintenance easier. --- ...brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.bin | 1 + ...mac43455-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob | 1 + ...brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.txt | 1 + ...brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.bin | 1 + ...mac43455-sdio.raspberrypi,5-compute-module-ha-yellow.clm_blob | 1 + ...brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.txt | 1 + ...brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.bin | 1 + ...mac43456-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob | 1 + ...brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.txt | 1 + 9 files changed, 9 insertions(+) create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.bin create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.txt create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.bin create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.clm_blob create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.txt create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.bin create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob create mode 120000 buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.txt diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.bin b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.bin new file mode 120000 index 000000000..9c392080f --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.bin @@ -0,0 +1 @@ +../cypress/cyfmac43455-sdio.bin \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob new file mode 120000 index 000000000..0ebe01506 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob @@ -0,0 +1 @@ +../cypress/cyfmac43455-sdio.clm_blob \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.txt b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.txt new file mode 120000 index 000000000..2aba486e0 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module-ha-yellow.txt @@ -0,0 +1 @@ +brcmfmac43455-sdio.txt \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.bin b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.bin new file mode 120000 index 000000000..9c392080f --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.bin @@ -0,0 +1 @@ +../cypress/cyfmac43455-sdio.bin \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.clm_blob b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.clm_blob new file mode 120000 index 000000000..0ebe01506 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.clm_blob @@ -0,0 +1 @@ +../cypress/cyfmac43455-sdio.clm_blob \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.txt b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.txt new file mode 120000 index 000000000..2aba486e0 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,5-compute-module-ha-yellow.txt @@ -0,0 +1 @@ +brcmfmac43455-sdio.txt \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.bin b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.bin new file mode 120000 index 000000000..a8909e119 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.bin @@ -0,0 +1 @@ +brcmfmac43456-sdio.bin \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob new file mode 120000 index 000000000..ec7513b10 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.clm_blob @@ -0,0 +1 @@ +brcmfmac43456-sdio.clm_blob \ No newline at end of file diff --git a/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.txt b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.txt new file mode 120000 index 000000000..94cd555b2 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/rootfs-overlay/usr/lib/firmware/brcm/brcmfmac43456-sdio.raspberrypi,4-compute-module-ha-yellow.txt @@ -0,0 +1 @@ +brcmfmac43456-sdio.txt \ No newline at end of file