Преглед изворни кода

mediatek: mt7623: validate uImage.FIT

Validate the uImage.FIT instead of only checking the image magic.

Signed-off-by: Daniel Golle <[email protected]>
Daniel Golle пре 10 месеци
родитељ
комит
493b0cd817
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      target/linux/mediatek/mt7623/base-files/lib/upgrade/platform.sh

+ 2 - 4
target/linux/mediatek/mt7623/base-files/lib/upgrade/platform.sh

@@ -123,10 +123,8 @@ platform_check_image() {
 	case "$(board_name)" in
 	bananapi,bpi-r2|\
 	unielec,u7623-02)
-		[ "$magic" != "d00dfeed" ] && {
-			echo "Invalid image type."
-			return 1
-		}
+		fit_check_image "$1"
+		return $?
 		;;
 	unielec,u7623-02-emmc-512m)
 		# Can always upgrade to the new-style full image