Patchwork [U-Boot] ARM: Fix malloc area size for versatile and integrator

login
register
mail settings
Submitter Marek Vasut
Date March 17, 2012, 2:41 a.m.
Message ID <1331952064-12397-1-git-send-email-marex@denx.de>
Download mbox | patch
Permalink /patch/147292/
State Changes Requested
Delegated to: Albert ARIBAUD
Headers show

Comments

Marek Vasut - March 17, 2012, 2:41 a.m.
These boards couldn't save their environment because they couldn't malloc()
the whole size of the sector.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Linus Walleij <linus.walleij@linaro.org>
---
 include/configs/integratorcp.h |    2 +-
 include/configs/versatile.h    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Linus Walleij - March 18, 2012, 11:34 p.m.
On Sat, Mar 17, 2012 at 3:41 AM, Marek Vasut <marex@denx.de> wrote:

> These boards couldn't save their environment because they couldn't malloc()
> the whole size of the sector.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Linus Walleij <linus.walleij@linaro.org>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Thanks!
Linus Walleij
Marek Vasut - March 18, 2012, 11:37 p.m.
Dear Linus Walleij,

> On Sat, Mar 17, 2012 at 3:41 AM, Marek Vasut <marex@denx.de> wrote:
> > These boards couldn't save their environment because they couldn't
> > malloc() the whole size of the sector.
> > 
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Linus Walleij <linus.walleij@linaro.org>
> 
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> 
> Thanks!
> Linus Walleij

You're welcome, we're now running daily u-boot tests on qemulated integrator ;-)

Best regards,
Marek Vasut

Patch

diff --git a/include/configs/integratorcp.h b/include/configs/integratorcp.h
index 57610a6..511fa1f 100644
--- a/include/configs/integratorcp.h
+++ b/include/configs/integratorcp.h
@@ -56,7 +56,7 @@ 
 /*
  * Size of malloc() pool
  */
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SECT_SIZE + 128*1024)
 
 /*
  * Hardware drivers
diff --git a/include/configs/versatile.h b/include/configs/versatile.h
index bb835e0..6a9aa30 100644
--- a/include/configs/versatile.h
+++ b/include/configs/versatile.h
@@ -71,7 +71,7 @@ 
  * Size of malloc() pool
  */
 #define CONFIG_ENV_SIZE			8192
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SECT_SIZE + 128 * 1024)
 
 /*
  * Hardware drivers