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