[U-Boot-Users] Editing u-boot parameters from Linux using MTD

Has anybody converted the environment code from u-boot into a Linux application that can change the u-boot parameters through the MTD layer?
I am just trying to save some time by not duplicating previous efforts.
Jeff Angielski The PTR Group

In message 1076079848.4612.6.camel@localhost.localdomain 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
I am just trying to save some time by not duplicating previous efforts.
RTFM helps :-)
Best regards,
Wolfgang Denk

Wolfgang
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?
-Cam

In message 4023EE6F.6060604@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
participants (3)
-
Cam
-
Jeff Angielski
-
Wolfgang Denk