1 2 Previous Next 18 Replies Latest reply on Dec 2, 2014 2:48 PM by deium

    nfs on edison?

    deium

      Does the supported Yocto image support nfs on Edison?  if so, is there any examples to configure it?

        • 1. Re: nfs on edison?
          DiegoV_Intel

          Hi deium,

           

          This same question was already asked. Take a look to this thread since it might be interest for you: Re: smbfs/cifs/nfs support on edison?. We already took in consideration the suggestion given in that other thread to include NFS support, and we have passed it to the team that builds the Yocto Image.

           

          Regards,

          Diego.

          1 of 1 people found this helpful
          • 2. Re: nfs on edison?
            mweal

            yes, NFS works on edison,

             

             

            • Setup NFS server on you host

                     as per your distribution

            • install packages if required
            sudo opkg install nfs-common 

             

            • make dir and mount on Edsion
            mkdir -p /mnt/nfs/ 
             mount x.x.x.x:/home/xxx/nfs /mnt/nfs


            • Make it permanent adding the entry to /etc/fstab does not work because fstab starts before the Intel Edison wifi is up and running, As a hack add the mount to your .profile startup script. You may still need some sort of delay before this to allow the wifi to come up.
            echo "mount x.x.x.x:/home/xxx/nfs /mnt/nfs >> ~/.profile 
            1 of 1 people found this helpful
            • 3. Re: nfs on edison?
              deium

              Thanks DiegoV_Intel and mweal.  You wouldn't believe how much easier things just got.

              • 4. Re: nfs on edison?
                AlexT_Intel

                And just to expand a little bit on the answer - it's the NFS client, which is enabled by default, for server, you'd need to reconfigure kernel.

                • 5. Re: nfs on edison?
                  deium

                  thanks AlexT_Intel, it is client I am looking for.   At the moment,

                  I just haven't brought myself to be able to dig at the kernel just yet.

                  For me, that is charting the unfamiliar territories yet unknown.  - Great Repo BTW

                  • 6. Re: nfs on edison?
                    deium

                    mweal

                     

                    when you stated that nfs worked, is that Yocto or other?  I must be missing something.

                    I was happy that NFS could work,  and when I got around to implementing it, it doesn't work for me

                    I understood that edison was suppose to be the client, can you tell me what steps I am missing.

                     

                    Freshly flashed Edison to edison-weekly_build_68_2014-09-08_13-49-07 and then

                    updated to edison-rel1-maint-weekly_build_16_2014-10-14_14-56-19

                     

                    Redhat configured as NFS Server on 192.168.2.60, contents in /etc/exports

                    /var/net/vol2  192.168.2.60/24(rw,async,no_subtree_check)

                     

                    rpcinfo -p shows nfs is v2 and v3 of port 2049 udp

                     

                    on the Edison at 192.168.2.12  I did

                    mkdir -p /mnt/nfs

                    mount 192.168.2.60:/var/net/vol2 /mnt/nfs

                     

                    mount: wrong fs type, bad option, bad superblock on 192.168.2.60:/var/net/vol2, missing codepage or helper program, or other error

                    • 7. Re: nfs on edison?
                      mhahn

                      post.user_wrote.label:

                       

                      And just to expand a little bit on the answer - it's the NFS client, which is enabled by default, for server, you'd need to reconfigure kernel.

                      as a poor man's alternative for nfs server without reconfiguring the kernel one might "sshfs mount" Edison 

                      • 8. Re: nfs on edison?
                        mhahn

                        haven't tried nfs mount on Edison yet - not sure whether you'd require "nfs-utils" and "nfs-utils-client" to be installed?

                        AlexT_Intel: haven't found those in your repo - do you know whether those would be required? (recipes from openembedded meta seem to build fine - but haven't tested them yet)

                        • 9. Re: nfs on edison?
                          deium

                          it looks like maybe busybox is looking for a mount.nfs or mount.<helper>

                          I was attempting to accomplish this with as close to official image as I could

                          As it was said to have been previously accomplished, wondered how.

                          • 10. Re: nfs on edison?
                            mweal

                            deium,

                             

                            Yes I am using the standard Yocto image.  I'm sorry, but I am using ubuntu for my host so things are a little different

                             

                            Host

                            • install required packages (if required)

                            sudo apt-get install nfs-kernel-server portmap

                            • create nfs directory
                            mkdir ~/proj/edison/nfs 
                            • add nfs directory to /etc/exports (security warning... mount is wide open with *)

                             

                            /home/xxxxxxxx/proj/edison/nfs           *(rw,sync,no_root_squash,no_subtree_check) 
                            • and activate
                            sudo exportfs -a
                            sudo service nfs-kernel-server restart 
                            • 11. Re: nfs on edison?
                              mhahn

                              the nfs-utils / nfs-utils-client comes which such helpers

                               

                              root@edison:~# opkg files nfs-utils

                              Package nfs-utils (1.2.9-r0) is installed on root and has the following files:

                              /lib/systemd/system/nfs-server.service

                              /usr/sbin/exportfs

                              /usr/sbin/rpc.nfsd

                              /usr/sbin/rpc.mountd

                              /lib/systemd/system/nfs-mountd.service

                              /sbin/osd_login

                              root@edison:~# opkg files nfs-utils-client

                              Package nfs-utils-client (1.2.9-r0) is installed on root and has the following files:

                              /var/lib/nfs/rmtab

                              /sbin/mount.nfs4

                              /usr/sbin/showmount

                              /etc/nfs-utils.conf

                              /var/lib/nfs/sm/

                              /usr/sbin/rpc.idmapd

                              /sbin/umount.nfs4

                              /var/lib/nfs/state

                              /sbin/mount.nfs

                              /var/lib/nfs/v4recovery/

                              /usr/sbin/start-statd

                              /var/lib/nfs/xtab

                              /var/lib/nfs/

                              /var/lib/nfs/statd/

                              /usr/sbin/nfsstat

                              /var/lib/nfs/etab

                              /lib/systemd/system/nfs-statd.service

                              /sbin/umount.nfs

                              /var/lib/nfs/sm.bak/

                              /usr/sbin/rpc.statd

                              /usr/sbin/sm-notify

                              • 12. Re: nfs on edison?
                                deium

                                mhahn, and thanks yet again

                                • 13. Re: nfs on edison?
                                  deium

                                  mhahn, sorry again, which repo were they at for Edison - didn't see on Alex's

                                  • 14. Re: nfs on edison?
                                    mhahn

                                    my personal Yocto one

                                    But if we kindly ask AlexT_Intel he might eventually add it to his repo.

                                    There is a little dependency chain such you'd end up installing 5 packages or so

                                    1 2 Previous Next