ath79: move image check for devices with RedBoot
authorTomasz Maciej Nowak <tmn505@gmail.com>
Mon, 4 Jul 2022 12:23:04 +0000 (14:23 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 15 Jul 2022 13:22:08 +0000 (15:22 +0200)
commit94530067adb6e91fdf1e94474e067ec68fd29bf1
tree83ee589d16f37e57253749b777aa2a06c5134cf7
parent8e09f9ffc3cc67d2e64984ad463ce677ae9d9cca
ath79: move image check for devices with RedBoot

Don't comence the switch to RAMFS when the image format is wrong. This
led to rebooting the device, which could lead to false impression that
upgrade succeded.
Being here, factor out the code responsible for upgrading RedBoot
devices to separate file.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(cherry picked from commit 5897c52e78e3cd3846db083d48dd9d6b47ff3a08)
target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
target/linux/ath79/generic/base-files/lib/upgrade/redboot-fis.sh [new file with mode: 0644]