public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Environment structure.
@ 2009-07-30 11:34 Tuma
  2009-07-30 15:29 ` Detlev Zundel
  0 siblings, 1 reply; 20+ messages in thread
From: Tuma @ 2009-07-30 11:34 UTC (permalink / raw)
  To: u-boot

Hello All!
I develop some "upgrade" tool based on the U-Boot booted from SD card.
I want to boot from SD card, and execute some simple script which is stored in 
bootcmd environment variable:
"echo Hello! ; mmcinit ; sleep 10 ; reset; " etc...
So I need to generate some environment file. I find source from tools/env very 
useful (I try to get variables from correct file I already have), but I can't 
find any description of environment file (or flash partition) at all (which I 
need to write tool for generating environment file).
Can someone explain me the structure of the file, please.
Something like:
0-4 - CRC
5-... - (Environment)\0(Environment)\0... 
... Environment End Mark...
and so on.

Or tell me in what file should I see from U-Boot source.

And is there any difference between content of OneNAND flash 
environment-partition and file on SD card?

Thank you.

-- 
Software Developer
General Satellite Corp.

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

end of thread, other threads:[~2009-08-18 11:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 11:34 [U-Boot] Environment structure Tuma
2009-07-30 15:29 ` Detlev Zundel
2009-08-03 13:03   ` [U-Boot] BMP display Tuma
2009-08-05 14:31     ` Detlev Zundel
2009-08-06 11:48       ` Tuma
2009-08-06 15:25         ` Detlev Zundel
2009-08-13  9:26           ` Tuma
2009-08-13  9:45             ` Wolfgang Denk
     [not found]               ` <200908171305.55605.chernigovskiy@spb.gs.ru>
2009-08-17  9:33                 ` Wolfgang Denk
2009-08-17  9:38                   ` Tuma
2009-08-17  9:52                     ` Wolfgang Denk
2009-08-17 11:12                       ` Tuma
2009-08-17 11:51                         ` Wolfgang Denk
     [not found]                           ` <200908171631.17975.chernigovskiy@spb.gs.ru>
2009-08-17 12:38                             ` Wolfgang Denk
2009-08-17 13:55                               ` Tuma
2009-08-17 14:01                                 ` Tuma
2009-08-17 15:37                                 ` Premi, Sanjeev
2009-08-18  9:00                                   ` Tuma
2009-08-18 11:04                                     ` Wolfgang Denk
2009-08-17 20:31                                 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox