public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] How to set ethact variable ...
@ 2006-01-18 14:45 Yogesh Patel
  2006-01-18 14:51 ` Andreas Schweigstill
  2006-01-19 14:27 ` Andrew Wozniak
  0 siblings, 2 replies; 3+ messages in thread
From: Yogesh Patel @ 2006-01-18 14:45 UTC (permalink / raw)
  To: u-boot

Hi,
How can I set ethact variable from within u-boot ?
I know I can use the command line "setenv ethact
....".
But I want to do it in the uboot code itself.
Thanks
Yogi

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* [U-Boot-Users] How to set ethact variable ...
  2006-01-18 14:45 [U-Boot-Users] How to set ethact variable Yogesh Patel
@ 2006-01-18 14:51 ` Andreas Schweigstill
  2006-01-19 14:27 ` Andrew Wozniak
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schweigstill @ 2006-01-18 14:51 UTC (permalink / raw)
  To: u-boot

Dear Yogesh!

Yogesh Patel schrieb:
> How can I set ethact variable from within u-boot ?
> I know I can use the command line "setenv ethact
> ....".
> But I want to do it in the uboot code itself.

=== snip ===
#include "common.h"

void myfunction(void)
{
	setenv("ethact", "contents of ethact");
	saveenv();
}
=== snip ===

Any more questions?

With best regards
Andreas Schweigstill

-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstra?e 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

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

* [U-Boot-Users] How to set ethact variable ...
  2006-01-18 14:45 [U-Boot-Users] How to set ethact variable Yogesh Patel
  2006-01-18 14:51 ` Andreas Schweigstill
@ 2006-01-19 14:27 ` Andrew Wozniak
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Wozniak @ 2006-01-19 14:27 UTC (permalink / raw)
  To: u-boot

Yogesh Patel wrote:
> Hi,
> How can I set ethact variable from within u-boot ?
> I know I can use the command line "setenv ethact
> ....".
> But I want to do it in the uboot code itself.

The U-Boot README file mentions this simple solution:

- Default Environment:
	CONFIG_EXTRA_ENV_SETTINGS

	Define this to contain any number of null terminated
	strings (variable = value pairs) that will be part of
	the default environment compiled into the boot image.

> Thanks
> Yogi
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

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

end of thread, other threads:[~2006-01-19 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18 14:45 [U-Boot-Users] How to set ethact variable Yogesh Patel
2006-01-18 14:51 ` Andreas Schweigstill
2006-01-19 14:27 ` Andrew Wozniak

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