mediatek: mt7623: validate uImage.FIT
Validate the uImage.FIT instead of only checking the image magic. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
7ea0f647b9
commit
493b0cd817
1 changed files with 2 additions and 4 deletions
|
@ -123,10 +123,8 @@ platform_check_image() {
|
||||||
case "$(board_name)" in
|
case "$(board_name)" in
|
||||||
bananapi,bpi-r2|\
|
bananapi,bpi-r2|\
|
||||||
unielec,u7623-02)
|
unielec,u7623-02)
|
||||||
[ "$magic" != "d00dfeed" ] && {
|
fit_check_image "$1"
|
||||||
echo "Invalid image type."
|
return $?
|
||||||
return 1
|
|
||||||
}
|
|
||||||
;;
|
;;
|
||||||
unielec,u7623-02-emmc-512m)
|
unielec,u7623-02-emmc-512m)
|
||||||
# Can always upgrade to the new-style full image
|
# Can always upgrade to the new-style full image
|
||||||
|
|
Loading…
Reference in a new issue