[U-Boot] [PATCH v2 3/3] km_arm: call 'sf release' in the newenv and update scripts
Valentin Longchamp
valentin.longchamp at keymile.com
Mon Nov 3 15:01:11 CET 2014
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>
---
Changes in v2: None
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 d31e674..d8f86b4 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -273,13 +273,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