2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Table of contents
EMMC/SD card operation commands:
FAT format file system operation commands:
EXT format file system operation commands
After burning uboot into the board, it will take three seconds for the system to enter after booting. During these three seconds, press enter to enter the uboot command mode.
help / ? : You can get the commands supported by the current uboot
? bootz or help bootz: View the usage of the "bootz" command
bdinfo: View board information (DRAM start address and size, startup parameter save start address, baud rate, sp (stack pointer) start address, etc.)
printenv: output environment variable information
setenv: Set environment variables, customize environment variables, or delete environment variables
saveenv: save environment variables
md: Display memory value
nm: Modify the memory value of the specified address
mm: Modify the memory value of the specified address, the address will automatically increase
mw: fill a memory segment with a specified data
cp: data copy command, used to copy data in DRAM from one memory segment to another, or copy data in Nor Flash to DRAM
cmp: comparison command, used to compare whether the data in two memory segments are equal
ping: Verify network communication
dhcp: Get an IP address from a router
nfs: Share resources between computers over the network
TFTP downloads things to DRAM via the network
mmc: is a series of commands, which can be followed by different parameters
mmc info: output MMC device information
mmc rescan: scan MMC devices
mmc list: List all currently valid MMC devices
mmc dev: switch MMC device
mmc part: List the partitions of the MMC device
mmc read: read MMC device information
mmc write: write data to the MMC device
mmc hwpartition: set the partition of MMC device
1. The fatinfo command queries the file system information of the specified MMC device partition
2. The fatls command is used to query the directory and file information of FAT format devices
3. Use the fstype command to view the file system format of a partition of the MMC device
4. The fatload command is used to read the specified file into DRAM
5. The fatwrite command writes the data in DRAM to the MMC device
1. The ext4ls command can query partition directories and files in ext4 format
1. nand info command prints NAND Flash information
2. nand write command switches NAND Flash
3. nand erase command to erase NAND Flash
4. The nand write command writes the specified data to the specified address of NAND
5. The nand read command reads data of a specified size from a specified address in NAND to DRAM
1. booz command to start the zImage image file
To boot Linux, you must put zImage and dtb into DRAM.
2. Bootm command to start the uImage image file
3. Boot command, read the environment variable bootcmd to start the Linux system
1. Restart with reset command
2. The go command jumps to the specified address to execute the application
3. Run command runs defined in environment variables
4. mtest command memory read and write test command