From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muhammad Yahya Date: Tue, 25 Jan 2005 15:18:02 -0800 Subject: [U-Boot-Users] Updating u-boot environment In-Reply-To: <20050125205823.97805C108D@atlas.denx.de> References: <20050125205823.97805C108D@atlas.denx.de> Message-ID: <41F6D3AA.3070800@sun.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: >In message <41F69395.3070003@sun.com> you wrote: > > >>I need to write a program or shell script that can update u-boot >> >> >environment (e.g. MAC address). > > >>Any pointers in how this may be done ? >> >> > >A program or shell script in U-Boot? No program needed, as the >"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 >script) to make script image from it,. load it and run it using the >"autoscr" command. > >Under Linux, you can use the fw_setenv tool provided in tools/env/ > >Note that ithe MAC address is normally write protected, i. e. it >cannot be changed once set. This is *intentional*. > >Best regards, > >Wolfgang Denk > > > 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 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. Thanks! Muhammad