[U-Boot] [PATCH 3/3] km_arm: call 'sf release' in the newenv and update scripts
Valentin Longchamp
valentin.longchamp at keymile.com
Tue Sep 17 08:46:19 CEST 2013
This is necessary to make sure that all the pins used for SPI access,
especially the CS, are configured back to the NAND Flash interface.
Otherwise, if either newenv or update are called, u-boot cannot access
the NAND Flash anymore.
Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
---
include/configs/km/km_arm.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index e0368cb..3304315 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -269,13 +269,15 @@ int get_scl(void);
#define CONFIG_KM_UPDATE_UBOOT \
"update=" \
"sf probe 0;sf erase 0 +${filesize};" \
- "sf write ${load_addr_r} 0 ${filesize};\0"
+ "sf write ${load_addr_r} 0 ${filesize};" \
+ "sf release\0"
#if defined CONFIG_KM_ENV_IS_IN_SPI_NOR
#define CONFIG_KM_NEW_ENV \
"newenv=sf probe 0;" \
"sf erase " __stringify(CONFIG_ENV_OFFSET) " " \
- __stringify(CONFIG_ENV_TOTAL_SIZE)"\0"
+ __stringify(CONFIG_ENV_TOTAL_SIZE)";" \
+ "sf release\0"
#else
#define CONFIG_KM_NEW_ENV \
"newenv=setenv addr 0x100000 && " \
--
1.8.0.1
More information about the U-Boot
mailing list