
Environmental Variables
LITE5200B User’s Manual, Rev. 0
Freescale Semiconductor
5-3
=> md.b 0xF0000000
f0000000:00 00 f0 00 00 00 ff 00 00 00 ff ff 00 00 fe 00 ................
f0000010:00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff ................
5.3.2
MW
The mw command may be used to write a memory in byte, half word, and word increments. Syntax for
this command is:
mw [.b, .w, .l] <address> <data>
example:
=> mw 0x0 0xABCDEF12
This will write the value 0xABCDEF12 to address 0x0.
5.4
Environmental Variables
Environmental variable may be used to store u-boot configuration and commands for later usage after
power removed or reset occurs.
5.4.1
printenv
The printenv command may be used to print the currently configured environment variables. Unless
specifically saved into flash these variables will reside in ram until reset occurs or power is lost.
5.4.1.1
Default environment
=> printenv
bootcmd=run flash_self
bootdelay=5
baudrate=115200
preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo
netdev=eth0
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off panic=1
flash_nfs=run nfsargs addip;bootm $(kernel_addr)