linux uImage生成

本文介绍了一个简化U-Boot编译流程的方法,通过将mkimage工具复制到交叉编译器目录下,使得编译完成后能直接生成uImage文件。此外还提供了mkimage工具的详细使用说明及命令参数解释。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

简要:      

     有一个很简单的办法u-boot编译结束时,会在tool文件夹下面生成一个mkimage文件,将这个文件复制到交叉编译器目录下的bin文件夹下面,以后编译时就会生成uImage文件,省的用命令行的方式转了,否则就是内核在编译生产image后在使用mkimage工具打包生产uImage.

mkimage在uboot源码下的路径:uboot/tools/*

mkimage工具使用说明:

nxbb@test:~/home/linux-2.6.39$ mkimage --help
Usage: mkimage -l image
          -l ==> list image header information
       mkimage [-x] -A arch -O os -T type -C comp -E encrypt -K keyfile -a addr -e ep -n name -d data_file[:data_file...] image
          -A ==> set architecture to 'arch'
          -E ==> set encryption to 'encrypt'
          -K ==> use key file from 'keyfile'
          -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)
       mkimage [-D dtc_options] -f fit-image.its fit-image
       mkimage -V ==> print version information and exit

某个平台使用的mkimage生产uImage:


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值