Skip to contentSkip to conversation

about "env_init"

U-Boot-Users 孙 彬 2 participants 2 messages May 17, 2007

lore
Share & tools
lore

孙 彬

author
#0 lore raw

hello,all
In the file Env_flash.c ,there is a function as

#ifdef CFG_ENV_ADDR_REDUND
int env_init(void)
{
DECLARE_GLOBAL_DATA_PTR;
...
}

What's CFG_ENV_ADDR_REDUND mean?on which condition the function env_init(void) works.
and I want to know when env store in flash,where to store,and how to store the env and how can i get it from flash

thanks a lots

---------------------------------
????????3.5G???20M???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070517/ef53169a/attachment.htm

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

In the file Env_flash.c ,there is a function as

There is no such file. The file name is "env_flash.c". Case is significant!

Quoted 6 lines

#ifdef CFG_ENV_ADDR_REDUND
int env_init(void)
{
DECLARE_GLOBAL_DATA_PTR;
...
}

This must be a very, very old version of the code. That bug has been fixed long ago.

Quoted 2 lines

What's CFG_ENV_ADDR_REDUND mean?on which condition the function env_init(void) works.
and I want to know when env store in flash,where to store,and how to store the env and how can i get it from flash

May I suggest you start reading the documentation, such as the README?

Quoted 3 lines

--0-1753388716-1179381204=:69311
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit

And never post HTML here.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Ever try. Ever fail. No matter. Try again. Fail again.  Fail  better.
                                                        -- S. Beckett