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