主题 : 用mkimage制作linux镜像后不能启动 复制链接 | 浏览器收藏 | 打印
没有个性,何来签名?
级别: 新手上路
UID: 77894
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
综合积分: 20 分
注册时间: 2012-09-13
最后登录: 2013-07-20
楼主  发表于: 2012-09-18 12:18

 用mkimage制作linux镜像后不能启动

  主机上的zImage 直接tftp下载后能够成功启动,但是如果用mkimage:
  mkimage -n 'linux-2.6.14' -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d zImage zImage.img生成的zImage.img不能成功启动
  
  我的操作如下:
1,mkimage -n 'linux-2.6.14' -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d zImage zImage.img
2,uboot端:tftp 50008000 zImage.img
3,   bootm 50008000
提示如下:MINI6410 # bootm 50008000                                                                    
## Booting image at 50008000 ...                                                            
   Image Name:   linux-2.6.14                                                                
   Image Type:   ARM Linux Kernel Image (uncompressed)                                      
   Data Size:    3763772 Bytes =  3.6 MB                                                    
   Load Address: 30008000                                                                    
   Entry Point:  30008000                                                                    
   Verifying Checksum ... OK                                                                
OK                                                                                          
                                                                                            
Starting kernel ...                                                                          
                          然后就一直卡在这里了,一直不动了!
4,把下载地址换成30008000:tftp 30008000 zImage.img,提示如下:
MINI6410 # bootm 30008000                                                                    
## Booting image at 30008000 ...                                                            
Boot with Image                                                                              
do not support this address : 30008000                                                      
                                                                                            
Starting kernel ...              然后卡在这

5,按照另外一种方式:
mkimage -n 'linux-2.6.14' -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008040 -d zImage zImage.img
6,uboot端:tftp 50008000 zImage.img
       bootm 50008000 提示如下:
MINI6410 # bootm 50008000                                                                    
## Booting image at 50008000 ...                                                            
   Image Name:   linux-2.6.14                                                                
   Image Type:   ARM Linux Kernel Image (uncompressed)                                      
   Data Size:    3763772 Bytes =  3.6 MB                                                    
   Load Address: 30008000                                                                    
   Entry Point:  30008040                                                                    
   Verifying Checksum ... OK                                                                
OK                                                                                          
                                                                                            
Starting kernel ...    也是卡在这里!
7,uboot端 : tftp 30008000 zImage.img
      bootm 30008000提示如下:
## Booting image at 30008000 ...                                                            
Boot with Image                                                                              
do not support this address : 30008000                                                      
                                                                                            
Starting kernel ...                                        然后卡在这。。。




高手们,按照网上的两种方式都不对啊,,何解啊?如果不用mkimage直接下载zImage  是能够启动的,为何制作成镜像就不能启动了!!小弟万分感谢啊。。。。                                
    





                                                            
                    
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2012-09-18 14:11
推荐使用手册介绍的步骤方法,我们不使用u-boot
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2012-09-18 14:15
你是怎么直接下载zImage启动成功的?
"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."
没有个性,何来签名?
级别: 新手上路
UID: 77894
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
综合积分: 20 分
注册时间: 2012-09-13
最后登录: 2013-07-20
3楼  发表于: 2012-09-18 18:39
tftp下载内核到板子启动的
级别: 新手上路
UID: 84
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2008-02-12
最后登录: 2018-02-08
4楼  发表于: 2012-10-15 08:38
我怀疑是官方修改了U-BOOT代码使得支持直接启动zImage,不需要再转为uImage了。