[U-Boot] [PATCH 9/9] km_arm: use filesize for erase in update command

Holger Brunck holger.brunck at keymile.com
Fri May 25 13:57:21 CEST 2012


From: Valentin Longchamp <valentin.longchamp at keymile.com>

We used to have an arbitrary value, which can be a problem if we have a
u-boot image that is bigger than this value.

This patch is dependant on the whole km/arm series and will be included
in the v3 of the series if there is one.

Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
cc: Holger Brunck <holger.brunck at keymile.com>
cc: Gerlando Falauto <gerlando.falauto at keymile.com>
cc: Prafulla Wadaskar <prafulla at marvell.com>
---
 include/configs/km/km_arm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 36eb765..eb60d29 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -237,7 +237,7 @@ int get_scl(void);
 
 #define	CONFIG_KM_UPDATE_UBOOT						\
 	"update="							\
-		"spi on;sf probe 0;sf erase 0 50000;"			\
+		"spi on;sf probe 0;sf erase 0 +${filesize};"		\
 		"sf write ${load_addr_r} 0 ${filesize};"		\
 		"spi off\0"
 
-- 
1.7.1



More information about the U-Boot mailing list