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, 13 Dec 2021 07:53:00 +0000 (08:53 +0100)
commit5f05795aa7716879e46fabbd0c51ff20ef9f13bf
treeb173db27a9e21dcc0b83ab931a4cad195bd9db15
parenta2cf659ad8ecbc5be6b0fca4efd29441e1a13be1
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>
target/linux/bcm4908/base-files/lib/upgrade/platform.sh