public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Tricky advice needed: copy value of an environment variable into ram
@ 2006-03-17  7:52 Matthias Fuchs
  2006-03-17 10:12 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fuchs @ 2006-03-17  7:52 UTC (permalink / raw)
  To: u-boot

Hi,

I need an idea on how to copy the value of an environment variable into RAM.

Let's say serial#=ABC1234, then I want to get ABC1234 into RAM at 
address 0x100000. Is this possible with some tricky u-boot commands?

It the PMC405 target where I want to do this and hopefully without 
modification to the u-boot configuration.

Matthias

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

* [U-Boot-Users] Tricky advice needed: copy value of an environment variable into ram
  2006-03-17  7:52 [U-Boot-Users] Tricky advice needed: copy value of an environment variable into ram Matthias Fuchs
@ 2006-03-17 10:12 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-03-17 10:12 UTC (permalink / raw)
  To: u-boot

In message <441A6AA5.6000308@esd-electronics.com> you wrote:
> 
> I need an idea on how to copy the value of an environment variable into RAM.

All environment ariables are already stored in  RAM  when  U-Boot  is
running.

> Let's say serial#=ABC1234, then I want to get ABC1234 into RAM at 
> address 0x100000. Is this possible with some tricky u-boot commands?

Ah! you mean, you want to have the copy on a specific address :-)

I'm afraid there is no way to do this. We don;t have  a  comand  that
takes  a  strin  on input and stores it to a specific address, and we
don't have enough of shell tools to split and convert to hex either.

You probaly will have  to  to  implement  the  "mw.s"  (memory  write
string) command...

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
No one may kill a man.  Not for any purpose.  It cannot be condoned.
	-- Kirk, "Spock's Brain", stardate 5431.6

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

end of thread, other threads:[~2006-03-17 10:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-17  7:52 [U-Boot-Users] Tricky advice needed: copy value of an environment variable into ram Matthias Fuchs
2006-03-17 10:12 ` Wolfgang Denk

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