From: Alex Dubov Date: Tue, 4 Aug 2009 19:57:02 -0700 (PDT) Subject: [U-Boot] [PATCH] stxamc8548: make environment use one of the smaller "boot" blocks in flash In-Reply-To: <20090804213947.5576F8340728@gemini.denx.de> Message-ID: <591477.74934.qm@web37601.mail.mud.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > > > Put environment into .ppcenv section aligned on a > smaller "boot" eraseblock > > boundary near flash end. > > Hm... if you change to code to using a smaller boot > sector... > > >? #define CONFIG_ENV_ADDR? ? ? > ? (CONFIG_SYS_MONITOR_BASE + 0x38000) > >? #define > CONFIG_ENV_SECT_SIZE???0x4000???/* > 16K(one sector) for env */ > > -#define CONFIG_ENV_SIZE? ? ? ? > 0x2000 > > +#define CONFIG_ENV_SIZE? ? ? ? > 0x4000 > > ...should then not be CONFIG_ENV_SECT_SIZE changed to some > smaller > size, too? > The "large" eraseblock size for this flash config is 128k (2x64k). Small one is 16k (2x8k).