[U-Boot-Users] Updating u-boot environment

Muhammad Yahya Muhammad.Yahya at Sun.COM
Wed Jan 26 00:18:02 CET 2005


Wolfgang Denk wrote:

>In message <41F69395.3070003 at 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





More information about the U-Boot mailing list