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.

Setting up a NFS client on AM35xx EVM outside uBoot

Hi,

I have successfuly setup the eXperimenter Dev kit to boot from the SD Card, with the file system on it (two partitions...). This took a bit of time but is working fine now.

I want to use NFS to mount a folder from the Ubuntu development computer, to debug and make easy file transfers to/from the dev kit.

There is a good reason why I need the kernal MLO and linux to boot from the SD card. All the boodcmd/bootargs options I have seen allows for mounting the root file system from nfs, but this is not what I need.

Simplier said:

mount -t nfs 192.168.2.60:/home/user/debug  /debug

reports  

"missing codepage or helper program, or other error  (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program)

My feeling is that nfs is handled by uBoot somehow in all setups described in the "getting started" pages.

Is there nfs support in the provided PSP? If so, how do I use it?

Any help is welcome (Note: I am pretty green on linux platform so I might be missing something obvious...)

 

Marc Pelletier

  • Marc:

    Does this post explain what you need to make NFS work?

    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/p/47704/169988.aspx#169988

    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 guessing you intend to mount an NFS in addition to the root file system. Some doc here:

    http://tldp.org/LDP/nag2/x-087-2-nfs.mountd.html

    Some TI Wiki stuff:

    http://processors.wiki.ti.com/index.php/FAQ_OMAP35x_Linux_PSP

    Assuming your Ubuntu NFS server is all setup correctly, I think all you are missing is the IP address or name of the Ubuntu server. eg.

    mount -t nfs address_or_name:/home/user/debug /debug

     

     

  • Hi Michael,

    No this doesn’t: this post describes an issue setting up the uBoot nfs support to have the root file system taken on the network from a development pc.

    I want to boot completely from the SD card (MLO, uImage + Linux file system). I do not want the root file system to be mounted through nfs. I have managed to do this part.

    But on top of that, I would like to use nfs to share a data folder where I will exchange files, including but not limited toconfiguration files, executable for debugging between my development system and the embedded system, and so on. 

    The reason for that is that I need the system to be often disconnected from the development PC and brought to the lab where it need to act stand alone and run the main application I am designing.

     Thanks

    Marc Pelletier

  • Hi Norman, 

    Yep you got it.

     

    However, my bad, I did include the ip address of the Ubunto server when I tried the 'mount command (I forgot to type it in the original post... sorry. I just corrected the original post to include it). I am also trying with the same nfs shared folder that works fine when I do boot as every developer does with the root file system through nfs. This means that my Ubunto nfs setup is working. (I think...)

    in "http://processors.wiki.ti.com/index.php/FAQ_OMAP35x_Linux_PSP"

    the proposed : "$ mount -t nfs -o nolock 192.168.1.10:/home/user/share /mnt " reports the same "wrong fs type ..." error 

    I checked the other link (http://tldp.org/LDP/nag2/x-087-2-nfs.mountd.html) when I made my first attempts before I asked the question here, without success. I admit I havent tried editing the fstab file since the direct mount indicates "wrong fs type" error. I will try that now and come back to report on the result.

    Marc

     

  • Google got some hits about installing the package nfs-common on Ubuntu clients. I don't think that applies here as NFS on boot works, then NFS at the command line should work as well. The search also popped up a thread in this forum:

    http://e2e.ti.com/support/embedded/f/354/t/67858.aspx

    Looks promising.

     

  • Yep...

    mount -t nfs 192.168.0.250:/home/me /home/root -o rw,nolock,addr=192.168.0.250

    I would never had tried that in a milion years!!!! repeat the address as an option!!!!

    Outch, thanks Norman!!!

    Marc