uboot-mkimage

本文介绍如何使用mkimage工具创建特定格式的映像文件。首先需要安装uboot-mkimage,然后通过mkimage命令指定参数来生成映像。参数包括设置架构、操作系统类型、映像类型等。

mkimage is used to make image.

you should install uboot-mkimage at first:

sudo apt-get install uboot-mkimage


then you can use the mkimage command, such as:

mkimage -d ~/share/harman/u-boot.bin -a 1000000 -e 1000000 -A arm -O linux -T kernel -C none uboot

the parameters as follow:

$ mkimage
Usage: mkimage -l image
          -l ==> list image header information
       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)



root@233:~# apt install git-core gnupg flex bison gperf \ > build-essential zip curl zlib1g-dev libc6-dev \ > x11proto-core-dev libx11-dev \ > libgl1-mesa-dev g++-multilib tofrodos \ > python-markdown libxml2-utils xsltproc python uboot-mkimage lzma Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'git' instead of 'git-core' Package uboot-mkimage is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: u-boot-tools E: Package 'uboot-mkimage' has no installation candidate root@233:~# apt install git-core gnupg flex bison gperf \ > build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev \ > ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev \ > lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos \ > python-markdown libxml2-utils xsltproc python uboot-mkimage lzma Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'git' instead of 'git-core' Note, selecting 'lib32z1-dev' instead of 'lib32z-dev' Package uboot-mkimage is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: u-boot-tools Package ia32-libs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: lib32ncurses5 lib32z1 E: Package 'ia32-libs' has no installation candidate E: Unable to locate package lib32readline5-dev E: Unable to locate package mingw32 E: Package 'uboot-mkimage' has no installation candidate root@233:~#
09-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值