From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schweigstill Date: Wed, 18 Jan 2006 15:51:46 +0100 Subject: [U-Boot-Users] How to set ethact variable ... In-Reply-To: <20060118144540.37061.qmail@web52713.mail.yahoo.com> References: <20060118144540.37061.qmail@web52713.mail.yahoo.com> Message-ID: <43CE5602.6090801@schweigstill.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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/