2021-08-16 17:42:56 +02:00
|
|
|
RAMFS_COPY_BIN='fw_printenv fw_setenv strings'
|
2017-07-10 18:16:23 +02:00
|
|
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
|
|
|
|
2022-01-01 21:00:36 +09:00
|
|
|
PART_NAME=firmware
|
2017-12-28 09:22:45 +01:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2015-11-10 00:16:42 +00:00
|
|
|
|
2017-12-28 09:22:45 +01:00
|
|
|
platform_check_image() {
|
2020-08-30 22:26:14 +02:00
|
|
|
local board="$(board_name)"
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
netgear,readynas-duo-v2)
|
|
|
|
# let's store how rootfs is mounted
|
|
|
|
cp /proc/mounts /tmp/mounts
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
2015-11-10 00:16:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
platform_do_upgrade() {
|
2017-05-12 22:36:07 +02:00
|
|
|
local board="$(board_name)"
|
2015-11-10 00:16:42 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2021-08-16 17:42:56 +02: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
|
|
|
|
;;
|
2022-01-01 21:00:36 +09:00
|
|
|
iptime,nas1)
|
|
|
|
default_do_upgrade "$1"
|
|
|
|
;;
|
2020-06-13 00:36:01 +02:00
|
|
|
linksys,e4200-v2|\
|
|
|
|
linksys,ea3500|\
|
|
|
|
linksys,ea4500)
|
2019-07-14 19:03:19 +02:00
|
|
|
platform_do_upgrade_linksys "$1"
|
2015-11-10 00:16:42 +00:00
|
|
|
;;
|
2016-12-30 11:55:16 +01:00
|
|
|
*)
|
2019-07-14 19:03:19 +02:00
|
|
|
nand_do_upgrade "$1"
|
2016-03-14 17:06:09 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|