在linuux-2.6.29/arch/arm/boot中生成zImage后,需要mkimage来引导生成uImage。
在命令行输入:mkimage------查看mkimage是否已生成(mkimage不是u-boot自带的工具,是u-boot在编译过程中生成的。所以进入、u-boot-2009.08/tools/中查看是否生成了mkimage。若产生了,命令:cp mkimage /usr/local/bin
此时在命令行输入:mkimage
显示:-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@localhost tftpboot]#mkimage -n ‘linux-2.6.
29′ -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -d zImage uImage.img
显示
Image Name: linux-2.6.29
Created: Fri Jan 12 17:14:50 2009
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1262504 Bytes = 1232.91 kB = 1.20 MB
Load Address: 0×30008000
Entry Point: 0×30008000
此时在boot/下生成了uImage.img文件。
阅读(806) | 评论(0) | 转发(0) |