From 105613b8c4ca7c59453d2cfd010ed10278f57d0d Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 12 Sep 2026 21:42:11 +0200 Subject: [PATCH] gl-mt2500-v2: stop shipping Airoha firmware in the BSP armbian-firmware has carried airoha/EthMD32.{dm,DSP}.bin since armbian/firmware 2a9e1c19 ("airoha: add EN8811H 2.5G PHY firmware", 2026-09-10). This board config has been downloading the same two files into the bsp-cli package since it was added on 2026-09-04, so from the 10th onwards two packages claimed the same paths and dpkg refused the unpack: dpkg: error processing archive armbian-bsp-cli-gl-mt2500-v2-edge...deb (--unpack): trying to overwrite '/lib/firmware/airoha/EthMD32.dm.bin', which is also in package armbian-firmware (26.11.0-trunk.44) Every Gl-mt2500-v2 image build has failed there since. Drop the download hook entirely -- firmware and licence both. armbian-firmware provides the firmware now, and the licence belongs with whoever ships the blobs rather than with a board package that no longer does. That also drops this board's build-time dependency on a GitLab API endpoint. The initramfs hook is unchanged and still pulls both files in, just from armbian-firmware instead of from this package. gl-mt2500-v2 is the only board config that shipped airoha firmware, so nothing else needs the same treatment. Signed-off-by: Igor Pecovnik --- config/boards/gl-mt2500-v2.csc | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/config/boards/gl-mt2500-v2.csc b/config/boards/gl-mt2500-v2.csc index 44eb2dc6a745..c6b8e3238e56 100644 --- a/config/boards/gl-mt2500-v2.csc +++ b/config/boards/gl-mt2500-v2.csc @@ -13,37 +13,6 @@ SRC_EXTLINUX="yes" SRC_CMDLINE="console=ttyS0,115200n8 rootwait rootdelay=10 cgroup_enable cgroup_memory=1 init=/sbin/init" HAS_VIDEO_OUTPUT="no" -function post_family_tweaks_bsp__gl_mt2500_v2_airoha_firmware() { - display_alert "Adding to bsp-cli" "${BOARD}: Airoha EN8811H firmware" "info" - local firmware_commit="458e40fdbb4dad5134ec230a42df21aea1b5baf8" - local firmware_base_url="https://gitlab.com/api/v4/projects/48890189/repository/files" - local firmware_destination="${destination}/lib/firmware/airoha" - local license_destination="${destination}/usr/share/doc/armbian-bsp-cli-gl-mt2500-v2" - local -a firmware_names=("EthMD32.dm.bin" "EthMD32.DSP.bin") - local -a firmware_sha256=( - "874982b88330112c376e484cdce114cf2e1476ccbb901c87f80882f127ffb90f" - "3e4699ec709c836d5fce7c91bc5d205beb54aea326c4b70c7050b355784cbebd" - ) - local index firmware_file - - run_host_command_logged mkdir -pv "${firmware_destination}" "${license_destination}" - for index in "${!firmware_names[@]}"; do - firmware_file="${firmware_destination}/${firmware_names[index]}" - run_host_command_logged curl -fLo "${firmware_file}" --retry 5 --retry-all-errors \ - --retry-delay 2 --connect-timeout 30 --max-time 300 \ - "${firmware_base_url}/airoha%2F${firmware_names[index]}/raw?ref=${firmware_commit}" - echo "${firmware_sha256[index]} ${firmware_file}" | sha256sum -c - || \ - exit_with_error "Checksum validation failed for ${firmware_names[index]}" - done - - local license_file="${license_destination}/LICENSE.airoha" - run_host_command_logged curl -fLo "${license_file}" --retry 5 --retry-all-errors \ - --retry-delay 2 --connect-timeout 30 --max-time 300 \ - "${firmware_base_url}/LICENSES%2FLICENSE.airoha/raw?ref=${firmware_commit}" - echo "ad548ca0ffb91ec655de0f28e13089ef1cd4e0deabb2f15a9289194990e62252 ${license_file}" | \ - sha256sum -c - || exit_with_error "Checksum validation failed for LICENSE.airoha" -} - function post_family_tweaks_bsp__gl_mt2500_v2_airoha_firmware_in_initrd() { display_alert "Adding to bsp-cli" "${BOARD}: Airoha EN8811H firmware in initrd" "info" declare file_added_to_bsp_destination