From: Tom Rini Date: Tue, 5 Jul 2016 11:17:09 -0400 Subject: [U-Boot] Wandboard: u-boot.img is getting too large In-Reply-To: References: <1467694422.3144.32.camel@synopsys.com> Message-ID: <20160705151709.GH25693@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jul 05, 2016 at 08:49:00AM -0300, Fabio Estevam wrote: > Hi Alexey, > > On Tue, Jul 5, 2016 at 1:54 AM, Alexey Brodkin > wrote: > > > IMHO there's an obvious solution for all that - just move U-Boot's env for say > > another 300-400k above like that: > > ------------------------------>8--------------------------- > > diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h > > index 99f5c0c..e39583c 100644 > > --- a/include/configs/wandboard.h > > +++ b/include/configs/wandboard.h > > @@ -181,7 +181,7 @@ > > #define CONFIG_ENV_SIZE (8 * 1024) > > > > #define CONFIG_ENV_IS_IN_MMC > > -#define CONFIG_ENV_OFFSET (6 * 64 * 1024) > > +#define CONFIG_ENV_OFFSET (2 * 6 * 64 * 1024) > > #define CONFIG_SYS_MMC_ENV_DEV 0 > > > > #endif > > ------------------------------>8--------------------------- > > Yes, please send this as a formal patch. > > I fixed the same issue recently on mx6sabresd. > > See commit 8fb9eea5653796 ("mx6sabre_common: Fix U-Boot corruption > after 'saveenv'") I think this shows that we need to think about fixing this in one of the more common mx6/7 header files as a "board can override" default. And maybe start thinking about moving the questions to Kconfig as well, since tbot can make sure that the conversion is correct. :) -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: