This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8168 boot error

hi, Experts

I boot the dm8168, but failed. Follows are the log info.

 

davinci_mdio davinci_mdio.0: resetting idled controller                        
net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=282f014)
net eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:02, id=282f014)
Sending DHCP requests .                                                        
PHY: 0:01 - Link is Up - 100/Full                                              
., OK                                                                          
IP-Config: Got DHCP answer from 0.0.0.0, my address is 172.21.96.192           
IP-Config: Complete:                                                           
     device=eth0, addr=172.21.96.192, mask=255.255.255.0, gw=172.21.96.254,    
     host=172.21.96.192, domain=asia.polycom.com, nis-domain=(none),           
     bootserver=0.0.0.0, rootserver=172.21.96.6, rootpath=                     
VFS: Unable to mount root fs via NFS, trying floppy.                           
VFS: Cannot open root device "nfs" or unknown-block(2,0)                       
Please append a correct "root=" boot option; here are the available partitions:
1f00             256 mtdblock0  (driver?)                                      
1f01               8 mtdblock1  (driver?)                                      
1f02            2560 mtdblock2  (driver?)                                      
1f03            1272 mtdblock3  (driver?)                                      
1f04            2432 mtdblock4  (driver?)                                      
1f05             128 mtdblock5  (driver?)                                      
1f06            4352 mtdblock6  (driver?)                                      
1f07          204928 mtdblock7  (driver?)                                      
1f08           50304 mtdblock8  (driver?)                                      
b300         7761920 mmcblk0  driver: mmcblk                                   
  b301           40131 mmcblk0p1 00000000-0000-0000-0000-000000000mmcblk0p1    
  b302          883575 mmcblk0p2 00000000-0000-0000-0000-000000000mmcblk0p2    
  b303         6835657 mmcblk0p3 00000000-0000-0000-0000-000000000mmcblk0p3    
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) 
Backtrace:                                                                     
[<c0043b44>] (dump_backtrace+0x0/0x110) from [<c0353b74>] (dump_stack+0x18/0x1c)
 r7:cc813000 r6:00000000 r5:c002b71c r4:c04b98d0                               
[<c0353b5c>] (dump_stack+0x0/0x1c) from [<c0353bd8>] (panic+0x60/0x17c)        
[<c0353b78>] (panic+0x0/0x17c) from [<c0009254>] (mount_block_root+0x1e0/0x220)
 r3:00000000 r2:00000000 r1:cc82bf58 r0:c040632c                               
[<c0009074>] (mount_block_root+0x0/0x220) from [<c0009340>] (mount_root+0xac/0xc
c)                                                                             
[<c0009294>] (mount_root+0x0/0xcc) from [<c00094d0>] (prepare_namespace+0x170/0x
1d4)                                                                           
 r4:c04b9264                                                                   
[<c0009360>] (prepare_namespace+0x0/0x1d4) from [<c0008784>] (kernel_init+0x114/
0x154)                                                                         
 r5:c0008670 r4:c04b9200                                                       
[<c0008670>] (kernel_init+0x0/0x154) from [<c0063ae0>] (do_exit+0x0/0x5e4)     
 r5:c0008670 r4:00000000

 

And the boot arg is :

TI8168_EVM#print                                                               
verify=yes                                                                     
ramdisk_file=ramdisk.gz                                                        
loadaddr=0x81000000                                                            
script_addr=0x80900000                                                         
loadbootscript=fatload mmc 1 ${script_addr} boot.scr                           
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${scri
pt_addr}                                                                       
ethaddr=90:d7:eb:1b:f9:14                                                      
ethact=DaVinci EMAC                                                            
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${nfsserver}:${gatewayip}:${netma
sk}:${hostname}:eth0:off                                                       
machid=af0                                                                     
nfsserver=172.21.96.6                                                          
gatewayip=172.21.96.254                                                        
ipaddr=172.21.96.8                                                             
netmask=255.255.255.0                                                          
hostname=tonyeva                                                               
rootpath=targetfs_01_01_80                                                     
bootdelay=4                                                                    
baudrate=115200                                                                
oldbootargs=console=ttyO2,115200n8 rootwait rw mem=256M earlyprintk vram=50M ti8
16xfb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=172.21.96.6: ip=dhcp         
bootargs=console=ttyO2,115200n8 rootwait rw mem=256M earlyprintk vram=50M ti816x
fb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=172.21.96.6: ip=dhcp            
autoload=no                                                                    
oldserverip=172.21.96.6                                                        
serverip=172.21.96.6                                                           
oldbootfile=uImage-dm816x-evm.bin                                              
bootfile=uImage-dm816x-evm.bin                                                 
oldbootcmd=dhcp;setenv serverip 172.21.96.6;tftpboot;bootm                     
bootcmd=dhcp;setenv serverip 172.21.96.6;tftpboot;bootm                        
stdin=serial                                                                   
stdout=serial                                                                  
stderr=serial                                                                  
ver=U-Boot 2010.06 (Feb 15 2011 - 14:53:44)                                    
                                                                               
Environment size: 1162/8188 bytes      

 

 

  • The NFS driver may have booted faster than the network driver. Try adding a boot argument of "rootdelay=5". You want to see a "Link Up" message before the "NFS" messages. I've never dealt with a 2 network interface situation. I don't know which interface gets chosen for NFS.

  • Thanks Norman. I added rootdelay=5, but it still failed with the same error.

    And I did not using 2 network interface.

  • The "eth0" and "eth1" messages had me thinking there were two networks. Usually it is just "eth0". At this point in the bootup, there should be NFS success or fail messages. Seeing neither suggests the root mount code seems to think the NFS device is not ready. Your network connection must be good as u-boot appears to have TFTP'ed the kernel. Your bootarg "nfsroot=172.21.96.6" does not have a path. Usually it something like "nfsroot=172.21.96.6:/home/somedirectory".