天嵌 ARM开发社区

 找回密码
 注册
查看: 3166|回复: 2

请问如何测试自己移植uboot过程的bin文件

[复制链接]
gongping11 发表于 2011-9-21 23:24:35 | 显示全部楼层 |阅读模式
我最近在作u-boot移植,我想测试一下自己每一步移植的正确性,想问问如何测试,我作了从tftp下载到SDRM 中,但是好像出问题了,不能运行??请教??是地址不对还是什么问题??

##### EmbedSky BIOS for SKY2440/TQ2440 #####                                    
Press Space key to Download Mode !                                             
                                                                                
#####    Boot for Nor Flash Main Menu   #####                                   
#####     EmbedSky USB download mode     #####                                 
                                                                                
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash            
[2] Download Eboot (eboot.nb0) to Nand Flash                                    
[3] Download Linux Kernel (zImage.bin) to Nand Flash                           
[5] Download CRAMFS image to Nand Flash                                         
[6] Download YAFFS image (root.bin) to Nand Flash                              
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it               
[8] Boot the system                                                            
[9] Format the Nand Flash                                                      
[0] Set the boot parameters                                                     
[a] Download User Program (eg: uCOS-II or TQ2440_Test)                          
Download LOGO Picture (.bin) to Nand  Flash                                 
[l] Set LCD Parameters                                                         
[n] Enter TFTP download mode menu                                               
[o] Download u-boot to Nor Flash                                                
[r] Reboot u-boot                                                               
[t] Test Linux Image (zImage)                                                   
[q] quit from menu                                                              
Enter your selection: n                                                         
                                                                                
#####    Boot for Nor Flash Main Menu   #####                                   
#####     EmbedSky TFTP download mode     #####                                 
                                                                                
