public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] tool to create environment on host?
@ 2005-05-25  9:04 Steven Scholz
  2005-05-25  9:15 ` Wolfgang Denk
  0 siblings, 1 reply; 20+ messages in thread
From: Steven Scholz @ 2005-05-25  9:04 UTC (permalink / raw)
  To: u-boot

Hi there,

is there a tool to create a binary environment block from a text file on the 
host?

If not what would be the best point to start?

-- 
Steven

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [U-Boot-Users] tool to create environment on host?
@ 2005-05-25 13:19 Eisenhut, Daniel
  2005-05-25 13:27 ` Steven Scholz
  0 siblings, 1 reply; 20+ messages in thread
From: Eisenhut, Daniel @ 2005-05-25 13:19 UTC (permalink / raw)
  To: u-boot

Steven,

I've created a tool for doing this in our environment.  See attached tar.bz2.  You'll have to adjust the Makefile to build in your environment, as it has a define to point to your u-boot sources.

The tool uses stdin for the text file and stdout for the binary.  See README file.

Dan

-----Original Message-----
From: u-boot-users-admin@lists.sourceforge.net
[mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Steven
Scholz
Sent: Wednesday, May 25, 2005 4:05 AM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] tool to create environment on host?


Hi there,

is there a tool to create a binary environment block from a text file on the 
host?

If not what would be the best point to start?

-- 
Steven


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATTACHMENT_OR_CONTENT_BLOCKING_makeenv.tar.bz2.TXT
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050525/45be63f6/attachment.txt 

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [U-Boot-Users] tool to create environment on host?
@ 2005-05-25 18:28 Bob Peterson
  2005-05-25 20:01 ` Wolfgang Denk
  2005-06-08 16:41 ` Jeff Angielski
  0 siblings, 2 replies; 20+ messages in thread
From: Bob Peterson @ 2005-05-25 18:28 UTC (permalink / raw)
  To: u-boot

Hi All U-Booters,

I have written a simple u-boot environment modifying tool that you guys may 
find
useful.  (Attached).  The tool is essential for our company since our devices
often get to me all packaged up and the console serial port assigned to 
u-boot is
physically inaccessible.  The flash chips are pre-burned with our initial 
values,
defining the device as host ppc1 with a fixed mac address and ip address, but
we're often called upon to change those values after the fact.

Therefore, my tool is designed to switch a device's hostname, mac address,
and ip address in several places in the u-boot environment.  For example, to
change a device called ppc1 to ppc4, I can simply do something like this:

ssh ppc1
envtool 4

To print your current values for hostname, ip and mac address, I do:

envtool -print

To print all u-boot variables, I do:

envtool -printenv

I'm not claiming this tool is perfect, nor even elegant.  It is simple and 
effective,
and I'm stilling making tweaks here and there.

WARNING: The tool relies heavily upon the assumption that the u-boot
environment variables are being stored in /dev/mtdblock1.  That's how I have
the kernel for my icecube-based board set up.

To compile for icecube, do this:

ppc_6xx-gcc -o envtool envtool.c

Regards,

Bob Peterson
Advanced Communication Design
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: envtool.c
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050525/1c3fa812/attachment.txt 
-------------- next part --------------

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [U-Boot-Users] tool to create environment on host?
@ 2005-05-26 15:41 Rune Torgersen
  0 siblings, 0 replies; 20+ messages in thread
From: Rune Torgersen @ 2005-05-26 15:41 UTC (permalink / raw)
  To: u-boot

Try this one.
It takes a text file in the format of
Parametername=text
With one entry per line.

> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net 
> [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf 
> Of Steven Scholz
> Sent: Wednesday, May 25, 2005 04:05
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] tool to create environment on host?
> 
> Hi there,
> 
> is there a tool to create a binary environment block from a 
> text file on the 
> host?
> 
> If not what would be the best point to start?
> 
> -- 
> Steven
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit 
> http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_envbin.cpp.gz
Type: application/x-gzip
Size: 2915 bytes
Desc: create_envbin.cpp.gz
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050526/9743b65d/attachment.bin 

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-06-08 16:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25  9:04 [U-Boot-Users] tool to create environment on host? Steven Scholz
2005-05-25  9:15 ` Wolfgang Denk
2005-05-25 10:16   ` Simon Poole
2005-05-25 13:14     ` Steven Scholz
2005-05-25 13:25     ` Wolfgang Denk
2005-05-25 14:31       ` Simon Poole
2005-05-25 15:06         ` Wolfgang Denk
2005-05-25 15:10           ` Simon Poole
2005-05-25 18:12           ` NZG
2005-05-25 19:56             ` Wolfgang Denk
2005-05-26  7:50               ` Steven Scholz
2005-05-26 10:32                 ` Wolfgang Denk
2005-05-25 12:23   ` Steven Scholz
2005-05-25 13:30     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-05-25 13:19 Eisenhut, Daniel
2005-05-25 13:27 ` Steven Scholz
2005-05-25 18:28 Bob Peterson
2005-05-25 20:01 ` Wolfgang Denk
2005-06-08 16:41 ` Jeff Angielski
2005-05-26 15:41 Rune Torgersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox