[openwrt/openwrt] mediatek: filogic: add missing boards to platform_check_image

LEDE Commits lede-commits at lists.infradead.org
Mon Apr 21 08:13:08 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/370a9d55868981609f2b6ad510fd2f2fb4416e51

commit 370a9d55868981609f2b6ad510fd2f2fb4416e51
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Apr 19 03:02:12 2025 +0100

    mediatek: filogic: add missing boards to platform_check_image
    
    Add all boards using uImage.FIT to platform_check_image() case section
    making sure we are dealing with a FIT image.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 .../filogic/base-files/lib/upgrade/platform.sh     | 25 ++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
index c48b6ce60d..622f880604 100755
--- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
@@ -192,17 +192,38 @@ PART_NAME=firmware
 
 platform_check_image() {
 	local board=$(board_name)
-	local magic="$(get_magic_long "$1")"
 
 	[ "$#" -gt 1 ] && return 1
 
 	case "$board" in
+	abt,asr3000|\
 	asus,zenwifi-bt8-ubootmod|\
 	bananapi,bpi-r3|\
 	bananapi,bpi-r3-mini|\
 	bananapi,bpi-r4|\
 	bananapi,bpi-r4-poe|\
-	cmcc,rax3000m)
+	cmcc,a10-ubootmod|\
+	cmcc,rax3000m|\
+	gatonetworks,gdsp|\
+	h3c,magic-nx30-pro|\
+	jcg,q30-pro|\
+	jdcloud,re-cp-03|\
+	mediatek,mt7981-rfb|\
+	mediatek,mt7988a-rfb|\
+	mercusys,mr90x-v1-ubi|\
+	nokia,ea0326gmp|\
+	openwrt,one|\
+	netcore,n60|\
+	qihoo,360t7|\
+	routerich,ax3000-ubootmod|\
+	tplink,tl-xdr4288|\
+	tplink,tl-xdr6086|\
+	tplink,tl-xdr6088|\
+	tplink,tl-xtr8488|\
+	xiaomi,mi-router-ax3000t-ubootmod|\
+	xiaomi,redmi-router-ax6000-ubootmod|\
+	xiaomi,mi-router-wr30u-ubootmod|\
+	zyxel,ex5601-t0-ubootmod)
 		[ "$magic" != "d00dfeed" ] && {
 			echo "Invalid image type."
 			return 1




More information about the lede-commits mailing list