* [U-Boot] [PATCH] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot
@ 2013-09-18 14:13 Jens Scharsig
2013-09-18 14:44 ` Andreas Bießmann
0 siblings, 1 reply; 3+ messages in thread
From: Jens Scharsig @ 2013-09-18 14:13 UTC (permalink / raw)
To: u-boot
From: "Jens Scharsig (BuS Elektronik)" <esw@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.
Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@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..7aca74b 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 (1024 * 1024)
/*
* sdram
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot
2013-09-18 14:13 [U-Boot] [PATCH] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot Jens Scharsig
@ 2013-09-18 14:44 ` Andreas Bießmann
2013-09-18 15:56 ` Jens Scharsig
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2013-09-18 14:44 UTC (permalink / raw)
To: u-boot
Dear Jens Scharsig,
On 09/18/2013 04:13 PM, Jens Scharsig (BuS Elektronik) wrote:
> From: "Jens Scharsig (BuS Elektronik)" <esw@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.
>
> Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@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..7aca74b 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 (1024 * 1024)
are you sure 1MiB is enough? We had from time to time problems
initializing an unsafe closed UBI (about 512MiB). With 4MiB malloc arena
however we never had these problems.
Best regards
Andreas Bie?mann
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot
2013-09-18 14:44 ` Andreas Bießmann
@ 2013-09-18 15:56 ` Jens Scharsig
0 siblings, 0 replies; 3+ messages in thread
From: Jens Scharsig @ 2013-09-18 15:56 UTC (permalink / raw)
To: u-boot
Dear Andreas Bie?mann:
>
> are you sure 1MiB is enough? We had from time to time problems
> initializing an unsafe closed UBI (about 512MiB). With 4MiB malloc arena
> however we never had these problems.
Thank you for informations. To prevent future problems, I will send a
4MiB version (V2) tomorrow.
Regards
Jens
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-18 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 14:13 [U-Boot] [PATCH] arm: atmel: cpux9k2: increase malloc space to fix crash on start u-boot Jens Scharsig
2013-09-18 14:44 ` Andreas Bießmann
2013-09-18 15:56 ` Jens Scharsig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox