printenv
Function
The printenv command is used to display all or specified environment variables.
Format
printenv
Parameters
Parameter |
Description |
Value |
---|---|---|
name |
Environment variables. |
Enter the value as required. |
Modes
serial port mode
Usage Guidelines
None
Example
- Display all environment variables.
Hi1710_UBOOT> printenv bootargs=console=ttyAMA0,115200 root=/dev/mtdblock5 mtdparts=physmap-flash.0:512k(u-boot),512k(reserved),512k(u-boot_bak),384k(reserved_bak),128k(env),44m(rootfs0),4m(appfs0),44m(rootfs1),4m(appfs1),30m(datafs) rw rootfstype=jffs2 bootcmd=run flash_self bootdelay=3 baudrate=9600 ethaddr=00:11:22:33:44:AA gatewayip=192.168.255.255 netmask=255.255.255.0 loadaddr=0x8b000000 console=ttyAMA0,115200n8N
- Display specified environment variables.
Hi1710_UBOOT>printenv ipaddr ipaddr=192.168.0.1
System Response
None