[1] Download u-boot.bin to Nand Flash                                          
[2] Download Eboot (eboot.nb0) to Nand Flash                                    
[3] Download Linux Kernel (zImage.bin) to Nand Flash                           
[4] Download stepldr.nb1 to Nand Flash                                          
[5] Set TFTP parameters(PC IP,TQ2440 IP,Mask IP...)                             
[6] Download YAFFS image (root.bin) to Nand Flash                              
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it               
[8] Boot the system                                                            
[9] Format the Nand Flash                                                      
[0] Set the boot parameters                                                     
[a] Download User Program (eg: uCOS-II or TQ2440_Test)                          
Download LOGO Picture (.bin) to Nand  Flash                                 
[l] Set LCD Parameters                                                         
[o] Download u-boot to Nor Flash                                                
[p] Test network (TQ2440 Ping PC's IP)                                          
[r] Reboot u-boot                                                               
[t] Test Linux Image (zImage)                                                   
[q] Return main Menu                                                            
Enter your selection: 5                                                         
Enter the TFTP Server(PC) IP address:(xxx.xxx.xxx.xxx)                          
172.16.14.181                                                                  
Enter the SKY2440/TQ2440 IP address:(xxx.xxx.xxx.xxx)                           
172.16.14.152                                                                  
Enter the Mask IP address:(xxx.xxx.xxx.xxx)                                    
255.255.255.0                                                                  
Save TFTP IP parameters?(y/n)                                                   
y                                                                              
Saving Environment to NAND...                                                   
Erasing Nand...Writing to Nand... done                                          
                                                                                
#####    Boot for Nor Flash Main Menu   #####                                   
#####     EmbedSky TFTP download mode     #####                                 
                                                                                
[1] Download u-boot.bin to Nand Flash                                          
[2] Download Eboot (eboot.nb0) to Nand Flash                                    
[3] Download Linux Kernel (zImage.bin) to Nand Flash                           
[4] Download stepldr.nb1 to Nand Flash                                          
[5] Set TFTP parameters(PC IP,TQ2440 IP,Mask IP...)                             
[6] Download YAFFS image (root.bin) to Nand Flash                              
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it               
[8] Boot the system                                                            
[9] Format the Nand Flash                                                      
[0] Set the boot parameters                                                     
[a] Download User Program (eg: uCOS-II or TQ2440_Test)                          
Download LOGO Picture (.bin) to Nand  Flash                                 
[l] Set LCD Parameters                                                         
[o] Download u-boot to Nor Flash                                                
[p] Test network (TQ2440 Ping PC's IP)                                          
[r] Reboot u-boot                                                               
[t] Test Linux Image (zImage)                                                   
[q] Return main Menu                                                            
Enter your selection: 7                                                         
Enter downloads to SDRAM address:                                               
0x2000                                                                          
Enter program name:                                                            
u-boot-led.bin                                                                  
tftp 0x2000 u-boot-led.bin                                                      
dm9000 i/o: 0x20000300, id: 0x90000a46                                          
MAC: 0a:1b:2c:3d:4e:5f                                                         
TFTP from server 172.16.14.181; our IP address is 172.16.14.152                 
Filename 'u-boot-led.bin'.                                                      
Load address: 0x2000                                                            
Loading: T #######                                                              
done                                                                           
Bytes transferred = 98028 (17eec hex)                                          
## Starting application at 0x00002000 ...                                       
## Application terminated, rc = 0x0     
        
这是为什么呢?有谁知道吗?求解?每一次都出现类似的情况??求教??谢谢
 楼主| gongping11 发表于 2011-9-21 23:26:06 | 显示全部楼层
希望有谁给点意见??谢谢!!
回复

使用道具 举报

 楼主| gongping11 发表于 2011-9-21 23:49:46 | 显示全部楼层
知道怎么解决了,我把制作好的uboot'更名为zImage.bin,然后采用Test zImage.bin 选项成功了!!

#####    Boot for Nor Flash Main Menu   #####                                   
#####     EmbedSky TFTP download mode     #####                                 
                                                                                
[1] Download u-boot.bin to Nand Flash                                          
[2] Download Eboot (eboot.nb0) to Nand Flash                                    
[3] Download Linux Kernel (zImage.bin) to Nand Flash                           
[4] Download stepldr.nb1 to Nand Flash                                          
[5] Set TFTP parameters(PC IP,TQ2440 IP,Mask IP...)                             
[6] Download YAFFS image (root.bin) to Nand Flash                              
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it               
[8] Boot the system                                                            
[9] Format the Nand Flash                                                      
[0] Set the boot parameters                                                     
[a] Download User Program (eg: uCOS-II or TQ2440_Test)                          
[b] Download LOGO Picture (.bin) to Nand  Flash                                 
[l] Set LCD Parameters                                                         
[o] Download u-boot to Nor Flash                                                
[p] Test network (TQ2440 Ping PC's IP)                                          
[r] Reboot u-boot                                                               
[t] Test Linux Image (zImage)                                                   
[q] Return main Menu                                                            
Enter your selection: t                                                         
dm9000 i/o: 0x20000300, id: 0x90000a46                                          
MAC: 0a:1b:2c:3d:4e:5f                                                         
TFTP from server 172.16.14.181; our IP address is 172.16.14.152                 
Filename 'zImage.bin'.                                                         
Load address: 0x30008000                                                        
Loading: T #######                                                              
done                                                                           
Bytes transferred = 98084 (17f24 hex)                                          
Warning: this binary is not compressed linux kernel image                       
zImage magic = 0x33f801e0                                                      
NOW, Booting Linux......��                                                      
                                                                                
U-Boot 2009.08 (Sep 20 2011 - 21:15:02)                                         
                                                                                
DRAM:  64 MB                                                                    
Flash:  2 MB                                                                    
*** Warning - bad CRC, using default environment                                
                                                                                
In:    serial                                                                  
Out:   serial                                                                  
Err:   serial                                                                  
MY2440 #   

以上的移植支持了SDRAM和Flash这说明我的移植没问题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-18 07:43 , Processed in 2.042860 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表