[U-Boot] [PATCH V2] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot

Jens Scharsig (BuS Elektronik) esw at bus-elektronik.de
Thu Sep 19 08:00:41 CEST 2013


From: "Jens Scharsig (BuS Elektronik)" <esw at bus-elektronik.de>

Since UBIFS is enabled for cpux9k2, more malloc space is needed.
For the current uboot 2013.10-rcX the size is to small, this will fix the
startup problems by increasing the mallog space to 4MiB.

Signed-off-by: Jens Scharsig (BuS Elektronik) <esw at bus-elektronik.de>
---
 include/configs/eb_cpux9k2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/eb_cpux9k2.h b/include/configs/eb_cpux9k2.h
index ccc7bd0..b8e672f 100644
--- a/include/configs/eb_cpux9k2.h
+++ b/include/configs/eb_cpux9k2.h
@@ -83,7 +83,7 @@
  * Size of malloc() pool
  */
 
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 520*1024)
+#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
 
 /*
  * sdram
-- 
1.8.1.4



More information about the U-Boot mailing list