[openwrt/openwrt] mediatek: filogic: fix supported_devices list for gl-mt2500

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 30 14:05:54 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/dcf11c832a95595e6b919b88d6cd649bd9343a1f

commit dcf11c832a95595e6b919b88d6cd649bd9343a1f
Author: Eric Fahlgren <ericfahlgren at gmail.com>
AuthorDate: Mon Nov 3 12:34:37 2025 -0800

    mediatek: filogic: fix supported_devices list for gl-mt2500
    
    The SUPPORTED_DEVICES sets for both Maxlinear (v1) and Airoha (v2)
    devices were identical, so sysupgrade was unable to detect when an
    incorrect image was being installed.  This caused "soft bricking" of
    devices when a v1 image was installed on a v2 device, and vice versa.
    
    Fix this by making the supported_devices distinct for each device
    version, by renaming the devices with a version-specific name.
    This is reflected in the file name and the image metadata.
    
    Fixes: https://github.com/openwrt/openwrt/issues/20566
    Fixes: https://github.com/openwrt/asu/issues/1525
    Signed-off-by: Eric Fahlgren <ericfahlgren at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/20632
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit b71f4665cda10c284c9460409ae30fb9b0beecf8)
---
 target/linux/mediatek/image/filogic.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index e33f8a3aec..fda38fbec2 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -980,7 +980,7 @@ define Device/glinet_gl-mt2500
   DEVICE_DTS_DIR := ../dts
   DEVICE_DTS_LOADADDR := 0x47000000
   DEVICE_PACKAGES := -wpad-basic-mbedtls e2fsprogs f2fsck mkf2fs kmod-usb3
-  SUPPORTED_DEVICES += glinet,mt2500-emmc glinet,gl-mt2500-airoha
+  SUPPORTED_DEVICES += glinet,mt2500-emmc
   IMAGES := sysupgrade.bin
   IMAGE/sysupgrade.bin := sysupgrade-tar | append-gl-metadata
 endef
@@ -994,7 +994,7 @@ define Device/glinet_gl-mt2500-airoha
   DEVICE_DTS_DIR := ../dts
   DEVICE_DTS_LOADADDR := 0x47000000
   DEVICE_PACKAGES := -wpad-basic-mbedtls e2fsprogs f2fsck mkf2fs kmod-usb3 kmod-phy-airoha-en8811h airoha-en8811h-firmware
-  SUPPORTED_DEVICES += glinet,mt2500-emmc glinet,gl-mt2500
+  SUPPORTED_DEVICES += glinet,mt2500-emmc
   IMAGES := sysupgrade.bin
   IMAGE/sysupgrade.bin := sysupgrade-tar | append-gl-metadata
 endef




More information about the lede-commits mailing list