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.

Unable to mount root fs via NFS



here is my kernel info :

CPSW phy found : id is : 0x282f014
IP-Config: Complete:
     device=eth0, addr=157.87.41.230, mask=255.255.255.0, gw=157.87.41.1,
     host=157.87.41.230, domain=, nis-domain=(none),
     bootserver=157.87.41.124, rootserver=157.87.41.124, rootpath=
PHY: 0:01 - Link is Up - 100/Full
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             128 mtdblock0  (driver?)
1f01            2304 mtdblock1  (driver?)
1f02             128 mtdblock2  (driver?)
1f03            4352 mtdblock3  (driver?)
1f04          204928 mtdblock4  (driver?)
1f05           50304 mtdblock5  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 

and my uboot comand:

setenv ethaddr 22:33:44:55:66:bc
setenv bootcmd 'dhcp;run addip;tftp 0x81000000 uImage;bootm'
setenv addip 'setenv bootargs ${bootargs} ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}:${hostname}:eth0:off'
setenv autoload no
setenv nfsserver 157.87.41.124
setenv bootargs 'console=ttyO0,115200n8 root=/dev/nfs nfsroot=157.87.41.124:/opt/814x/my_fs,tcp,nolock rw mem=128M'
setenv serverip 157.87.41.124
saveenv

to figure the problem,i've done these:

ping the EVM and VMare(Ubuntu10.LTS),it works well.

using TFTP to down the uImage,it works well,

the firewall is disabled ,both Ubuntu and XP.

i check the NFS,it seems to be well.

i check the ubuntu log ,there's nothing about the requirement to the NFS.

i'm freak out about the problem,can anyone help me ?plus,is there any possibility to access the NFS by XP?

  • Hi,

    Similar question, check this.

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/121814/435754.aspx#435754

  • First ,ths for notice.

    i'm  sure about the network interface is "bridged adpter",this is my configuration:

    my  PC is installed with XP,and my VMware is installed with UBUNTU 10.04LTS

    I use the the "Tera term"  installed in XP to communicate with the 814X EVM

    The configuration of the VMware is "bridge adapter",and the board can get the IP address by DHCP ,which is in the same local net with the PC and Ubuntu.

    the PC,EVM,Ubuntu can ping to each other.

    but when i use the  "My Computer"-->"Map Network Drive" entering the "\\Ubuntu IP:\MY share",it can't connected.also,when i enter "telnet Ubuntu IP\My share",it shows "RPC not registered"

    i've no idea about the messages above.

    i dont know where the problem can be...

    can u give me some advice about how to find the problem ,i mean what it can be?what's the steps to find the problem?

  • Did you validated your NFS Server? Can you connect with  it in other ways?
    Usually to do that and to check my NFS Server configuration I use a free software. It's name is "muCommander", and you can downloaded it from here:
    http://www.mucommander.com/

    When you have installed it you can simply check your NFS Server going to this URL:
    nfs://UBUNTU_IP/path_to _the_target_file_system_folder

    If this doesn't work, check the path you entered and your NFS Server configuration (usually written into the file "/etc/exports"). Please remember to restart your NFS daemon when you change this file, otherwise you wan't see any changes.

    Bye Daniele

  • It turns out to be the problem in DHCP and "addip"

    there's conflict between the dynamic IP and static IP address.

    so remove the expression "addip",it works.

     

  • glad to know that your issue got resolved.