U-Boot命令

来源:互联网 发布:修复sql注入漏洞 编辑:程序博客网 时间:2024/05/21 17:17

1 查询所有命令

    可以在U-Boot的命令行终端中输入help查看当前其命令和解析:

[u-boot@MINI2440]# help?       - alias for 'help'askenv  - get environment variables from stdinbase    - print or set address offsetbdinfo  - print Board Info structurebmp     - manipulate BMP image databoot    - boot default, i.e., run 'bootcmd'bootd   - boot default, i.e., run 'bootcmd'bootelf - Boot from an ELF image in memorybootm   - boot application image from memorybootp   - boot image via network using BOOTP/TFTP protocolbootvx  - Boot vxWorks from an ELF imagecmp     - memory compareconinfo - print console devices and informationcp      - memory copycrc32   - checksum calculationdate    - get/set/reset date & timedcache  - enable or disable data cachedhcp    - boot image via network using DHCP/TFTP protocolecho    - echo args to consoleeditenv - edit environment variableeeprom  - EEPROM sub-systemerase   - erase FLASH memoryexit    - exit scriptfalse   - do nothing, unsuccessfullyfatinfo - print information about filesystemfatload - load binary file from a dos filesystemfatls   - list files in a directory (default /)flinfo  - print FLASH memory informationfsinfo  - print information about filesystemsfsload  - load binary file from a filesystem imagego      - start application at address 'addr'help    - print command description/usagei2c     - I2C sub-systemicache  - enable or disable instruction cacheiminfo  - print header information for application imageimls    - list all images found in flashimxtract- extract a part of a multi-imageitest   - return true/false on integer compareloadb   - load binary file over serial line (kermit mode)loads   - load S-Record file over serial lineloadx   - load binary file over serial line (xmodem mode)loady   - load binary file over serial line (ymodem mode)loop    - infinite loop on address rangels      - list files in a directory (default /)md      - memory displaymm      - memory modify (auto-incrementing address)mmc     - MMC sub-systemmtest   - simple RAM read/write testmw      - memory write (fill)nand    - NAND sub-systemnboot   - boot from NAND devicenfs     - boot image via network using NFS protocolnm      - memory modify (constant address)ping    - send ICMP ECHO_REQUEST to network hostprintenv- print environment variablesprotect - enable or disable FLASH write protectionrarpboot- boot image via network using RARP/TFTP protocolreginfo - print register informationreset   - Perform RESET of the CPUrun     - run commands in an environment variablesaveenv - save environment variables to persistent storagesetenv  - set environment variablesshowvar - print local hushshell variablessleep   - delay execution for some timesource  - run script from memorytest    - minimal test like /bin/shtftpboot- boot image via network using TFTP protocoltrue    - do nothing, successfullyunzip   - unzip a memory regionusb     - USB sub-systemusbboot - boot from USB deviceusbslave- usbslave - get file from host(PC)version - print monitor versio

2 查询特定命令

    若想要更加详细的了解某个命令的使用方法,可以使用help + 命令的方法来查询,例如查询loadb命令的使用方法如下所示:


参考资料

[1]uboot命令总结

[2]Nand flash uboot 命令详解 

0 0
原创粉丝点击