mediatek: mt7622: bpi-r64: rewrite MMC uImage.FIT sysupgrade master
authorDaniel Golle <daniel@makrotopia.org>
Fri, 12 Nov 2021 14:54:52 +0000 (14:54 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 12 Nov 2021 15:03:07 +0000 (15:03 +0000)
commit8fd0268b5f346fba26329c73225c3c425f2658eb
treedb3c7bf3d9519d30d15c7db1b85feb37001fed2e
parentc3c67fe7b1fbfc9b08e1a2d056b120aa63ef4145
mediatek: mt7622: bpi-r64: rewrite MMC uImage.FIT sysupgrade

Similar to mt7623, also no longer use 'blockdev' and stop relying on
in-kernel partition parsers. Instead, strip off all metadata using
'fwtool' while writing the firmware image and scrape the number of
blocks written from 'dd', then use that block offset to stash the
configuration backup.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
target/linux/mediatek/mt7622/target.mk