zoukankan      html  css  js  c++  java
  • 使用mkimage生成boot.scr

    1、mkimage工具 

    直接运行mkimage得到一下信息: 

    mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image

              -A ==> set architecture to 'arch'
              -O ==> set operating system to 'os'
              -T ==> set image type to 'type'
              -C ==> set compression type 'comp'
              -a ==> set load address to 'addr' (hex)
              -e ==> set entry point to 'ep' (hex)
              -n ==> set image name to 'name'
              -d ==> use image data from 'datafile'
              -x ==> set XIP (execute in place)

    2、编写boot.script文件

    if fatload mmc 0 80200000 uImage
    then
     echo ***** Kernel: /dev/mmcblk0p1/uImage *****
    fi
    echo ***** RootFS: /dev/mmcblk0p2 *****
    setenv bootargs 'console=ttyS2,115200n8 androidboot.console=ttyS2 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off mpurate=1000 omap_vout.vid1_static_vrfb_alloc=y'

    bootm 0x80200000 

    3、使用mkimage生成boot.scr

    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage.bin' -d boot.script boot.scr 

  • 相关阅读:
    c#的Marshal
    爬虫之requests详解
    爬取抖音视频
    爬取拉钩网
    爬虫自动登陆GitHub
    爬取博客园博客
    爬取煎蛋网文章
    爬取抽屉热搜榜文章
    准备
    爬虫示例
  • 原文地址:https://www.cnblogs.com/Shangzhi/p/2777323.html
Copyright © 2011-2022 走看看