<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 12, 2020 at 9:33 AM Jose L. Marcos <<a href="mailto:jose-louis.marcos@cnes.fr">jose-louis.marcos@cnes.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank's Joel<br>
<br>
Adding '#define CONFIGURE_MAXIMUM_DRIVERS 15' to my system.h config file <br>
make me one step further...<br>
<br>
I still get a non-0 return value for mount_and_make_target_path. I <br>
printed errno value before 'assert(err == 0)' line and it's errno=22 <br>
(EINVAL: invalid args); but can't tell which API function returned this <br>
errno.<br></blockquote><div><br></div><div>This is unfortunately not something I can answer as quickly. I recommend</div><div>stepping into the source. Use the directory command in gdb if you have</div><div>to point the object to a different location than the build.</div><div><br></div><div>You may also be able to spot  something looking through the code.</div><div><br></div><div>You do need to configure more file descriptors to open sockets which NFS </div><div>will use but I don't think that would return EINVAL. But who knows.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Still puzzled !<br>
<br>
Regards,<br>
<br>
*José L. Marcos*<br>
CNES - DSO/DV/IF<br>
18 avenue Edouard Belin - bpi 3517<br>
31401 Toulouse cedex 9<br>
Tél: +33 (0)5 61 27 41 13<br>
On 8/12/20 3:09 PM, Joel Sherrill wrote:<br>
><br>
><br>
> On Wed, Aug 12, 2020 at 7:20 AM Marcos Jose-Louis <br>
> <<a href="mailto:Jose-Louis.Marcos@cnes.fr" target="_blank">Jose-Louis.Marcos@cnes.fr</a> <mailto:<a href="mailto:Jose-Louis.Marcos@cnes.fr" target="_blank">Jose-Louis.Marcos@cnes.fr</a>>> wrote:<br>
><br>
>     Hi<br>
><br>
>     I'm trying to mount a NFS partition from a server on a sparc board.<br>
>     My app is basically configuring the network, and trying to mount<br>
>     the NFS server share using mount_andmmake_target_path() API.<br>
><br>
>     err = mount_and_make_target_path(<br>
>             "6331.1150 at 10.160.7.217:/home/marcosjl/",<br>
>             "/nfs",<br>
>             RTEMS_FILESYSTEM_TYPE_NFS,<br>
>             RTEMS_FILESYSTEM_READ_WRITE,<br>
>             NULL);<br>
>     assert(err == 0);<br>
><br>
>     It fails miserably :<br>
><br>
>     Network initialization OK.<br>
>     RTEMS-RPCIOD $Release$, Till Straumann, Stanford/SLAC/SSRL 2002,<br>
>     See LICENSE file for licensing info.<br>
>     RTEMS-NFS $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See<br>
>     LICENSE file for licensing info.<br>
>     Registering NFS driver failed -<br>
><br>
>     When digging in ./cpukit/libfs/src/nfsclient/src/nfs.c, It seems<br>
>     that call to 'rtems_io_register_driver' is not successful,<br>
>     probably related to misconfiguration of my app ?<br>
><br>
>     This is the excerpt of my system.h file (the one containing the<br>
>     configuration directives to RTEMS) :<br>
><br>
>     /* Specific configuration for NFS */<br>
>     #define CONFIGURE_FILESYSTEM_NFS<br>
>     #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20<br>
>     #define CONFIGURE_MAXIMUM_SEMAPHORES 15<br>
>     #define CONFIGURE_NUMBER_OF_DRIVERS 5<br>
><br>
><br>
> I don't think this is the right configuration parameter. It should be <br>
> CONFIGURE_MAXIMUM_DRIVERS. I don't know if 5 is the right number but <br>
> you need 1+ driver slots empty beyond the static drivers configured to <br>
> account for the dynamically installed one.<br>
><br>
> <a href="https://git.rtems.org/rtems/tree/cpukit/sapi/include/confdefs.h?h=4.10#n856" rel="noreferrer" target="_blank">https://git.rtems.org/rtems/tree/cpukit/sapi/include/confdefs.h?h=4.10#n856</a> <br>
> should be the section of code you are tripping.<br>
><br>
> That should get you beyond this error.<br>
><br>
><br>
>     Not sure of what's going on here (I'm pretty new to RTEMS !). Is<br>
>     it the correct way to configure resources expected by NFS client ?<br>
>     (as per what's specified in ./cpukit/libfs/src/nfsclient/README -<br>
>     section "RTEMS Resources Used Byy NFS/RPCIOD")<br>
><br>
>     Thank's in advance...<br>
><br>
>     Regards,<br>
>     José L. Marcos<br>
><br>
>     _______________________________________________<br>
>     users mailing list<br>
>     <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a> <mailto:<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a>><br>
>     <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>