]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: dh-imx6: Increase SF erase area for u-boot update
authorMarek Vasut <marex@denx.de>
Fri, 12 Aug 2022 20:59:10 +0000 (22:59 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 18 Sep 2022 20:56:10 +0000 (22:56 +0200)
Erase the entire U-Boot area during U-Boot update instead of just
a subset of it. This way, in case u-boot-with-spl.imx grows, the
sf write won't write over non-erased part of the SPI NOR.

Signed-off-by: Marek Vasut <marex@denx.de>
include/configs/dh_imx6.h

index 79424647f61805a15bb41779a9da98ec7ca49b8f..0f7e1c5c451621d4fd54df9e3470118863dd4773 100644 (file)
@@ -60,7 +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 0xa0000 && "                  \
+               "sf probe && sf erase 0x0 0x100000 && "                 \
                "sf write ${loadaddr} 0x400 ${filesize}\0"              \
        BOOTENV