Patchwork [U-Boot] arm:trats: Increase malloc pool size (for DFU ext4 transfers)

login
register
mail settings
Submitter Łukasz Majewski
Date June 28, 2013, 4:43 p.m.
Message ID <1372437833-24217-1-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/255474/
State Accepted
Delegated to: Minkyu Kang
Headers show

Comments

Łukasz Majewski - June 28, 2013, 4:43 p.m.
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.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
---
 include/configs/trats.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Minkyu Kang - July 5, 2013, 9:47 a.m.
On 29/06/13 01:43, Lukasz Majewski wrote:
> 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.
> 
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> ---
>  include/configs/trats.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/trats.h b/include/configs/trats.h
> index 53fcf79..90562c4 100644
> --- a/include/configs/trats.h
> +++ b/include/configs/trats.h
> @@ -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.

Patch

diff --git a/include/configs/trats.h b/include/configs/trats.h
index 53fcf79..90562c4 100644
--- a/include/configs/trats.h
+++ b/include/configs/trats.h
@@ -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 */