2021-08-16 15:42:56 +00:00
|
|
|
RAMFS_COPY_BIN='fw_printenv fw_setenv strings'
|
2017-07-10 16:16:23 +00:00
|
|
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
|
|
|
|
2017-12-28 08:22:45 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2015-11-10 00:16:42 +00:00
|
|
|
|
2017-12-28 08:22:45 +00:00
|
|
|
platform_check_image() {
|
2018-01-17 13:03:50 +00:00
|
|
|
return 0
|
2015-11-10 00:16:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
platform_do_upgrade() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board="$(board_name)"
|
2015-11-10 00:16:42 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2021-08-16 15:42:56 +00:00
|
|
|
ctera,c200-v1)
|
|
|
|
part=$(find_mtd_part "active_bank")
|
|
|
|
|
|
|
|
if [ -n "$part" ]; then
|
|
|
|
CI_KERNPART="$(strings $part | grep bank)"
|
|
|
|
nand_do_upgrade "$1"
|
|
|
|
else
|
|
|
|
echo "active_bank partition missed!"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
;;
|
2020-06-12 22:36:01 +00:00
|
|
|
linksys,e4200-v2|\
|
|
|
|
linksys,ea3500|\
|
|
|
|
linksys,ea4500)
|
2019-07-14 17:03:19 +00:00
|
|
|
platform_do_upgrade_linksys "$1"
|
2015-11-10 00:16:42 +00:00
|
|
|
;;
|
2016-12-30 10:55:16 +00:00
|
|
|
*)
|
2019-07-14 17:03:19 +00:00
|
|
|
nand_do_upgrade "$1"
|
2016-03-14 17:06:09 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|