From: Valentin Longchamp Date: Fri, 25 May 2012 01:57:21 +0000 (+0000) Subject: km_arm: use filesize for erase in update command X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a0fb94f9ed865ff8073b4d493918cb78411de2b1;p=project%2Fbcm63xx%2Fu-boot.git 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 cc: Holger Brunck cc: Gerlando Falauto cc: Prafulla Wadaskar --- diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h index 43a0efb426..4a0b80e292 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"