[U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

Scott Wood scottwood at freescale.com
Fri Sep 17 20:01:36 CEST 2010


On Fri, 17 Sep 2010 16:32:04 +0200
Wolfgang Denk <wd at denx.de> wrote:

> Dear Reda MIMOUNE,
> 
> In message <1918F436C366B34BB245DD28389E039453ADFAAD2A at 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



More information about the U-Boot mailing list