[U-Boot-Users] Editing u-boot parameters from Linux using MTD
Wolfgang Denk
wd at denx.de
Fri Feb 6 21:33:44 CET 2004
In message <4023EE6F.6060604 at mesias.co.uk> you wrote:
>
> >>Has anybody converted the environment code from u-boot into a Linux
> >>application that can change the u-boot parameters through the MTD
> >>layer?
> >
> >
> > Yes. And you hold the tools right in your hand.
> >
> > See tools/env/README
>
> It seems to offer read access only - is anyone working on changing the
> variables / adding new ones from linux?
What makes you think it does not include write access?
Did you actually look at the code? it reads:
...
* Command line user interface to firmware (=U-Boot) environment.
*
* Implements:
* fw_printenv [ name ... ]
* - prints the values of the environment variables
* "name", or the whole environment if no names are
* specified
* fw_setenv name [ value ... ]
* - If a name without any values is given, the variable
* with this name is deleted from the environment;
* otherwise, all "value" arguments are concatenated,
* separated by sinlge blank characters, and the
* resulting string is assigned to the environment
* variable "name"
...
Guess what "fw_setenv" is doing?
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
It is impractical for the standard to attempt to constrain the
behavior of code that does not obey the constraints of the standard.
- Doug Gwyn
More information about the U-Boot
mailing list