How to access uboot environment variables from Linux?

Bizhan Gholikhamseh (bgholikh) bgholikh at cisco.com
Tue Feb 14 23:45:29 EST 2006


I am aware of fw_printenv and fw_setenv. But they are uboot utilities,
and I am trying to access the parameter from Linux, what am I missing?
Thanks,
Bizhan 

-----Original Message-----
From: Jenkins, Clive [mailto:Clive.Jenkins at xerox.com] 
Sent: Tuesday, February 14, 2006 2:56 AM
To: atul.sabharwal at exgate.tek.com; Bizhan Gholikhamseh (bgholikh);
linuxppc-dev at ozlabs.org
Subject: RE: How to access uboot environment variables from Linux?

Have you not discovered internet search engines?
If you paste the original question ("How could I access the uboot
environment variables from Linux?") into Google, you get the answer as
the first result:
http://www.denx.de/wiki/view/DULG/HowCanIAccessUBootEnvironmentVariables
InLinux

[Continuing the current style of top-posting. Sorry] Clive
 
-----Original Message-----
From: linuxppc-dev-bounces+clive.jenkins=xerox.com at ozlabs.org
[mailto:linuxppc-dev-bounces+clive.jenkins=xerox.com at ozlabs.org] On
Behalf Of atul.sabharwal at exgate.tek.com
Sent: 14 February 2006 01:09
To: bgholikh at cisco.com; linuxppc-dev at ozlabs.org
Subject: RE: How to access uboot environment variables from Linux?


I think you will have to write a program to access and decode u-boot
environment setup format in linux.
If you come across some open source app for this, plz. share with me. It
should be a standard method but typically a small optimization if you
want your main code to be independent of the boot loader your are using
or if you have common code base which works across multiple
processors/multiple loaders.
 
--
Atul



From: linuxppc-dev-bounces+atul.sabharwal=tek.com at ozlabs.org
[mailto:linuxppc-dev-bounces+atul.sabharwal=tek.com at ozlabs.org] On
Behalf Of Bizhan Gholikhamseh (bgholikh)
Sent: Monday, February 13, 2006 4:54 PM
To: linuxppc-dev at ozlabs.org
Subject: How to access uboot environment variables from Linux?
 
All,
How could I access the uboot environment variables from Linux? For
example I would like to access the "serverip"
and change that to a different ip address during run time.
 
Many thanks in advance,
Bizhan



More information about the Linuxppc-dev mailing list