mediatek: make sure MMC is not busy before commencing sysupgrade
authorDaniel Golle <daniel@makrotopia.org>
Wed, 27 Oct 2021 14:30:39 +0000 (15:30 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 28 Oct 2021 15:27:27 +0000 (16:27 +0100)
commit4ae4035e6012c19a5f2931025c09f29d1c1939ae
tree0792587f60911ed223610633caa439a50dc618c7
parentb2aca61360c33ad3161f8ef35a1c28ebb2507600
mediatek: make sure MMC is not busy before commencing sysupgrade

In case of the block device still being in use, re-reading the
partition table fails. In that case, abort sysupgrade to avoid
corrupting the just-written image because of wrong offsets caused
by failure to re-read the partition table.

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