ARM: imx: dh-imx6: Increase SF erase area for u-boot update
PATCH 1/1 ARM: imx: dh-imx6: Increase SF erase area for u-boot update
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 <[email protected]>
---
Cc: Christoph Niedermaier <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Stefano Babic <[email protected]>
--- include/configs/dh_imx6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/dh_imx6.h +1 -1
@@ -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
Signature · 1 line
2.35.1
PATCH 1/1 ARM: imx: dh-imx6: Increase SF erase area for u-boot update
Quoted 4 lines
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 <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================