All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Davinci DM365 custom design : Problem when reading uBoot environment variables
@ 2010-09-15 16:21 Reda MIMOUNE
  2010-09-15 18:15 ` Scott Wood
  0 siblings, 1 reply; 12+ messages in thread
From: Reda MIMOUNE @ 2010-09-15 16:21 UTC (permalink / raw)
  To: u-boot

Hello all uboot mailist members

First of all, i am new to uboot coding, though i am a user of uboot on many platforms (so without knowing how it is done). So for a custom design, i had to dig inside the uboot code to adapt to a DaVinci board we have built.
I use uBoot version 1.3.4 which is used by TI for many designs which I started from.
I have customized the <board>.h file to include all "define" I could need i the source code I explored. The first difficulty was to get the environment saved in the right place in the NAND memory, so that my development can begin on it really. I cannot only use the default environment and recompile uboot and reflash...etc.. each time i need to change an environment parameter. So I stick to my problem.
The code told parameters were saved.
But when I reset the board, the message is *** Warning bad CRC or NAND. the zone was set to a NAND block size of 128KB (since it is mandatory to be the same size).
I put some debug messages to find out that the read_env function used returns an error because of my environment variables block is bad. This i cannot understand since it wrote data in the right block.

To widen the problem I choose to double the environment size to 256KB. It is still the same.
I typed the "nand bad " at prompt and my blocks + the bad block tables were marked as bad ! is that normal that BBT are marked bad ?

So for the moment i try to remove this bad character from my block by trying to erase all the nand, and using nand scrub. And this is always the same.
I run out of solutions now, so that i ask for some debugging ideas about this issue. I will probably try to check if the saveenv worked properly (despite the lack of error messages).

Thanks to all of you
Reda

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-09-21 14:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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       ` [U-Boot] RE : " Reda MIMOUNE
2010-09-17 12:37         ` 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

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.