From 7ea0f647b9f55a6c945499d9968ba9ef43e7a5f6 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 21 Apr 2025 19:03:58 +0100 Subject: [PATCH] mediatek: mt7622: validate uImage.FIT Validate the uImage.FIT instead of only checking the image magic. Signed-off-by: Daniel Golle --- .../mediatek/mt7622/base-files/lib/upgrade/platform.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh index 9019eb69005..841397d4ef8 100755 --- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh @@ -69,11 +69,8 @@ platform_check_image() { return $? ;; *) - [ "$magic" != "d00dfeed" ] && { - echo "Invalid image type." - return 1 - } - return 0 + fit_check_image "$1" + return $? ;; esac