u-boot-linaro-stable命令列表

来源:互联网 发布:电脑包 知乎 编辑:程序博客网 时间:2024/06/05 14:45
Panda # help?       - alias for 'help'base    - print or set address offsetbdinfo  - print Board Info structureboot    - boot default, i.e., run 'bootcmd'bootd   - boot default, i.e., run 'bootcmd'bootm   - boot application image from memorybootp   - boot image via network using BOOTP/TFTP protocolcmp     - memory compareconinfo - print console devices and informationcp      - memory copycrc32   - checksum calculationdhcp    - boot image via network using DHCP/TFTP protocolecho    - echo args to consoleeditenv - edit environment variableenv     - environment handling commandsexit    - exit scriptext2load- load binary file from a Ext2 filesystemext2ls  - list files in a directory (default /)false   - do nothing, unsuccessfullyfatinfo - print information about filesystemfatload - load binary file from a dos filesystemfatls   - list files in a directory (default /)fdt     - flattened device tree utility commandsgo      - start application at address 'addr'gpio    - input/set/clear/toggle gpio pinshelp    - print command description/usagei2c     - I2C sub-systemiminfo  - print header information for application imageimxtract- 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 lineloady   - load binary file over serial line (ymodem mode)loop    - infinite loop on address rangemd      - memory displaymm      - memory modify (auto-incrementing address)mmc     - MMC sub systemmmcinfo - display MMC infomtest   - simple RAM read/write testmw      - memory write (fill)nm      - memory modify (constant address)ping    - send ICMP ECHO_REQUEST to network hostprintenv- print environment variablespxe     - commands to get and boot from pxe filesreset   - Perform RESET of the CPUrun     - run commands in an environment variablesetenv  - 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, successfullyusb     - USB sub-systemusbboot - boot from USB deviceversion - print monitor, compiler and linker versionPanda # 


 

 


熊猫#帮助
?              -帮助别名'
base         - 打印或一组地址的偏移量
bdinfo         - 印刷电路板信息结构
boot          - 开机默认情况下,即运行“bootcmd”
bootd         - 启动默认情况下,即运行“bootcmd”
bootm        - 从内存中启动应用程序的图像
BOOTP       - 引导映像通过网络使用BOOTP / TFTP协议
CMP          - 内存比较
coninfo      - 打印控制台设备和信息
CP            - 内存拷贝
crc32       - 校验和计算
DHCP      - 引导映像通过网络使用DHCP / TFTP协议
echo        - 输出args到控制台
editenv    - 编辑环境变量
ENV        - 环境处理命令
exit          - 退出脚本
ext2load  -加载二进制文件从Ext2文件系统

ext2ls       - 列出目录中的文件(默认为/)
false        - 什么也不做,但没有成功
fatinfo       - 打印有关文件系统的信息
fatload      - 将二进制文件从DOS文件系统
fatls         - 列出目录中的文件(默认为/)
FDT        - 平板设备树实用程序命令
go          - 启动的应用程序地址的地址
GPIO       - 输入/设置/清除/切换GPIO引脚
help         - print命令说明/使用
I2C           - I2C子系统
iminfo               - 打印头的应用程序图像的信息
imxtract          -提取的一部分的多图象
ITEST            - 返回true / false在整数比较
loadb              - 加载二进制文件通过串口线(kermit的模式)
loads              - 通过串行线路的负载S-Record文件
loady              - 通过串口线(YMODEM模式的负载二进制文件)
loop              - 地址范围上的无限循环
MD               - 内存显示
mm               - 内存修改(自动递增地址)
MMC卡         - MMC子系统
mmcinfo        - 显示MMC信息
mtest          - 简单的RAM读/写测试
MW             - 内存写操作(填)
nm              - 内存修改(恒定的地址)
ping            - 网络主机发送ICMP ECHO_REQUEST
printenv      -打印环境变量
PXE          - 命令和引导PXE文件
reset           - 执行RESET的CPU
run             -在环境变量中运行 - 运行命令
SETENV     - 设置环境变量
showvar      - 打印本地hushshell的变量
sleep           - 延迟执行一段时间
source         - 从内存中运行脚本
test              - 测试,如/ bin / sh的最小
tftpboot        -引导映像通过网络使用TFTP协议
true              - 什么也不做,成功
USB             - USB子系统
usbboot        - 从USB设备启动
version        - 打印监示器,编译器和链接器版本
熊猫#   

------------------------------------------------------------------------------------------------------------------

http://elinux.org/Panda_How_to_MLO_%26_u-boot

 Introduction

A Panda board does not have any onboard flash, where many other development or evaluation boards keep their bootloader. Rather, code onboard the board (presumably in ROM) reads the second-stage bootloaders from the MMC (SD card).

The first-stage bootloader runs directly on the board from power-up. I don't know the name of this bootloader(From TI official wiki, it called Boot Rom). This bootloader initializes a minimal amount of CPU and board hardware, then accesses the first partition of the SD card (which must be in FAT format), and loads a file called "MLO", and executes it. "MLO" is the second-stage bootloader.

The second-stage bootloader can apparently be one of either the X-loader or SPL. This bootloader apparently also just reads the first partition of the SD card, and loads a file called "u-boot.bin", and executes it. "u-boot.bin" is the third-stage bootloader.

The third-stage bootloader is U-boot, which is a popular bootloader for many different embedded boards and products. This bootloader has lots of different features, including an interactive shell, variables, ability to access the SD card and show its contents, etc. What happens next depends on the version of U-boot you have for the Panda board, and how it is configured. In a very simple configuration, U-Boot will look for the file "uImage" in the root of the first partition of the SD card (which, again, must be formatted as a FAT partition), and execute that. This is the Linux kernel. U-Boot passes the kernel a command line argument. Depending on how the kernel is configured it may accept the command line from U-Boot, or use one that was compiled into it when it was built.

Newer kernels require that you use a recent MLO (SPL) and u-boot. Note: New u-boot with SPL replaces x-loader which you might find in other howtos.

You can build these from source, or try to find binaries. One issue with the binary route is that you might want to alter the kernel command line embedded inside u-boot. Such as for experimenting with different partition formats, or different filesystem types (ext3 vs ext2), etc. Of course you could stop the autoboot and type it in yourself, but we will build from source. An even better solution is to use a boot.scr file to send parameters to u-boot, it's easy to create, see below.

For this How-to, we will use the Code Sourcery G++ version arm-2009q3. It should already be installed on your system. MLO, u-boot and kernels have also been successfully built with arm-2010q1.

You can get u-boot from either linaro or mainline. The linaro tree usually has the latest patches.

Note: This is for Pandaboard, not Pandaboard ES. If you have a Pandaboard ES try PandaBoard_ES_uboot_howto instead.

 

-------------------------------------------------------------------------------------------------------------------------------

linaro社区uboot下载及编译:http://elinux.org/PandaBoard_ES_uboot_howto点击打开链接

原创粉丝点击