ramips: add image checks

As long as we can't enforce image metadata, we need to use (platform)
image checks to have at least soem kind of validation.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
Chen Minqiang 2018-01-11 23:43:09 +08:00 committed by Mathias Kresin
parent 16f2befc3c
commit a8054d83dc

View file

@ -264,9 +264,11 @@ platform_check_image() {
;; ;;
hc5962|\ hc5962|\
mir3g|\ mir3g|\
r6220) r6220|\
# these boards use metadata images ubnt-erx|\
return 0 ubnt-erx-sfp)
nand_do_platform_check "$board" "$1"
return $?;
;; ;;
re350-v1) re350-v1)
[ "$magic" != "01000000" ] && { [ "$magic" != "01000000" ] && {
@ -275,11 +277,6 @@ platform_check_image() {
} }
return 0 return 0
;; ;;
ubnt-erx|\
ubnt-erx-sfp)
nand_do_platform_check "$board" "$1"
return $?;
;;
wcr-1166ds|\ wcr-1166ds|\
wsr-1166) wsr-1166)
[ "$magic" != "48445230" ] && { [ "$magic" != "48445230" ] && {