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.

Beagle board not booting from NFS

Hi,

 

I am pretty new to Linux.

II am doing a lab (from Free Electrons) as part of my training. The lab is about booting the Beagle board from the PC (via NFS).

I did all the steps in the lab. When booting the kernel (stored in SD card) gets unpacked, checked etc.

All good until I reach this point:

[   14.887298] Looking up port of RPC 100003/2 on 192.168.0.1
[   44.972015] rpcbind: server 192.168.0.1 not responding, timed out

and after some more messages I get kernel panic.

Apparently the target cannot connect to the PC. I tried to find a solution on the Web, but they explain it in the context of Web servers, network servers etc, which confuses me even more.

Can someone help me diagnose the problem?

Thanks

donescamillo

  • Don,

    There are several things to check here.  First host machine which has the NFS mount point and the beagle board should both be connected to the same local network.  It looks like you are using a router since the board if looking at 192.168.0.1 for the host machine.  Double check the IP address of the host machine.  Your bootargs should include something like the following:

    serverip=[host machine IP]

    nfsbase=[path to NFS mount point]

    root=/dev/nfs nfsroot=${serverip}:${nfsbase}

    In the host machine you should have a file /etc/exports which contains the following:

    [path the NFS mount point] *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)

    Check to see that the NFS server is running on the host machine.  In Ubuntu you run "service --status-all".  The server is called nfs-kernel-server.  If it is not running you can restart it with:

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

    Commands on host machine other than Ubuntu may be different but the general idea is the same.

  • Hi,

    I am sorry, I should have given more information about my setup. The Beagle board is connected to the PC via a USB cable and the PC is supposed to interpret it as an Ethernet connection. So no routers. Regarding the server, it is working since I can mount the shared folder by requiring it from the local host (mount /shared_folder /mounting_point). The "exports" file is OK, BTW I specified allowed addresses with * (like in your post) just to eliminate a possible problem. I think that it is more likely a problem of the embedded kernel although I set all necessary variable (regarding USB gadget and Ethernet) right. I triple-checked the boot arguments also.

    Regards

     

     

  • I found the following link at beagleboard.org

    http://elinux.org/Mount_BeagleBoard_Root_Filesystem_over_NFS_via_USB

    There is no mention of kernel modifications required, but there is much more detail than I provided earlier.  I hope this helps.

    Greg

  • Hi,

     

    I looked at the link, but it is Fedora-oriented and I use Ubuntu. I am sure that what Fedora does in these scripts can be done in Ubuntu but to port the scripts from the article from Fedora to Ubuntu is too much for me, I might muck up something :(

    I noticed that when I build the kernel with CONFIG_USB=y and the gadget flags set (see below):

    ///////////////////////////////////////////

    CONFIG_USB_GADGET=y,

    CONFIG_USB_GADGET_MUSB_HDRC=y,

    CONFIG_USB_MUSB_PERIPHERAL=y,

    CONFIG_USB_ETH=y

    ///////////////////////////////////////////////

    I get this (among other things) in syslog:

    Sep  7 12:12:56 pc-desktop kernel: [ 6668.439103] usb 2-1.3: new full speed USB device using ehci_hcd and address 11
    Sep  7 12:13:11pc-desktop kernel: [ 6683.507174] usb 2-1.3: device descriptor read/64, error -110
    Sep  7 12:13:11 pc-desktop kernel: [ 6683.939298] hub 2-1:1.0: unable to enumerate USB device on port 3

     

    whereas if I set CONFIG_USB=n (i.e. no support for hots-side USB) I dont get the device descriptor error (middle line from previous excerpt):

    Sep  7 12:22:30 pc-desktop kernel: [ 7242.755609] usb 2-1.3: new full speed USB device using ehci_hcd and address 12
    Sep  7 12:22:45 pc-desktop kernel: [ 7257.496023] hub 2-1:1.0: unable to enumerate USB device on port 3

     

    Regards,

    donescamillo

     

  • Hi, donescamillo


    Do you manage to make the NFS mount work with the new built kernel. I also looked at the link for Fedora host, I think also you have to do is to have similar script toe configure the Host.I'm trying the same work as you, do you have a general guide for the steps?

     

    Regards

    Touse