diff options
author | Valentin Longchamp <valentin.longchamp@keymile.com> | 2012-05-25 01:57:21 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 12:07:31 (GMT) |
commit | a0fb94f9ed865ff8073b4d493918cb78411de2b1 (patch) | |
tree | 51584244c7fa44a3166d051cb206c41807424d04 /include/configs/km | |
parent | 002ec08d6d4e6bc32ac8f5d35ea4fbbc1f9138ab (diff) | |
download | u-boot-a0fb94f9ed865ff8073b4d493918cb78411de2b1.tar.xz |
km_arm: use filesize for erase in update command
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@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'include/configs/km')
-rw-r--r-- | 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 43a0efb..4a0b80e 100644 --- a/include/configs/km/km_arm.h +++ b/include/configs/km/km_arm.h @@ -241,7 +241,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" |