bcm4908: add sysupgrade support
authorRafał Miłecki <rafal@milecki.pl>
Wed, 7 Apr 2021 12:14:57 +0000 (14:14 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Apr 2021 11:16:13 +0000 (13:16 +0200)
commita5d457a0f4f006f42237fd38e25b20855cfa0740
tree52b1208a27d68ebe08d6560789efcf40ad68b09e
parentb7ffeef9249ccaca672f8483b9b19befd752cea3
bcm4908: add sysupgrade support

It supports flashing OpenWrt images (bootfs & UBI upgrade) as well as
vendor images (whole MTD partition write).

Upgrading cferom is unsupported. It requires copying device specific
data (like MAC) to target image before flashing.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a6a0b252baa6c19dfc62611ea910b56527ce4fa5)
target/linux/bcm4908/base-files/lib/upgrade/platform.sh [new file with mode: 0644]