From: Muhammad Yahya <Muhammad.Yahya@Sun.COM>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Updating u-boot environment
Date: Tue, 25 Jan 2005 15:18:02 -0800 [thread overview]
Message-ID: <41F6D3AA.3070800@sun.com> (raw)
In-Reply-To: <20050125205823.97805C108D@atlas.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
next prev parent reply other threads:[~2005-01-25 23:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-25 18:44 [U-Boot-Users] Updating u-boot environment Muhammad Yahya
2005-01-25 20:58 ` Wolfgang Denk
2005-01-25 23:18 ` Muhammad Yahya [this message]
2005-01-26 9:38 ` Wolfgang Denk
2005-01-26 17:35 ` Muhammad Yahya
2005-01-26 21:13 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41F6D3AA.3070800@sun.com \
--to=muhammad.yahya@sun.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.