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

Andreas Schweigstill andreas at schweigstill.de
Wed Jan 18 15:51:46 CET 2006


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/




More information about the U-Boot mailing list