From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 17 Sep 2010 13:01:36 -0500 Subject: [U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables In-Reply-To: <20100917143204.6416A15242D@gemini.denx.de> References: <1918F436C366B34BB245DD28389E039453ADFAAD1E@mars.easii.fr> <20100915131514.7792c2ea@schlenkerla.am.freescale.net> <1918F436C366B34BB245DD28389E039453ADFAAD1F@mars.easii.fr> <20100916115516.131b884d@schlenkerla.am.freescale.net> <1918F436C366B34BB245DD28389E039453ADFAAD25@mars.easii.fr> <20100917123721.0A2D015242D@gemini.denx.de> <1918F436C366B34BB245DD28389E039453ADFAAD2A@mars.easii.fr> <20100917143204.6416A15242D@gemini.denx.de> Message-ID: <20100917130136.563f05a9@schlenkerla.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 17 Sep 2010 16:32:04 +0200 Wolfgang Denk wrote: > Dear Reda MIMOUNE, > > In message <1918F436C366B34BB245DD28389E039453ADFAAD2A@mars.easii.fr> you wrote: > > > > reading the README file, here is what I read: > > > > Note: CFG_ENV_OFFSET and CFG_ENV_OFFSET_REDUND must be aligned > > to a block boundary, and CFG_ENV_SIZE must be a multiple of > > the NAND devices block size. > > I think that should be CONFIG_ENV_SECT_SIZE CONFIG_ENV_SECT_SIZE isn't used by env_nand.c -- it uses the dynamically-read block size in nand_info. > > Since my sectors/blocks are 128KB, I must be at least 128KB! > > > > Is the README file wrong ? > > Seems so. Unless Davinci has messed up this. Yes, the README is wrong. It used to be that way until commit c3db8c649c6ab3da2f1411c4c6d61aecea054aa4, and README wasn't updated. The current requirement is that CONFIG_ENV_SIZE be a multiple of the page size. -Scott