Common U-boot Command Detailed (full)

Source: Internet
Author: User
Tags bmp image

Turn from: http://blog.csdn.net/ghostyu/article/details/6968681

U-boot has developed to the present, his command line mode is very close to the shell under Linux, command line mode mode to support the "tab" key command Completion and command history . And if you type the first few characters of the command and don't repeat the other commands, so you just need to play these characters, like I want to see this u-boot version number, the command is "version", but in all of the commands are not any other command is "V" start, so only need to enter " V "can be.

[u-boot@mini2440]# version

U-boot 2009.11 (April 04 2010-12:09:25)
[u-boot@mini2440]# V

U-boot 2009.11 (April 04 2010-12:09:25)
[u-boot@mini2440]# Base
Base address:0x00000000
[u-boot@mini2440]# Ba
Base address:0x00000000


Since U-boot supports too many commands, it is not realistic and unnecessary to speak a single detail. So below I pick some burn write and guide commonly used commands to introduce, the other orders are extrapolate, or "Help" bar.
(1) Get help
Command: Help or?
Features: View all commands supported in the current U-boot version.

[u-boot@mini2440]# Help
? -alias for ' help '
Askenv-get Environment variables from stdin
Base-print or set address offset
Bdinfo-print Board Info Structure
Bmp-manipulate BMP image data
Boot-boot default, i.e., run ' bootcmd '
Bootd-boot default, i.e., run ' bootcmd '
Bootelf-boot from a ELF image in memory
Bootm-boot application image from memory
Bootp-boot image via network using BOOTP/TFTP protocol
Bootvx-boot VxWorks from the ELF image
Cmp-memory Compare
Coninfo-print Console devices and information
Cp-memory Copy
Crc32-checksum calculation
Date-get/set/reset Date & Time
Dcache-enable or disable data cache
Dhcp-boot image via network using DHCP/TFTP protocol
Echo-echo args to Console
Editenv-edit environment variable
Eeprom-eeprom sub-system
Erase-erase FLASH Memory
Exit-exit Script
Fatinfo-print Information about filesystem
Fatload-load binary file from a DOS filesystem
fatls-list files in a directory (default/)
Flinfo-print FLASH Memory Information
Fsinfo-print Information about filesystems
Fsload-load binary file from a filesystem image
Go-start application at address ' addr '
Help-print online Help
I2C-I2C sub-system
Icache-enable or disable instruction cache
Iminfo-print header information for application image
Imls-list all images found in flash
Imxtract-extract a part of a multi-image
Itest-return true/false on integer Compare
Loadb-load binary file over serial line (Kermit mode)
Loads-load S-record file over serial line
Loadx-load binary file over serial line (Xmodem mode)
Loady-load binary file over serial line (Ymodem mode)
Loop-infinite Loop on address range
ls-list files in a directory (default/)
Md-memory Display
Mm-memory Modify (auto-incrementing address)
Mmc-mmc sub-system
Mtest-simple RAM read/write Test
Mw-memory Write (fill)
Nand-nand sub-system
Nboot-boot from NAND device
Nfs-boot image via network using NFS protocol
Nm-memory Modify (constant address)
Ping-send ICMP echo_request to network host
Printenv-print Environment variables
Protect-enable or disable FLASH write protection
Rarpboot-boot image via network using RARP/TFTP protocol
Reginfo-print Register Information
Reset-perform RESET of the CPU
Run-run commands in a environment variable
Saveenv-save environment variables to persistent storage
Setenv-set Environment variables
Showvar-print Local Hushshell variables
Sleep-delay execution for some time
Source-run Script from memory
Test-minimal Test like/bin/sh
Tftpboot-boot image via network using TFTP protocol
Unzip-unzip A memory region
Usb-usb sub-system
Usbboot-boot from USB device
Version-print Monitor Version

If you want to get more detailed help for a command, you can use:
Help < The instructions you want to check >
Or? < you want to check the instructions >,
Even h < you want to look up the instruction abbreviation >.

Take BMP directives for example:

[u-boot@mini2440]# help BMP
bmp-manipulate BMP image data

Usage:
BMP Info <imageAddr>-Display Image info
BMP display <imageAddr> [x y]-display image at X,y
[u-boot@mini2440]# ? Bmp
bmp-manipulate BMP image data

Usage:
BMP Info <imageAddr>-Display Image info
BMP display <imageAddr> [x y]-display image at X,y
[u-boot@mini2440]# H BM
bmp-manipulate BMP image data

Usage:
BMP Info <imageAddr>-Display Image info
BMP display <imageAddr> [x y]-display image at X,y

(2) environment variables (environment variables, env) and related directives
Like the shell, U-boot also has environment variables. Some u-boot default environment variables are as follows:

Environment variables

Explanatory notes

BootDelay Wait seconds to perform an automatic start (command in Bootcmd)
BaudRate Baud rate of Serial control console
Netmask Network Mask for Ethernet
Ethaddr MAC Address of Ethernet
Bootfile The default download file name
Bootargs Boot parameters passed to the Linux kernel
Bootcmd Execute command at auto start

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.