NFS

Kirspel, Kevin kevin.kirspel at optimedical.com
Wed Oct 10 18:28:20 UTC 2007


The reason I was so confused was that my version of rtems is 4.6.99.4 which
does not have the c/src/nfsclient directory.  I had read that README file
from another website but could never find any source code for the
rpcUdpInit() and nfsInit() functions.  I think I will upgrade now.

Kevin Kirspel
Opti Medical Systems
Electrical Engineer
235 Hembree Park Drive
Roswell GA 30076
(ph) 770-510-4444 x4568
(fax) 770-510-4445

-----Original Message-----
From: Till Straumann [mailto:strauman at slac.stanford.edu] 
Sent: Wednesday, October 10, 2007 12:55 PM
To: Kirspel, Kevin
Cc: 'rtems-users at rtems.org'
Subject: Re: NFS

Kirspel, Kevin wrote:
>
> I am trying to get an NFS client running on my system. I have looked 
> at the Wiki and README files within the source code but I am still a 
> little confused on what I need to do. From what I have gathered, the 
> NFS needs the "librpc.a" and "libxdr.a" libraries in order to 
> function. In my rtems build directory, I see that the librpc.a and 
> libxdr.a libraries are created, but when I do a "make install" the 
> libraries are not copied to the install directory. My first question is:
>
> What do I have to do to the makefiles in order to get the librpc.a and 
> libxdr.a libraries installed?
>
You don't have to do anything. The libraries should be part of librtemscpu.a
>
> I found some references in the README files to initialize the RPC by 
> calling rtems_rpc_task_init() function. There is also some reference 
> to the rtems_rpc_start_portmapper(). I am not sure what calls I need 
> to make. My second question is:
>
> What is the procedure to start the NFS client? What rtems calls are 
> needed?
>
1) You shouldn't have to start the portmapper. That is only needed if 
you run a
RPC server on your rtems box.

2) - setup and initialize networking
- call 'rpcUdpInit()' [ generic multi-threaded RPC-over-UDP client ]
- nfsInit(0,0) [ initializes NFS client on top of RPC-UDP ]
- nfsMount("<server-dotIP-or-name>","<server-export>","<mountpoint>")
[ nfsMount creates the mount point for you if
it doesn't exist yet.

3) If you bother to RTM [ <rtems-src-dir>/README ] you'll find a more
detailed description.

http://www.rtems.com/cgi-bin/viewcvs.cgi/~checkout~/rtems/c/src/nfsclient/RE
ADME?rev=1.1.1.1&content-type=text/plain



HTH
-- Till
>
> If there are other things needed in order to get NFS working please 
> let me know.
>
> Kevin Kirspel
>
> Opti Medical Systems
>
> Electrical Engineer
>
> 235 Hembree Park Drive
>
> Roswell GA 30076
>
> (ph) 770-510-4444 x4568
>
> (fax) 770-510-4445
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list