Skip to contentSkip to conversation

arm:trats: Increase malloc pool size (for DFU ext4 transfers)

PATCH New Lukasz Majewski 2 participants 2 messages Jun 28, 2013 – Jul 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm:trats: Increase malloc pool size (for DFU ext4 transfers)

Commit:
dfu: make data buffer size configurable
SHA1: 89a72b2e0e141042c9109185e02d39b2107ffc62

replaced statically allocated buffers with one allocated with memalign.

Malloc pool size of 1MiB was too small, since we needed bigger buffer to transfer for example uImage.

---
 include/configs/trats.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/trats.h +1 -1
index 53fcf79..90562c4 100644
@@ -66,7 +66,7 @@
 #define CONFIG_MACH_TYPE		MACH_TYPE_TRATS
 
 /* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (1 << 20))
+#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (16 << 20))
 
 /* select serial console configuration */
 #define CONFIG_SERIAL2			/* use SERIAL 2 */
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 arm:trats: Increase malloc pool size (for DFU ext4 transfers)

Quoted 21 lines · Lukasz Majewski

Commit:
dfu: make data buffer size configurable
SHA1: 89a72b2e0e141042c9109185e02d39b2107ffc62

replaced statically allocated buffers with one allocated with memalign.

Malloc pool size of 1MiB was too small, since we needed bigger buffer to transfer for example uImage.

---
 include/configs/trats.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/trats.h +0 -0
index 53fcf79..90562c4 100644

include/configs/trats.h line 72

Quoted 8 lines
include/configs/trats.h +1 -1
@@ -66,7 +66,7 @@
 #define CONFIG_MACH_TYPE		MACH_TYPE_TRATS
 
 /* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (1 << 20))
+#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (16 << 20))
 
 /* select serial console configuration */
 #define CONFIG_SERIAL2			/* use SERIAL 2 */

applied to u-boot-samsung.

Thanks,
Minkyu Kang.