[U-Boot] Question about U-Boot env variable substitution
David Aldrich
David.Aldrich at EMEA.NEC.COM
Tue May 1 14:29:14 CEST 2012
Hi
I would be grateful for some help with environment variable substitution in U-Boot please.
I have:
=> printenv
[snip]
bootargs=console=ttyS0,115200 root=/dev/nfs rw ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off nfsroot=${serverip}:${rootpath}
[snip]
bootcmd=run flashboot_nohv_mount_nfs
[snip]
flashboot_nohv_mount_nfs=setenv bdev /dev/ram; run bootargs; bootm $kern_flash $rfs_flash $fdt_flash
[snip]
ipaddr etc. are also defined.
When I leave the system to autoboot I see:
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nfs rw ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off nfsroot=${serverip}:${rootpath}
So environment variable substitution is not happening.
What am I doing wrong please?
Best regards
David
More information about the U-Boot
mailing list