diff options
author | Marek Vasut <marex@denx.de> | 2022-09-28 18:45:18 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-10-21 11:54:13 +0200 |
commit | 39236acb0d97074618f4110f01ab20cfc246cec0 (patch) | |
tree | 26dd4a9b1c3fdd1c5a6a2a4b9c030eef8f3e2e4a /include/configs/dh_imx6.h | |
parent | 07e02b81cfc6cb9d20807581766eebf31f9092ad (diff) | |
download | u-boot-39236acb0d97074618f4110f01ab20cfc246cec0.tar.gz |
ARM: imx6: dh-imx6: Use sf update instead of sf erase and write
With sf update fixed to support unaligned start offset, use plain
sf update to update the bootloader in SPI NOR. This also helps
avoid the case where not enough SPI NOR has been erased and the
bootloader has been written to unerased area, and thus corrupted.
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs/dh_imx6.h')
-rw-r--r-- | include/configs/dh_imx6.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index 0f7e1c5c451..2040deb2b87 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -60,8 +60,7 @@ "fdtfile=imx6q-dhcom-pdk2.dtb\0"\ "update_sf=" /* Erase SPI NOR and install U-Boot from SD */ \ "load mmc 0:1 ${loadaddr} /boot/u-boot-with-spl.imx && "\ - "sf probe && sf erase 0x0 0x100000 && " \ - "sf write ${loadaddr} 0x400 ${filesize}\0" \ + "sf probe && sf update ${loadaddr} 0x400 ${filesize}\0" \ BOOTENV #define BOOT_TARGET_DEVICES(func) \ |