[U-Boot-Users] How to set ethact variable ...

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

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

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&da... _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (3)
-
Andreas Schweigstill
-
Andrew Wozniak
-
Yogesh Patel