1. Printenv prints environment variables.
Uboot> printenv
Baudrate = 115200
Ipaddr = 192.168.0.111
Ethaddr = 32: 34: 46: 78: 9A: DC
Serverip = 192.168.0.100
Environment size: 80/8188 bytes
2. setenv: Set new variables
For example:
Uboot> setenv myboard at91rm9200dk
Uboot> saveenv
Uboot> printenv
Baudrate = 115200
Ipaddr = 192.168.0.111
Ethaddr = 32: 34: 46: 78: 9A: DC
Serverip = 192.168.0.100
Myboard = at91rm9200dk
Environment size: 102/8188 bytes
To reset the startup parameter bootargs:
Uboot> setenv bootargs 'noinitrd root =/dev/mtdblock2 init =/linuxrc console = ttysac0'
Uboot> saveenv
3. The saveenv save variable command saves all the currently defined variables and their values to flash. The space used to store variables and their values is only 8 KB and should not exceed. (For the above example, use with setenv each time)
4. loadb downloads binary data through the serial port Kermit protocol.
5. For TFTP programs to be downloaded over the network, you need to set the network configuration first.
Simple Configuration:
Uboot> setenv ethaddr 32: 34: 46: 78: 9A: DC
Uboot> setenv ipaddr 192.168.0.111
Uboot> setenv serverip 192.168.0.100
// Download the BIN file to address 0x20000000.
Uboot> TFTP 20000000 application. Bin (application. Bin should be located in the directory of the TFTP service program)
Uboot> TFTP 32000000 zimage. Bin
Read zimage. bin in the FTP-configured default directory of server (IP = serverip set in environment variable) to 32000000 of the physical memory through TFTP.
6. md displays the content in the memory area.
7. Modify the memory in mm and the address increases automatically.
8. Modify the memory at nm. The address does not increase automatically.
9. Fill the memory with the model for MW
Uboot> MW 32000000 FF 10000 (set 0x32000000 bytes starting with 0x10000 to 0xff)
10. CP copies one piece of memory to the other
11. CMP compares two memory zones
After these memory operation commands, you can add a suffix to indicate the size of the operation data. For example, CP. B Indicates copying by byte. Protect write Protection Operation Protect on 1:0-3 (that is, to protect the 0-3 Sector of the first flash) Protect off 1:0-3 cancel write protection erase sector.
12. NFS
Uboot> NFS 32000000 192.168.0.2: zimage. bin reads aa.txt from the NFS file system in 192.168.0.2 (Linux NFS file system) into the memory 0x32000000 (192.168.0.2 is the configured NFS server address, the file to be copied must be in the NFS-configured service directory)
Download this doc
.