=> help bootm
bootm - boot application image from memory
Usage:
bootm [addr [arg ...]]
- boot application image stored in memory
passing arguments 'arg ...'; when booting a Linux kernel,
'arg' can be the address of an initrd image
When booting a Linux kernel which requires a flat device-tree
a third argument is required which is the address of the
device-tree blob. To boot that kernel without an initrd image,
use a '-' for the second argument. If you do not pass a third
a bd_info struct will be passed instead
Sub-commands to do part of the bootm sequence. The sub-commands must be
issued in the order below (it's ok to not issue all sub-commands):
start [addr [arg ...]]
loados - load OS image
ramdisk - relocate initrd, set env initrd_start/initrd_end
fdt - relocate flat device tree
bdt - OS specific bd_t processing
cmdline - OS specific command line processing/setup
prep - OS specific prep before relocation or go
go - start OS
=>
uboot使用bootm命令引导操作系统,不同架构bootm的功能不同。对于arm,也许就是带一个内核的内存地址就可以了,其他参数由bootargs决定。但是powerpc不是,说说心得:
格式:
bootm 内核地址 ramdisk地址 dtb地址
首先我们要把数据下载到内存,然后使用上面的命令。如果有ramdisk,那么系统自动识别并挂载,bootargs无关紧要。如果不用ramdisk咋办呢,那就用一横表示没有:
bootm 内核地址 - dtb地址
当然,这时候要指定bootargs了。
同理,挂载jffs、yaffs也是一样道理。
http://blog.csdn.net/lanmanck/article/details/5395348