From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 26 Aug 2010 13:48:07 +0200 Subject: [U-Boot] [PATCH 08/11] arm/pxa: increase CONFIG_SYS_MALLOC_LEN to (196Kb + space for environment) In-Reply-To: <1282819683-655-8-git-send-email-mikhail.kshevetskiy@gmail.com> References: <1282819683-655-1-git-send-email-mikhail.kshevetskiy@gmail.com> <1282819683-655-8-git-send-email-mikhail.kshevetskiy@gmail.com> Message-ID: <201008261348.08623.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dne ?t 26. srpna 2010 12:48:03 Mikhail Kshevetskiy napsal(a): > it looks like u-boot allocates a buffer of CONFIG_ENV_SECT_SIZE > size when making "saveenv" command. In our case CONFIG_ENV_SECT_SIZE > is 128Kb, so having CONFIG_SYS_MALLOC_LEN = (128Kb + space for > environment) is not sufficient. > > Increase CONFIG_SYS_MALLOC_LEN to (196Kb + space for environment) to > resolve a problem. You probably hit this because you changed the ENV size. Wolfgang, can you please comment on this one too? Thanks > > Signed-off-by: Mikhail Kshevetskiy > --- > include/configs/vpac270.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h > index 98faf9a..ddb3e0e 100644 > --- a/include/configs/vpac270.h > +++ b/include/configs/vpac270.h > @@ -37,7 +37,7 @@ > * Environment settings > */ > #define CONFIG_ENV_SIZE (4 * 1024) > -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) > +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 196*1024) > #define CONFIG_SYS_GBL_DATA_SIZE 128 > > #define CONFIG_BOOTCOMMAND \