From: Wolfgang Denk Date: Wed, 26 Jan 2005 10:38:58 +0100 Subject: [U-Boot-Users] Updating u-boot environment In-Reply-To: Your message of "Tue, 25 Jan 2005 15:18:02 PST." <41F6D3AA.3070800@sun.com> Message-ID: <20050126093903.2873BC108D@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <41F6D3AA.3070800@sun.com> you wrote: > > Thank you for your response. I need to provide an interface to the folks > at our manufacturing facility so that they can enter the MAC address for > the MPC embedded controller and I can write it to the u-boot U-Boot has such an interface builtin. It is the "setenv" command. It is trivial to write script (for example using "expect") to automate such command sequences. And I already mentioned several other potential solutions for such a task. > enviroment. Is is possible to write a "script" that can take user input > and then write the MAC address ? I cannot seem to find a u-boot command > that can take input from the user. Did you read my previous message? I wrote: > "setenv" command is a builtin. Youc an put calls to the "setenv" or > "askenv" in a text file (= shell script), use the mkimage tool (-T Did you look up what the "setenv" and "askenv" are doing? Especially "askenv"?? Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "An open mind has but one disadvantage: it collects dirt." - a saying at RPI