* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
@ 2004-02-06 15:04 Jeff Angielski
2004-02-06 16:02 ` Wolfgang Denk
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Angielski @ 2004-02-06 15:04 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
@ 2004-02-06 15:15 Diekema, Jon
2004-02-06 16:05 ` Wolfgang Denk
0 siblings, 1 reply; 7+ messages in thread
From: Diekema, Jon @ 2004-02-06 15:15 UTC (permalink / raw)
To: u-boot
> Has anybody converted the environment code from u-boot into a
> Linux application that can change the u-boot parameters
> through the MTD layer?
We are using two busybox applets: setenv and printenv
I have attached two files that do all the real work.
These files could be converted into stand alone application.
------------------\\----------------------\\----------------------------
Jon Diekema | | Smiths Aerospace
(616) 241-8310 | | 3290 Patterson Avenue, SE
jon.diekema at smiths-aerospace.com \\ Grand Rapids, MI 49512
******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z.shar
Type: application/octet-stream
Size: 21283 bytes
Desc: z.shar
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040206/0e895b93/attachment.obj
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
2004-02-06 15:04 [U-Boot-Users] Editing u-boot parameters from Linux using MTD Jeff Angielski
@ 2004-02-06 16:02 ` Wolfgang Denk
2004-02-06 19:43 ` Cam
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2004-02-06 16:02 UTC (permalink / raw)
To: u-boot
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
--
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
Always borrow money from a pessimist; they don't expect to be paid
back.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
2004-02-06 15:15 Diekema, Jon
@ 2004-02-06 16:05 ` Wolfgang Denk
0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-02-06 16:05 UTC (permalink / raw)
To: u-boot
In message <BC1D6832B887974A8A4BE71B8E34E051D24573@cossmgmbx03.email.corp.tld> you wrote:
>
> > Linux application that can change the u-boot parameters
> > through the MTD layer?
>
> We are using two busybox applets: setenv and printenv
That's the old stuff from our SELF package.
> I have attached two files that do all the real work.
> These files could be converted into stand alone application.
The new stuff in tools/env is IMHO better, as more flexible (run-time
configurable, includes support for redundand environment sectors,
etc.)
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
Dealing with failure is easy: work hard to improve. Success is also
easy to handle: you've solved the wrong problem. Work hard to
improve.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
2004-02-06 16:02 ` Wolfgang Denk
@ 2004-02-06 19:43 ` Cam
2004-02-06 20:33 ` Wolfgang Denk
0 siblings, 1 reply; 7+ messages in thread
From: Cam @ 2004-02-06 19:43 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
2004-02-06 19:43 ` Cam
@ 2004-02-06 20:33 ` Wolfgang Denk
2004-02-06 21:40 ` Cam
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2004-02-06 20:33 UTC (permalink / raw)
To: u-boot
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
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot-Users] Editing u-boot parameters from Linux using MTD
2004-02-06 20:33 ` Wolfgang Denk
@ 2004-02-06 21:40 ` Cam
0 siblings, 0 replies; 7+ messages in thread
From: Cam @ 2004-02-06 21:40 UTC (permalink / raw)
To: u-boot
Wolfgang
>>It seems to offer read access only - is anyone working on changing the
>>variables / adding new ones from linux?
> Guess what "fw_setenv" is doing?
I skim read that before compiling it and finding only 'fw_printenv', My bad.
-Cam
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-02-06 21:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-06 15:04 [U-Boot-Users] Editing u-boot parameters from Linux using MTD Jeff Angielski
2004-02-06 16:02 ` Wolfgang Denk
2004-02-06 19:43 ` Cam
2004-02-06 20:33 ` Wolfgang Denk
2004-02-06 21:40 ` Cam
-- strict thread matches above, loose matches on Subject: below --
2004-02-06 15:15 Diekema, Jon
2004-02-06 16:05 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox