简要:      

     有一个很简单的办法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:

linux uImage生成_命令行