u-boot-linaro-stable命令列表

Panda # help
?       - alias for 'help'
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dhcp    - boot image via network using DHCP/TFTP protocol
echo    - echo args to console
editenv - edit environment variable
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fdt     - flattened device tree utility commands
go      - start application at address 'addr'
gpio    - input/set/clear/toggle gpio pins
help    - print command description/usage
i2c     - I2C sub-system
iminfo  - print header information for application image
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
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mtest   - simple RAM read/write test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
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
true    - do nothing, successfully
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
Panda # 


 

 


熊猫#帮助
?              -帮助别名'
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点击打开链接

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值