2015-09-04 14:45:00 +00:00
|
|
|
PART_NAME=firmware
|
2016-11-14 16:32:04 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2015-09-04 14:45:00 +00:00
|
|
|
|
2017-07-10 16:37:25 +00:00
|
|
|
RAMFS_COPY_BIN='fw_printenv fw_setenv'
|
2017-07-10 16:03:39 +00:00
|
|
|
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
|
|
|
|
|
2015-09-04 14:45:00 +00:00
|
|
|
platform_check_image() {
|
2016-11-20 19:06:15 +00:00
|
|
|
return 0;
|
2015-09-04 14:45:00 +00:00
|
|
|
}
|
|
|
|
|
2017-07-10 16:03:39 +00:00
|
|
|
platform_do_upgrade() {
|
2017-05-12 20:36:07 +00:00
|
|
|
case "$(board_name)" in
|
2018-01-05 13:00:11 +00:00
|
|
|
netgear,d7800 |\
|
|
|
|
netgear,r7500 |\
|
|
|
|
netgear,r7500v2 |\
|
|
|
|
netgear,r7800 |\
|
|
|
|
qcom,ap-dk04.1-c1 |\
|
|
|
|
qcom,ipq8064-ap148 |\
|
|
|
|
zyxel,nbg6817)
|
2017-07-10 16:03:39 +00:00
|
|
|
nand_do_upgrade "$ARGV"
|
2016-05-13 06:13:15 +00:00
|
|
|
;;
|
2018-01-05 13:00:11 +00:00
|
|
|
tplink,c2600)
|
2016-05-27 14:26:42 +00:00
|
|
|
PART_NAME="os-image:rootfs"
|
|
|
|
MTD_CONFIG_ARGS="-s 0x200000"
|
|
|
|
default_do_upgrade "$ARGV"
|
|
|
|
;;
|
2018-01-05 13:00:11 +00:00
|
|
|
linksys,ea8500)
|
2016-05-13 06:13:15 +00:00
|
|
|
platform_do_upgrade_linksys "$ARGV"
|
|
|
|
;;
|
2018-01-05 13:00:11 +00:00
|
|
|
tplink,vr2600v)
|
2016-11-23 17:51:15 +00:00
|
|
|
PART_NAME="kernel:rootfs"
|
|
|
|
MTD_CONFIG_ARGS="-s 0x200000"
|
|
|
|
default_do_upgrade "$ARGV"
|
|
|
|
;;
|
2017-03-14 16:04:28 +00:00
|
|
|
*)
|
|
|
|
default_do_upgrade "$ARGV"
|
|
|
|
;;
|
2016-05-27 14:26:42 +00:00
|
|
|
esac
|
|
|
|
}
|
2016-09-30 19:36:50 +00:00
|
|
|
|
2016-10-25 06:40:36 +00:00
|
|
|
platform_nand_pre_upgrade() {
|
2017-05-12 20:36:07 +00:00
|
|
|
case "$(board_name)" in
|
2018-01-05 13:00:11 +00:00
|
|
|
zyxel,nbg6817)
|
2016-10-25 06:40:36 +00:00
|
|
|
zyxel_do_upgrade "$1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2016-09-30 19:36:50 +00:00
|
|
|
blink_led() {
|
|
|
|
. /etc/diag.sh; set_state upgrade
|
|
|
|
}
|
|
|
|
|
|
|
|
append sysupgrade_pre_upgrade blink_led
|