All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: imx: dh-imx6: Increase SF erase area for u-boot update
@ 2022-08-12 20:59 Marek Vasut
  2022-09-18 20:41 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2022-08-12 20:59 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Christoph Niedermaier, Fabio Estevam, Stefano Babic

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>
---
Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
---
 include/configs/dh_imx6.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h
index 79424647f61..0f7e1c5c451 100644
--- a/include/configs/dh_imx6.h
+++ b/include/configs/dh_imx6.h
@@ -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
 
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-18 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 20:59 [PATCH] ARM: imx: dh-imx6: Increase SF erase area for u-boot update Marek Vasut
2022-09-18 20:41 ` sbabic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.