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.

NFS boot fail.

MY chip DM6467.

Uboot :

DM6467 EVM > print                                                             
bootcmd=nboot.e 0x80700000 0 0x160000; bootm                                   
bootdelay=3                                                                    
baudrate=115200                                                                
bootfile="uImage"                                                              
addclk=setenv bootargs ${bootargs} clkref=${clkref}                            
ethaddr=00:0e:99:02:b6:a3                                                      
ethact=DaVinci EMAC                                                            
nfshost=192.168.1.205                                                          
rootpath=/home/user/workdir/filesys                                            
bootargs=mem=116M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192.168.1.205:
/home/user/workdir/filesys ip=dhcp                                             
serverip=192.168.1.191                                                         
ipaddr=192.168.1.119                                                           
stdin=serial                                                                   
stdout=serial                                                                  
stderr=serial                                                                  
ver=U-Boot 2009.08 (Jun 21 2010 - 17:39:14)                                    
                                                                               
Environment size: 491/16380 bytes                                              
DM6467 EVM >           

and linux:

  drivers/rtc/hctosys.c: unable to open rtc device (rtc0)                        
eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f013)        
Sending DHCP requests ..                                                       
PHY: 1:01 - Link is Up - 100/Full                                              
., OK                                                                          
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.110           
IP-Config: Complete:                                                           
     device=eth0, addr=192.168.1.110, mask=255.255.255.0, gw=192.168.1.1,      
     host=192.168.1.110, domain=, nis-domain=(none),                           
     bootserver=0.0.0.0, rootserver=192.168.1.205, rootpath=, mtu=576          
Looking up port of RPC 100003/2 on 192.168.1.205                               
Looking up port of RPC 100005/1 on 192.168.1.205                               
VFS: Mounted root (nfs filesystem) on device 0:14.                             
Freeing init memory: 144K                                                      
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:                                                                     
[<c0030a34>] (dump_backtrace+0x0/0x114) from [<c031acb0>] (dump_stack+0x18/0x1c)
 r7:00000000 r6:00000000 r5:00000000 r4:c0430aa8                               
[<c031ac98>] (dump_stack+0x0/0x1c) from [<c031ad08>] (panic+0x54/0x124)        
[<c031acb4>] (panic+0x0/0x124) from [<c002c5ac>] (init_post+0xdc/0x104)        
 r3:00000000 r2:c61d7800 r1:c045e000 r0:c03a6753                               
[<c002c4d0>] (init_post+0x0/0x104) from [<c00084b8>] (kernel_init+0xe8/0x118)  
 r4:c0430340                                                                   
[<c00083d0>] (kernel_init+0x0/0x118) from [<c0050a5c>] (do_exit+0x0/0x684)     
 r4:00000000    

  Can you tell why?

  • liangxiao:

    1. Have you uncompressed the file system onto the Linux host machine at the

        same location given in your bootargs?

        /home/user/workdir/filesys

    2.  Have you exported that directory on the Linux host side, making it a shared directory?

         On my Ubuntu 10.04 Linux host I would add this by:

         sudo gedit /etc/exports

        Add the following line to this file:

        /home/user/workdir/filesys *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)

     3.  Restart the nfs server to make changes take effect. 

          sudo /etc/init.d/nfs-kernel-server restart.

    NOTE:

    Commands required for steps 2 and 3 depend on which Linux distribution you are using

    Ubuntu, Red Hat, etc.  

    Regards,

    Michael T

    PS: Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • I affirm I do that three steps.

    but it doesn't wrk.

     host=192.168.1.110, domain=, nis-domain=(none),                           
         bootserver=0.0.0.0, rootserver=192.168.1.205, rootpath=, mtu=576          
    Looking up port of RPC 100003/2 on 192.168.1.205                               

    the question on the "rootpath=,"

    it cann't be into joined.

    how to let rootpath=/home/user/workdir/filesys ,

  • Now I get it. thank you for your help .

    Maybe federo is wrong.I config it again.

    Now it work.

  • I have another question.

    Why the path( /home/user/workdir/filesys) don't have the /dev /video2 or /dev/video3?