linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to access uboot environment variables from Linux?
@ 2006-02-14  0:53 Bizhan Gholikhamseh (bgholikh)
  2006-02-16 23:53 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Bizhan Gholikhamseh (bgholikh) @ 2006-02-14  0:53 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 947 bytes --]

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

* RE: How to access uboot environment variables from Linux?
@ 2006-02-14  1:09 atul.sabharwal
  2006-02-14 10:43 ` Andy Hawkins
  0 siblings, 1 reply; 9+ messages in thread
From: atul.sabharwal @ 2006-02-14  1:09 UTC (permalink / raw)
  To: bgholikh, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

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@ozlabs.org
[mailto:linuxppc-dev-bounces+atul.sabharwal=tek.com@ozlabs.org] On
Behalf Of Bizhan Gholikhamseh (bgholikh)
Sent: Monday, February 13, 2006 4:54 PM
To: linuxppc-dev@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


[-- Attachment #2: Type: text/html, Size: 4738 bytes --]

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

* RE: How to access uboot environment variables from Linux?
  2006-02-14  1:09 atul.sabharwal
@ 2006-02-14 10:43 ` Andy Hawkins
  0 siblings, 0 replies; 9+ messages in thread
From: Andy Hawkins @ 2006-02-14 10:43 UTC (permalink / raw)
  To: atul.sabharwal, bgholikh, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

Hi,

> I think you will have to write a program to access and decode u-boot
environment setup 
> format in linux.

Or you could use the one that comes with u-boot...

Look in tools/env

Andy

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 1584 bytes --]

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

* RE: How to access uboot environment variables from Linux?
@ 2006-02-14 10:56 Jenkins, Clive
  0 siblings, 0 replies; 9+ messages in thread
From: Jenkins, Clive @ 2006-02-14 10:56 UTC (permalink / raw)
  To: atul.sabharwal, bgholikh, linuxppc-dev

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
=20
-----Original Message-----
From: linuxppc-dev-bounces+clive.jenkins=3Dxerox.com@ozlabs.org
[mailto:linuxppc-dev-bounces+clive.jenkins=3Dxerox.com@ozlabs.org] On
Behalf Of atul.sabharwal@exgate.tek.com
Sent: 14 February 2006 01:09
To: bgholikh@cisco.com; linuxppc-dev@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.
=20
--
Atul



From: linuxppc-dev-bounces+atul.sabharwal=3Dtek.com@ozlabs.org
[mailto:linuxppc-dev-bounces+atul.sabharwal=3Dtek.com@ozlabs.org] On
Behalf Of Bizhan Gholikhamseh (bgholikh)
Sent: Monday, February 13, 2006 4:54 PM
To: linuxppc-dev@ozlabs.org
Subject: How to access uboot environment variables from Linux?
=20
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.
=20
Many thanks in advance,
Bizhan

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

* How to access uboot environment variables from Linux?
@ 2006-02-14 11:31 Heiko Schocher
  0 siblings, 0 replies; 9+ messages in thread
From: Heiko Schocher @ 2006-02-14 11:31 UTC (permalink / raw)
  To: linuxppc-dev

Hello Bizhan,

> How could I access the uboot environment variables from Linux? For
> example I would like to access the "serverip"

have a look at

http://www.denx.de/wiki/view/DULG/HowCanIAccessUBootEnvironmentVariablesInLinux

Best regards,

Heiko

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

* RE: How to access uboot environment variables from Linux?
@ 2006-02-14 12:45 Bizhan Gholikhamseh (bgholikh)
  0 siblings, 0 replies; 9+ messages in thread
From: Bizhan Gholikhamseh (bgholikh) @ 2006-02-14 12:45 UTC (permalink / raw)
  To: Jenkins, Clive, atul.sabharwal, linuxppc-dev

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=20

-----Original Message-----
From: Jenkins, Clive [mailto:Clive.Jenkins@xerox.com]=20
Sent: Tuesday, February 14, 2006 2:56 AM
To: atul.sabharwal@exgate.tek.com; Bizhan Gholikhamseh (bgholikh);
linuxppc-dev@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
=20
-----Original Message-----
From: linuxppc-dev-bounces+clive.jenkins=3Dxerox.com@ozlabs.org
[mailto:linuxppc-dev-bounces+clive.jenkins=3Dxerox.com@ozlabs.org] On
Behalf Of atul.sabharwal@exgate.tek.com
Sent: 14 February 2006 01:09
To: bgholikh@cisco.com; linuxppc-dev@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.
=20
--
Atul



