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

Reda MIMOUNE reda.mimoune at easii-ic.com
Tue Sep 21 16:47:58 CEST 2010


Some news to my problem.
I found the source of the problem :
The flags as explicited in uBoot 1.3.4 induces some problem. I had to undef the HW_ECC_4BIT flag since when using it the oob is overwritten.
Since it looks at the oob to determine if a block is bad there was a problem. The unknown here is to understand why it did not use the BBT instead.
By removing this flag and adding the nand_large_page flag it worked !
I however fixed the environment size issue so that it is no more a weird config.
Thank you to all for your ideas and help.
reda
________________________________________
De : Scott Wood [scottwood at freescale.com]
Date d'envoi : vendredi 17 septembre 2010 20:01
À : Wolfgang Denk
Cc : Reda MIMOUNE; u-boot at lists.denx.de
Objet : Re: [U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables

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