From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sun, 3 Feb 2013 00:35:05 +0100 Subject: [U-Boot] [PATCH V2] ARM: Fix malloc area size for versatile and integrator In-Reply-To: <1351933887-11852-1-git-send-email-marex@denx.de> References: <1331952064-12397-1-git-send-email-marex@denx.de> <1351933887-11852-1-git-send-email-marex@denx.de> Message-ID: <20130203003505.5cd321d3@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, On Sat, 3 Nov 2012 10:11:27 +0100, Marek Vasut wrote: > These boards couldn't save their environment because they couldn't malloc() > the whole size of the sector. > > Signed-off-by: Marek Vasut > Cc: Linus Walleij > --- > include/configs/integrator-common.h | 3 ++- > include/configs/versatile.h | 2 +- > 2 files changed, 3 insertions(+), 2 deletions(-) > > V2: Align with current code > > diff --git a/include/configs/integrator-common.h b/include/configs/integrator-common.h > index 564b418..51227e7 100644 > --- a/include/configs/integrator-common.h > +++ b/include/configs/integrator-common.h > @@ -37,7 +37,8 @@ > #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) > #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ > #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size*/ > -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) /* Size of malloc() pool */ > +/* Size of malloc() pool */ > +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SECT_SIZE + 128*1024) > > #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ > #define CONFIG_SETUP_MEMORY_TAGS > diff --git a/include/configs/versatile.h b/include/configs/versatile.h > index a65c676..2484881 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 This does not build properly on current ARM ToT: board.c:395:19: error: 'CONFIG_ENV_SECT_SIZE' undeclared (first use in this function) All 4 of integratorap_cm720t integratorap_cm920t integratorap_cm926ejs integratorap_cm946es fail. Amicalement, -- Albert.