From: linuxppc-dev-bounces+atul.sabharwal=3Dtek.com@ozlabs.org
[mailto:linuxppc-dev-bounces+atul.sabharwal=3Dtek.com@ozlabs.org] On
Behalf Of Bizhan Gholikhamseh (bgholikh)
Sent: Monday, February 13, 2006 4:54 PM
To: linuxppc-dev@ozlabs.org
Subject: How to access uboot environment variables from Linux?
=20
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.
=20
Many thanks in advance,
Bizhan

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

* RE: How to access uboot environment variables from Linux?
@ 2006-02-14 13:31 Jenkins, Clive
  0 siblings, 0 replies; 9+ messages in thread
From: Jenkins, Clive @ 2006-02-14 13:31 UTC (permalink / raw)
  To: Bizhan Gholikhamseh (bgholikh), atul.sabharwal, linuxppc-dev

fw_printenv and fw_setenv _are_ normal userland Linux utilities, which
can be run from the shell command line. If you want your own program
to directly get/set environment variables, just call the appropriate
functions. Read and understand the code.

Clive
[continuing to top-post. sorry]

-----Original Message-----
From: Bizhan Gholikhamseh (bgholikh) [mailto:bgholikh@cisco.com]=20
Sent: 14 February 2006 12:45
To: Jenkins, Clive; atul.sabharwal@exgate.tek.com;
linuxppc-dev@ozlabs.org
Subject: RE: How to access uboot environment variables from Linux?


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=20

-----Original Message-----
From: Jenkins, Clive [mailto:Clive.Jenkins@xerox.com]=20
Sent: Tuesday, February 14, 2006 2:56 AM
To: atul.sabharwal@exgate.tek.com; Bizhan Gholikhamseh (bgholikh);
linuxppc-dev@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
=20
-----Original Message-----
From: linuxppc-dev-bounces+clive.jenkins=3Dxerox.com@ozlabs.org
[mailto:linuxppc-dev-bounces+clive.jenkins=3Dxerox.com@ozlabs.org] On
Behalf Of atul.sabharwal@exgate.tek.com
Sent: 14 February 2006 01:09
To: bgholikh@cisco.com; linuxppc-dev@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.
=20
--
Atul



From: linuxppc-dev-bounces+atul.sabharwal=3Dtek.com@ozlabs.org
[mailto:linuxppc-dev-bounces+atul.sabharwal=3Dtek.com@ozlabs.org] On
Behalf Of Bizhan Gholikhamseh (bgholikh)
Sent: Monday, February 13, 2006 4:54 PM
To: linuxppc-dev@ozlabs.org
Subject: How to access uboot environment variables from Linux?
=20
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.
=20
Many thanks in advance,
Bizhan

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

* RE: How to access uboot environment variables from Linux?
@ 2006-02-14 18:33 atul.sabharwal
  0 siblings, 0 replies; 9+ messages in thread
From: atul.sabharwal @ 2006-02-14 18:33 UTC (permalink / raw)
  To: Clive.Jenkins, bgholikh; +Cc: linuxppc-dev

>>Have you not discovered internet search engines?

Have you ever been hit by IP spoofing?  Do you trust everything you find
on the net? =20

Just that you know something which somebody else does not know does not
entitle you to ask such questions...=20

--
Atul

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

* Re: How to access uboot environment variables from Linux?
  2006-02-14  0:53 How to access uboot environment variables from Linux? Bizhan Gholikhamseh (bgholikh)
@ 2006-02-16 23:53 ` Wolfgang Denk
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2006-02-16 23:53 UTC (permalink / raw)
  To: Bizhan Gholikhamseh (bgholikh); +Cc: linuxppc-dev

In message <F795765B112E7344AF36AA9112796415019ECCF1@xmb-sjc-212.amer.cisco.com> you wrote:
> 
> How could I access the uboot environment variables from Linux? For

This question is off topic here; you should ask  such  stuff  on  the
u-boot-uswers mailing list instead.

> example I would like to access the "serverip"
> and change that to a different ip address during run time.

You should also read the FAQ's before posting. See here:
http://www.denx.de/wiki/view/DULG/HowCanIAccessUBootEnvironmentVariablesInLinux

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Our business is run on trust.  We trust you will pay in advance.

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

end of thread, other threads:[~2006-02-16 23:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14  0:53 How to access uboot environment variables from Linux? Bizhan Gholikhamseh (bgholikh)
2006-02-16 23:53 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2006-02-14  1:09 atul.sabharwal
2006-02-14 10:43 ` Andy Hawkins
2006-02-14 10:56 Jenkins, Clive
2006-02-14 11:31 Heiko Schocher
2006-02-14 12:45 Bizhan Gholikhamseh (bgholikh)
2006-02-14 13:31 Jenkins, Clive
2006-02-14 18:33 atul.sabharwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).