From: Wolfgang Denk Date: Wed, 05 Aug 2009 09:30:33 +0200 Subject: [U-Boot] [PATCH] stxamc8548: make environment use one of the smaller "boot" blocks in flash In-Reply-To: <591477.74934.qm@web37601.mail.mud.yahoo.com> References: <591477.74934.qm@web37601.mail.mud.yahoo.com> Message-ID: <20090805073033.493C18340728@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alex Dubov, In message <591477.74934.qm@web37601.mail.mud.yahoo.com> you wrote: > > > 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). So the old setting (CONFIG_ENV_SECT_SIZE=0x4000=16K) was plain wrong? Please merge this fix into your inital patch submission, then. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Severe culture shock results when experts from another protocol suite [...] try to read OSI documents. The term "osified" is used to refer to such documents. [...] Any relationship to the word "ossified" is purely intentional. - Marshall T. Rose