bcm4908: sysupgrade: add pkgtb format support
authorRafał Miłecki <rafal@milecki.pl>
Wed, 8 Dec 2021 11:21:48 +0000 (12:21 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 3 Jan 2022 13:28:13 +0000 (14:28 +0100)
commit608c7dccf27c64ff3c8e09430481b66af18bdaf4
treed3e0d3c629c167c0034b03b078836a59eb1fa907
parentb6ed2641df3c679eced6b51e5aad2e3df1761de1
bcm4908: sysupgrade: add pkgtb format support

BCM4908 devices with U-Boot use pkgtb firmware format. It's based on
U-Boot's FIT: DTB with configurations, images & embedded data.

This format contains bootfs, rootfs and optionally a first stage U-Boot
loader. Contained images need to be extracted & flashed.

Broadcom used two sets of firmwares: main & backup. It uses UBI volumes
"metadata1" & "metadata2" for storing U-Boot env variables with info
about flashed images.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 5f05795aa7716879e46fabbd0c51ff20ef9f13bf)
target/linux/bcm4908/base-files/lib/upgrade/platform.sh