主题 : u-boot-2009.11的tftp下载问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 34628
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2010-12-19
最后登录: 2012-06-06
楼主  发表于: 2011-07-22 00:39

 u-boot-2009.11的tftp下载问题

我的板子是mini2440,1GB nand flash,按照在本站下载的各种学习资料,实现了工具链的制作,u-boot移植,内核移植,建立根文件系统等项目,现在进行到启动根文件系统时出现问题:

我做的根文件系统镜像为12MB左右,板子上的u-boot-2009.11通过tftpboot命令下载根文件系统到0x30008000地址处,显示信息如下:

[ faye@mini2440 ]# tftpboot 192.168.1.17:rootfs.img                    
dm9000 i/o: 0x20000300, id: 0x90000a46                                  
DM9000: running in 16 bit mode                                                                          
MAC: 07:06:05:03:02:01                                                            
operating at unknown: 0 mode                                                
Using dm9000 device                                                              
TFTP from server 192.168.1.17; our IP address is 192.168.1.79; sending through gateway 192.168.1.1      
Filename 'rootfs.img'.                                                                
Load address: 0x30008000                                                                                
                                                                                                        
Loading:  ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t#

         ######################################################### ICMP Host Redirect to 192.168.1.17  I
          ICMP Host Redirect to 192.168.1.17                                            
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t
          ICMP Host Redirect to 192.168.1.17                                                        
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t#

         ########################################################### ICMP Host Redirect to 192.168.1.17  
          ICMP Host Redirect to 192.168.1.17                                    
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t
          ICMP Host Redirect to 192.168.1.17                    
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t#

         ########################################################## ICMP Host Redirect to 192.168.1.17  
          ICMP Host Redirect to 192.168.1.17                                                            
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t
          ICMP Host Redirect to 192.168.1.17                                                    
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t#

         ######################################################### ICMP Host Redirect to 192.168.1.17  I
          ICMP Host Redirect to 192.168.1.17                            
         # ICMP Host Redirect to 192.168.1.17 # ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect t

done                                                                                              
ICMP Host Redirect to 192.168.1.17  ICMP Host Redirect to 192.168.1.17 Bytes transferred = 12399552 (bd)

我的问题是,根据上述显示,下载过程好像被分成了好几段,可我看资料上给出的下载信息,下载过程是一气呵成的(#号连续,一次完成)。我这种分成好几段下载会不会造成下载到开发板内存中的文件镜像损坏?

另外,我想问一下,在哪里能下载到支持yaffs2烧写的u-boot-2009.11?

谢谢帮忙~
级别: 新手上路
UID: 34628
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
贡献值: 0 点
综合积分: 20 分
注册时间: 2010-12-19
最后登录: 2012-06-06
1楼  发表于: 2011-07-22 00:45
我是楼主,对上述问题的补充:

  宿主机是ubuntu,使用开发板附带网线,与开发板通过路由器连接(若不使用路由器的话,开发板ping不通主机,也无法tftpboot下载),将上述根文件系统使用nand write.yaffs命令烧写进flash后,无法启动。显示:
  Failed to execute /linuxrc.  Attempting defaults...              
    Kernel panic - not syncing: Attempted to kill init!  

另,也使用了资料上推荐的Tekkaman Ninja网友的u-boot-2009.11,同样出现上述错误
级别: 新手上路
UID: 28160
精华: 0
发帖: 29
金钱: 145 两
威望: 29 点
贡献值: 0 点
综合积分: 58 分
注册时间: 2010-09-06
最后登录: 2012-03-23
2楼  发表于: 2011-07-31 16:12
你tftp下载内核的时候出现这样的分段信息吗?
Tekkaman Ninjan移植的那u-boot好像yafss2烧写是有问题,我的也烧写不正确。但是我用superivivi将我做的yaffs2文件系统下载到nandlfash地址0x560000处后,用u-boot就可以挂载根文件系统了。