diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-11-15 21:23:06 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-11-17 01:55:55 +0000 |
commit | 4c67d1e06657c64aee271c3d2ae061d66e2c2fdc (patch) | |
tree | 8e2c93ca9f65ef5aa12bd24c3deba25562254f3c /package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch | |
parent | c0fb12c42e1731b0bd397df3a57d053e32eb4cf9 (diff) | |
download | upstream-4c67d1e06657c64aee271c3d2ae061d66e2c2fdc.tar.gz upstream-4c67d1e06657c64aee271c3d2ae061d66e2c2fdc.tar.bz2 upstream-4c67d1e06657c64aee271c3d2ae061d66e2c2fdc.zip |
uboot-mediatek: optimize MMC erase
Fix mmc_write_vol hush script used by many boards to avoid timeouts on
slow SD cards:
Instead of erasing a complete partition, only erase blocks for the
to-be-written image when writing to MMC.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch')
-rw-r--r-- | package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch b/package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch index 38d4a01894..ff2c3af41f 100644 --- a/package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch +++ b/package/boot/uboot-mediatek/patches/401-update-u7623-defconfig.patch @@ -196,7 +196,7 @@ +emmc_write_recovery=mmc dev 0 0 ; iminfo $loadaddr && part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_write_vol +emmc_read_production=mmc dev 0 0 ; part start mmc 0 $part_default part_addr && part size mmc 0 $part_default part_size && run mmc_read_vol +emmc_read_recovery=mmc dev 0 0 ; part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_read_vol -+mmc_write_vol=imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc erase 0x$part_addr 0x$part_size && mmc write $loadaddr 0x$part_addr 0x$image_size ++mmc_write_vol=imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc erase 0x$part_addr 0x$image_size && mmc write $loadaddr 0x$part_addr 0x$image_size +mmc_read_vol=mmc read $loadaddr $part_addr 0x8 && imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc read $loadaddr 0x$part_addr 0x$image_size && setexpr filesize $image_size * 0x200 +reset_factory=eraseenv && reset +_init_env=setenv _init_env ; saveenv ; saveenv |