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 mount over usbnet on AM335x

Has anyone been able to NFS mount a rootfs over usbnet on am335x?  I have been able to get the SPL and u-boot to boot over USB.  I have the USB gadget driver and ethernet support statically built into the kernel.  When the kernel boots, I can see the eth0 on the host, but not on the beaglebone.  I can manually bring up the usb0 on beaglebone and manually assign an IP address, but cannot ping it.

Platform beaglebone black.

ti-sdk-am335x-evm-06.00.00.00

Ubuntu 10.04 guest on VMware

regards -emil

  • Hi Emil,

    How did you change your board-am335xevm.c  and which settings in menuconfig were done to see eth0 on HOST? And did you solve topic task? I'm working right the same task now here is my post.

    AM335x Ethernet over USB, NFS rootfs from 06.00.00.00 template


    Thanks,

    Vasiliy

  • Hi Vasiliy,

    Please create new thread for your issue to get more people to answer,

  • I was able to nfs mount a filesystem on my target over usbnet (.config attached). 

    6114.config.txt

    I can see the Ethernet gadget in the kernel boot messages.

     

    [    1.290649]  gadget: using random self ethernet address                     

    [    1.296112]  gadget: using random host ethernet address                     

    [    1.302062] usb0: MAC 2e:04:c5:66:fe:c7                                     

    [    1.306091] usb0: HOST MAC f6:fb:d4:8b:e2:7a                                

    [    1.310607]  gadget: Ethernet Gadget, version: Memorial Day 2008            

    [    1.316894]  gadget: g_ether ready   

     

    Once I get to the command line I manually bring up the usb0. 

    # ifconfig usb0 up

     

    Start the dhcp client on usb0 interface

    # udhcpc -i usb0

     

    Mount the FS

    # mount -o nolock <usb0-ipaddr>:/<host-dir> <local-dir>