主题 : 各位大侠,请教个问题。我用mkimage命令失败,不知道什么原因呢? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 81439
精华: 0
发帖: 37
金钱: 190 两
威望: 38 点
综合积分: 74 分
注册时间: 2012-11-08
最后登录: 2013-02-24
楼主  发表于: 2012-12-11 22:08

 各位大侠,请教个问题。我用mkimage命令失败,不知道什么原因呢?

[root@localhost boot]# ./mkimage -A arm -o linux -T kernel -C none -a 0x30008000 -e 0x30008040 -d zImage zImage.img
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)
       ./mkimage [-D dtc_options] -f fit-image.its fit-image
[root@localhost boot]# ls
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-12-11 22:53
./mkimage -A arm -o linux -T kernel -C none -a 0x30008000 -e 0x30008040 -d zImage zImage.img

应该是./mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008040 -d zImage zImage.img吧。注意"-O"是大写的‘O’
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."