2009-05-18 00:53:57 +08:00
|
|
|
PART_NAME=linux
|
2020-05-15 00:19:35 +08:00
|
|
|
REQUIRE_IMAGE_METADATA=0
|
|
|
|
|
|
2009-05-18 00:53:57 +08:00
|
|
|
platform_check_image() {
|
2014-06-02 20:43:22 +08:00
|
|
|
[ "$#" -gt 1 ] && return 1
|
2020-05-15 00:19:35 +08:00
|
|
|
|
|
|
|
|
case "$(board_name)" in
|
2020-05-19 16:21:46 +08:00
|
|
|
comtrend,vg-8050|\
|
2020-05-19 14:55:06 +08:00
|
|
|
comtrend,vr-3032u|\
|
2020-05-21 00:00:23 +08:00
|
|
|
huawei,hg253s-v2|\
|
2020-05-19 19:29:12 +08:00
|
|
|
netgear,dgnd3700-v2|\
|
2020-06-07 16:55:56 +08:00
|
|
|
sercomm,ad1018|\
|
|
|
|
|
sercomm,h500-s-lowi|\
|
|
|
|
|
sercomm,h500-s-vfes)
|
2020-05-15 00:19:35 +08:00
|
|
|
# NAND sysupgrade
|
|
|
|
|
return 0
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
2009-05-18 00:53:57 +08:00
|
|
|
case "$(get_magic_word "$1")" in
|
2013-02-21 19:45:41 +08:00
|
|
|
3600|3700|3800)
|
2020-05-15 00:19:35 +08:00
|
|
|
# CFE tag versions
|
2009-05-18 00:53:57 +08:00
|
|
|
return 0
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
echo "Invalid image type. Please use only .bin files"
|
|
|
|
|
return 1
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-15 00:19:35 +08:00
|
|
|
platform_do_upgrade() {
|
|
|
|
|
case "$(board_name)" in
|
2020-05-19 16:21:46 +08:00
|
|
|
comtrend,vg-8050|\
|
2020-05-19 14:55:06 +08:00
|
|
|
comtrend,vr-3032u|\
|
2020-05-21 00:00:23 +08:00
|
|
|
huawei,hg253s-v2|\
|
2020-06-16 06:09:33 +08:00
|
|
|
netgear,dgnd3700-v2)
|
|
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2023-06-15 16:53:08 +08:00
|
|
|
CI_JFFS2_CLEAN_MARKERS=1
|
|
|
|
|
nand_do_upgrade "$1"
|
2020-06-16 06:09:33 +08:00
|
|
|
;;
|
2020-06-07 16:55:56 +08:00
|
|
|
sercomm,ad1018|\
|
|
|
|
|
sercomm,h500-s-lowi|\
|
|
|
|
|
sercomm,h500-s-vfes)
|
2020-05-15 00:19:35 +08:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2020-06-16 06:09:33 +08:00
|
|
|
nand_do_upgrade "$1"
|
2020-05-15 00:19:35 +08:00
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
default_do_upgrade "$1"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
}
|