mediatek: mt7623: prepare for full sysupgrade support on UniElec U7623
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 20 Jul 2020 20:10:04 +0000 (21:10 +0100)
committerChuanhong Guo <gch981213@gmail.com>
Sun, 26 Jul 2020 08:42:36 +0000 (16:42 +0800)
commit29fa5526a2ba5882cf0159b03998e29194c1f190
tree8c46e470fa3b38a6bff1f983987964c0a6ec94e1
parent7a1eaa446b07ebf516a43db609ccbf169baadcae
mediatek: mt7623: prepare for full sysupgrade support on UniElec U7623

An upcoming commit will add a full system image for U7623 which will
contain the MBR partition table and U-Boot too.

That contrasts with the current image which only owns the eMMC from
sector 0xa00 onwards, and must start with a legacy uImage.

Prepare for sysupgrade to the new images, and cope with the fact that
the recovery partition will be /dev/mmcblk0p2 instead of /dev/mmcblk0p1
after the upgrade.

This commit could potentially be backported to 19.07 to allow for direct
sysupgrade to the new image layout.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
target/linux/mediatek/mt7623/base-files/lib/preinit/79_move_config
target/linux/mediatek/mt7623/base-files/lib/upgrade/platform.sh