public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] howto deal with nested $() in bootenv?
@ 2010-03-04 15:08 Arno Steffen
  2010-03-04 16:11 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Arno Steffen @ 2010-03-04 15:08 UTC (permalink / raw)
  To: u-boot

To set my uboot environment (2008-10) I upload a script to uboot

set serverip 		192.168.90.230
a) set bootargs_nfs    mem=128M console=ttyS2,115200n8 noinitrd rw
root=/dev/nfs nfsroot=$(serverip):/opt/rootfs, nolock
b) set bootargs_nfs    mem=128M console=ttyS2,115200n8 noinitrd rw
root=/dev/nfs nfsroot=\$(serverip):/opt/rootfs, nolock
set boot_nfs		tftpboot 0x80000000 spv/uImage\; set bootargs
\$(bootargs_nfs)\; run addip\; bootm 0x80000000

I case a) the serverip while loading will inserted fix in bootargs_nfs
In case b) the serverip will not replaced so that the kernel get a
$(serverip) part of command line.

How to change this above, so that I can later change serverip without
changing anything else?

Regards
Arno

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

end of thread, other threads:[~2010-03-05 11:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 15:08 [U-Boot] howto deal with nested $() in bootenv? Arno Steffen
2010-03-04 16:11 ` Wolfgang Denk
2010-03-05  7:36   ` Arno Steffen
2010-03-05 11:50     ` Wolfgang Denk

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