U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] powerpc/83xx: increment malloc heap size for the MPC832x MDS boards
@ 2012-03-17 22:44 Timur Tabi
  2012-03-17 23:19 ` Wolfgang Denk
  2012-06-15 21:46 ` Kim Phillips
  0 siblings, 2 replies; 7+ messages in thread
From: Timur Tabi @ 2012-03-17 22:44 UTC (permalink / raw)
  To: u-boot

The malloc buffer is not large enough to hold a flash sector (0x20000 bytes)
in addition to whatever else it normally holds, so double its size.  This
fixes a failure trying to save the environment:

=> save
Saving Environment to Flash...
Unable to save the rest of sector (122880)
. done
Protected 1 sectors

This problem probably surfaced from some other change that significantly
increased the normal memory usage, thereby not leaving enough room for
the saveenv command.

Signed-off-by: Timur Tabi <timur@freescale.com>
---
 include/configs/MPC832XEMDS.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/configs/MPC832XEMDS.h b/include/configs/MPC832XEMDS.h
index 4ed5a97..6f8622c 100644
--- a/include/configs/MPC832XEMDS.h
+++ b/include/configs/MPC832XEMDS.h
@@ -181,7 +181,7 @@
 
 /* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
 #define CONFIG_SYS_MONITOR_LEN	(384 * 1024)	/* Reserve 384 kB for Mon */
-#define CONFIG_SYS_MALLOC_LEN	(128 * 1024)	/* Reserved for malloc */
+#define CONFIG_SYS_MALLOC_LEN	(256 * 1024)	/* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-15 21:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-17 22:44 [U-Boot] [PATCH] powerpc/83xx: increment malloc heap size for the MPC832x MDS boards Timur Tabi
2012-03-17 23:19 ` Wolfgang Denk
2012-03-17 23:28   ` Tabi Timur-B04825
2012-03-18  9:07     ` Wolfgang Denk
2012-03-20 18:40       ` Scott Wood
2012-03-20 19:03         ` Wolfgang Denk
2012-06-15 21:46 ` Kim Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox