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!
Quoted 4 lines · Yogesh Patel
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
Signature · 5 lines
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/
Quoted 5 lines · Yogesh Patel
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.
Quoted 19 lines
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