All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reda MIMOUNE <reda.mimoune@easii-ic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables
Date: Fri, 17 Sep 2010 09:35:41 +0200	[thread overview]
Message-ID: <1918F436C366B34BB245DD28389E039453ADFAAD25@mars.easii.fr> (raw)
In-Reply-To: <20100916115516.131b884d@schlenkerla.am.freescale.net>

Hi Scott;
Again thank you for the answer.

>My expense request for a time machine was denied, so we can't go back
>and put new features in old versions. :-)
>Please upgrade, or backport the features yourself.

Have a question about it, if I upgrade to a new version of uBoot. Is it guaranteed that mkimage
will wrap the uboot binary the same way. Is mkimage the same version ?
If yes, I think I will upgrade.

> Or you can use the new env.oob feature to dynamically mark a known-good block as
> your environment.
>CONFIG_ENV_OFFSET_OOB
>You'll need top-of-tree U-Boot for this.

It is interesting, but i will look at this after upgrade.

>> That's what I believed since they became bad only after uboot wrote to them...
>Perhaps something is wrong with your NAND driver, then.
>Are you sure it wasn't marked bad before?

Yes they were not marked. I used "nand bad" and only the BBT blocks were marked.
And once I changed the environment block in the uboot code and reflashed it and
run again "nand bad" after a savenv, the newly chosen block was marked bad. 
It is a bit strange. It happened between my first message and your second answer.
I also changed the place to the first block adress 0. The one which cannot fail. And
it was marked bad. I think there is a problem in the software probably. My uBoot 1.3.4
source code is maybe wrong concerning all the saveenv function.
I use a Samsung NAND 3.3V 8bit which is recognized.

>The environment data itself, probably not.  But it must take up a
>multiple of the block size in NAND, because you don't want to erase
>other things when updating the environment.

Of course, I understood that. My question was in the config file. I put this:

#define CFG_ENV_SECT_SIZE			SZ_16K
#define CFG_ENV_SIZE				SZ_128K

I saw something equivalent in the Evalution board of Davinci DM365 so it should not be
impossible.

Thanks for all
-Reda

  reply	other threads:[~2010-09-17  7:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15 16:21 [U-Boot] Davinci DM365 custom design : Problem when reading uBoot environment variables Reda MIMOUNE
2010-09-15 18:15 ` Scott Wood
2010-09-16  7:42   ` [U-Boot] RE : " Reda MIMOUNE
2010-09-16 16:55     ` [U-Boot] " Scott Wood
2010-09-17  7:35       ` Reda MIMOUNE [this message]
2010-09-17 12:37         ` [U-Boot] RE : " Wolfgang Denk
2010-09-17 12:48           ` [U-Boot] RE : " Reda MIMOUNE
2010-09-17 14:32             ` Wolfgang Denk
2010-09-17 14:49               ` Reda MIMOUNE
2010-09-17 15:02                 ` Wolfgang Denk
2010-09-17 18:01               ` [U-Boot] " Scott Wood
2010-09-21 14:47                 ` [U-Boot] RE : " Reda MIMOUNE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1918F436C366B34BB245DD28389E039453ADFAAD25@mars.easii.fr \
    --to=reda.mimoune@easii-ic.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.