[U-Boot] [PATCH v6 10/10] tegra-common: increase malloc pool len by dfu mmc file buffer size

Przemyslaw Marczak p.marczak at samsung.com
Wed Mar 4 14:01:30 CET 2015


The dfu mmc file buffer, which was static, now is allocated
by memalign(), so the malloc pool len should be also increased.

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
Cc: Tom Warren <twarren.nvidia at gmail.com>

---
Changes v6:
- new commit
---
 include/configs/tegra-common.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index 005fc6a..3e86f6c 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -36,7 +36,12 @@
 /*
  * Size of malloc() pool
  */
+#ifdef CONFIG_DFU_MMC
+#define CONFIG_SYS_MALLOC_LEN		((4 << 20) + \
+					CONFIG_SYS_DFU_DATA_BUF_SIZE)
+#else
 #define CONFIG_SYS_MALLOC_LEN		(4 << 20)	/* 4MB  */
+#endif
 
 #define CONFIG_SYS_NONCACHED_MEMORY	(1 << 20)       /* 1 MiB */
 
-- 
1.9.1



More information about the U-Boot mailing list