public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Copying default environment to NVRAM
@ 2009-02-19 20:08 rory
  2009-02-19 22:35 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: rory @ 2009-02-19 20:08 UTC (permalink / raw)
  To: u-boot

Is there some flag or normal way to get the default environment that is 
in RAM to get written to NVRAM? I'm currently going to put a routine in 
our preboot code to do so, but was wondering if there was an officially 
sanctioned "right" way to do this. I've looked thru code and FAQ's and 
the best I can find is to run "saveenv" from the CLI, but that's not 
really a good solution.

thx

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

* [U-Boot] Copying default environment to NVRAM
  2009-02-19 20:08 [U-Boot] Copying default environment to NVRAM rory
@ 2009-02-19 22:35 ` Wolfgang Denk
  2009-02-19 22:44   ` rory
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2009-02-19 22:35 UTC (permalink / raw)
  To: u-boot

Dear rory,

In message <499DBC21.7050505@trs80.net> you wrote:
> Is there some flag or normal way to get the default environment that is 
> in RAM to get written to NVRAM? I'm currently going to put a routine in 
> our preboot code to do so, but was wondering if there was an officially 
> sanctioned "right" way to do this. I've looked thru code and FAQ's and 
> the best I can find is to run "saveenv" from the CLI, but that's not 
> really a good solution.

Why not? What's wrong with a simple command? I'm not sure what you are
looking for?

Best regards,

Wolfgang Denk

-- 
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
Making files is easy under  the  UNIX  operating  system.  Therefore,
users  tend  to  create  numerous  files  using large amounts of file
space. It has been said that the only standard thing about  all  UNIX
systems  is  the  message-of-the-day  telling users to clean up their
files.                             - System V.2 administrator's guide

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

* [U-Boot] Copying default environment to NVRAM
  2009-02-19 22:35 ` Wolfgang Denk
@ 2009-02-19 22:44   ` rory
  2009-02-19 22:50     ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: rory @ 2009-02-19 22:44 UTC (permalink / raw)
  To: u-boot

It needs to happen automagically, w/o typing anything. I was wondering 
(I couldn't find anything) if there was some flag that I could set to 
make it happen, rather than modify my boot process to automagically do 
it for me.


Wolfgang Denk wrote:
> Dear rory,
>
> In message <499DBC21.7050505@trs80.net> you wrote:
>   
>> Is there some flag or normal way to get the default environment that is 
>> in RAM to get written to NVRAM? I'm currently going to put a routine in 
>> our preboot code to do so, but was wondering if there was an officially 
>> sanctioned "right" way to do this. I've looked thru code and FAQ's and 
>> the best I can find is to run "saveenv" from the CLI, but that's not 
>> really a good solution.
>>     
>
> Why not? What's wrong with a simple command? I'm not sure what you are
> looking for?
>
> Best regards,
>
> Wolfgang Denk
>
>   

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

* [U-Boot] Copying default environment to NVRAM
  2009-02-19 22:44   ` rory
@ 2009-02-19 22:50     ` Wolfgang Denk
  2009-02-19 22:52       ` rory
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2009-02-19 22:50 UTC (permalink / raw)
  To: u-boot

Dear rory,

In message <499DE0DF.8080104@trs80.net> you wrote:
> It needs to happen automagically, w/o typing anything. I was wondering 

Well, than run it automatically, without any typing.

U-Boot is extremely flexible and easily supports such operations, too.

> (I couldn't find anything) if there was some flag that I could set to 
> make it happen, rather than modify my boot process to automagically do 
> it for me.

That's an oxymoron. Above you request: "It needs to happen  automagi-
cally", and now you claim you do NOT want to modify the boot sequence
"to automagically do it".  What exactly is it what you want?

Best regards,

Wolfgang Denk

-- 
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
"Don't try to outweird me, three-eyes. I get stranger things than you
free with my breakfast cereal."
           - Zaphod Beeblebrox in  "Hitchhiker's Guide to the Galaxy"

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

* [U-Boot] Copying default environment to NVRAM
  2009-02-19 22:50     ` Wolfgang Denk
@ 2009-02-19 22:52       ` rory
  2009-02-19 23:08         ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: rory @ 2009-02-19 22:52 UTC (permalink / raw)
  To: u-boot

I can add this operation to my boot command or to my preboot. However, 
if there is a supported, suggested way to do this, via a #define or 
compile flag, I would like to know because I would rather do it that way 
than put in a "hack".

thx

Wolfgang Denk wrote:
> Dear rory,
>
> In message <499DE0DF.8080104@trs80.net> you wrote:
>   
>> It needs to happen automagically, w/o typing anything. I was wondering 
>>     
>
> Well, than run it automatically, without any typing.
>
> U-Boot is extremely flexible and easily supports such operations, too.
>
>   
>> (I couldn't find anything) if there was some flag that I could set to 
>> make it happen, rather than modify my boot process to automagically do 
>> it for me.
>>     
>
> That's an oxymoron. Above you request: "It needs to happen  automagi-
> cally", and now you claim you do NOT want to modify the boot sequence
> "to automagically do it".  What exactly is it what you want?
>
> Best regards,
>
> Wolfgang Denk
>
>   

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

* [U-Boot] Copying default environment to NVRAM
  2009-02-19 22:52       ` rory
@ 2009-02-19 23:08         ` Wolfgang Denk
  2009-02-19 23:23           ` Rory Toma
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2009-02-19 23:08 UTC (permalink / raw)
  To: u-boot

Dear rory,

In message <499DE296.500@trs80.net> you wrote:
> I can add this operation to my boot command or to my preboot. However, 
> if there is a supported, suggested way to do this, via a #define or 
> compile flag, I would like to know because I would rather do it that way 
> than put in a "hack".

Adding this (probably even as a self-deleting) commnd to preboot is in
no way a hack. It's a perfectly legal use of a well-documented
standard interface.

Best regards,

Wolfgang Denk

-- 
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
There's an old proverb that says just about whatever you want it to.

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

* [U-Boot] Copying default environment to NVRAM
  2009-02-19 23:08         ` Wolfgang Denk
@ 2009-02-19 23:23           ` Rory Toma
  0 siblings, 0 replies; 7+ messages in thread
From: Rory Toma @ 2009-02-19 23:23 UTC (permalink / raw)
  To: u-boot

Thanks. That's what I wanted to know.


Wolfgang Denk wrote:
> Dear rory,
>
> In message <499DE296.500@trs80.net> you wrote:
>   
>> I can add this operation to my boot command or to my preboot. However, 
>> if there is a supported, suggested way to do this, via a #define or 
>> compile flag, I would like to know because I would rather do it that way 
>> than put in a "hack".
>>     
>
> Adding this (probably even as a self-deleting) commnd to preboot is in
> no way a hack. It's a perfectly legal use of a well-documented
> standard interface.
>
> Best regards,
>
> Wolfgang Denk
>
>   

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

end of thread, other threads:[~2009-02-19 23:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-19 20:08 [U-Boot] Copying default environment to NVRAM rory
2009-02-19 22:35 ` Wolfgang Denk
2009-02-19 22:44   ` rory
2009-02-19 22:50     ` Wolfgang Denk
2009-02-19 22:52       ` rory
2009-02-19 23:08         ` Wolfgang Denk
2009-02-19 23:23           ` Rory Toma

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