uboot引导powerpc,bootm的用法

=> 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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值