Hi Don't even try it with Windows (there are NFS servers available) - you will have all sorts of problems with the 'special' files - think symlinks, block/char device files, no support for case sensitivity, ownerships/permissions, DOSification breaking scripts etc. How to install: Well this depends on the Linux distribution and you didn't specify which distribution you were using. The Ubuntu series have their package manager GUI/apt-get, RedHat/Fedora/CentOS have yum or pirut (or whatever it is called). . You may find that it is already installed - if 'man nfsd' displays a page it would be an indication that this is so. I don't use Ubuntu but the Fedora package is 'nfs-utils' so it is likely that it will be the same across RedHat & CentOS. A 'yum install nfs-utils' would install the package (& resolve the dependancy on nfs-utils-lib). How to set up NFS server is pretty much distribution agnostic, basically you need to put the directories you want to export in /etc/exports....something like. cat /etc/exports /home *(rw,no_root_squash,sync) /tftpboot *(rw,no_root_squash,sync) The 'no_root_squash' is important, without this 'root' user on the target is mapped to the 'nobody' user on the NFS server and that causes all kinds of permission errors on the target. With the above configuration you are able to mount any directory under /tftpboot or /home - I tend to put root filesystems in /tftpboot/remote_fs/<target> to keep them away from the user area. Then you need to start the NFS service. On RedHat/Fedora/CentOS you can issue a 'service nfs start' to start the service. Other distributions may do it some other way, something like '/etc/init.d/nfs start' would be about as generic as it gets from the command line. On RedHat/Fedora/CentOS you should enable the service so it will automaticaly start on the next reboot - a quick 'chkconfig nfs on' will do this. You should be able to test the NFS server by mounting the file system locally, as in 'mkdir /mnt/nfs;mount -t nfs localhost:/tftpboot /mnt/nfs' & check that the root filesystem is there. Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/>
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Albert Burbea Sent: 31 July 2008 23:10 To: Jeff Cooper Cc: [email protected]; Panchy Rivas Subject: Re: problem with NFS guys sorry for the stupid question but... how do i set up an nfs server on a linux machine? can this be done also on a windows one? Albert On 7/31/08, Jeff Cooper <[EMAIL PROTECTED]> wrote: Panchy, Your problem isn't with NFS. U-boot is complaining that you don't have a kernel at memory address 0x02050000 (bootm 0x2050000). Jeff Cooper Panchy Rivas wrote: When I try to boot the NFS after following the instructions on the getting started guide I get DaVinci EVM # boot ## Booting image at 02050000 ... Bad Magic Number Here is my printenv from Teraterm terminal window. DaVinci EVM # printenv bootdelay=3 baudrate=115200 ipaddr=192.168.1.122 <http://192.168.1.122/> rootpath=/home/frivas/workdir/filesys stdin=serial stdout=serial stderr=serial ethaddr=00:0e:99:02:58:f9 videostd=ntsc setboot=setenv bootargs$(bootargs) davinci_enc_mngr.ch0_mode=$(videostd) bootargsconsole=ttyS0,115200n8=noinitrd=rw ip=dhcp root=/dev/nfs nfsroot=192.168 .1.121:/home/frivas/workdir/filesys,nolock mem=120M davinci_enc_mngr.ch0_mode=nt sc bootargs=video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=72 0x57 6x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc console=ttyS0,115200n8 noinitrd rw ip=192.168.1.121 <http://192.168.1.121/> root=/dev/hda1 mem=120M bootcmd=bootm 0x2050000 Thanks Panchy Rivas _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source -- Albert Burbea Harishonim 8 Ramat Gan 52502, Israel Tel/Fax + 972-3-7526016 Mobile: +972-52-3541842
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
