ath79: routerstation: prepare to use sysupgrade-tar format image
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Mon, 4 Mar 2019 14:14:18 +0000 (15:14 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 18 Mar 2019 19:43:09 +0000 (20:43 +0100)
commit8f6f2603029726e62f0fae49c03684472fed2b3d
tree2f677c93b7fa4b02bbbf6e6ceaa4fa750d9b8f56
parentf3da2ebf90f74aee9b7840e34bff16292be8d712
ath79: routerstation: prepare to use sysupgrade-tar format image

In PR [1] introducing initial support for Ubiquiti RouterStation boards,
Mathias Kresin suggested to replace the combined sysupgrade image with
tarball generated by sysupgrade-tar.sh. This would simplify deployment
of sysupgrade as the kernel size (needed to update FIS partition) could
be simply calculated on the fly instead of reading value from combined
image header. Unfortunately this would break sysupgrade compatibility
between ar71xx image and ath79 image. Therefore this commit creates
migration path to use new sysuprade image, it adds code to accept both
of them at this moment. The plan is to keep it until new stable version
is released. Then the image recipe should be changed to new format and
compatibility code for old image removed.

1. https://github.com/openwrt/openwrt/pull/1237

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
target/linux/ath79/base-files/lib/upgrade/platform.sh
target/linux/ath79/image/generic-ubnt.mk