How to access uboot environment variables from Linux?

Jenkins, Clive Clive.Jenkins at xerox.com
Tue Feb 14 21:56:27 EST 2006


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