[U-Boot] [PATCH 6/8] arm/pxa: increase CONFIG_SYS_MALLOC_LEN to (196Kb + space for environment) (v.2)

Mikhail Kshevetskiy mikhail.kshevetskiy at gmail.com
Thu Aug 26 21:24:21 CEST 2010


it looks like u-boot allocates a buffer of CONFIG_ENV_SECT_SIZE
size when making "saveenv" command. In our case CONFIG_ENV_SECT_SIZE
is 128Kb, so having CONFIG_SYS_MALLOC_LEN = 128Kb is not sufficient.

Increase CONFIG_SYS_MALLOC_LEN to (196Kb + space for environment) to
resolve a problem.

v2: rebased against for-wd-master branch

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at gmail.com>
---
 include/configs/vpac270.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h
index bd1b0f6..3ca25bf 100644
--- a/include/configs/vpac270.h
+++ b/include/configs/vpac270.h
@@ -32,7 +32,7 @@
  * Environment settings
  */
 #define	CONFIG_ENV_OVERWRITE
-#define	CONFIG_SYS_MALLOC_LEN		(128*1024)
+#define	CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 196*1024)
 #define	CONFIG_SYS_GBL_DATA_SIZE	128
 
 #define	CONFIG_BOOTCOMMAND						\
-- 
1.7.1



More information about the U-Boot mailing list