EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: rtems-4.10 tftp support
From: Daron Chabot <[email protected]>
To: Eric Norum <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Thu, 9 Dec 2010 13:42:25 -0500
I won't be in a position to test that any time soon (less than a couple of weeks), but it _looks_ ok to me.

On Thu, Dec 9, 2010 at 12:20 PM, Eric Norum <[email protected]> wrote:
--- /usr/local/epics/R3.14.12/base/src/RTEMS/base/rtems_init.c 2010-11-24 12:54:36.000000000 -0800
+++ rtems_init.c 2010-12-09 09:18:34.270548000 -0800
@@ -209,7 +209,15 @@
 {
 #ifdef OMIT_NFS_SUPPORT
     printf ("***** Initializing TFTP *****\n");
+#if __RTEMS_MAJOR__>4 || (__RTEMS_MAJOR__==4 && __RTEMS_MINOR__>9) || (__RTEMS_MAJOR__==4 && __RTEMS_MINOR__==9 && __RTEMS_REVISION__==99)
+    mount_and_make_target_path(NULL,
+                               "/TFTP",
+                               RTEMS_FILESYSTEM_TYPE_TFTPFS,
+                               RTEMS_FILESYSTEM_READ_WRITE,
+                               NULL);
+#else
     rtems_bsdnet_initialize_tftp_filesystem ();
+#endif
     if (!hasLocalFilesystem) {
         char *path;
         int pathsize = 200;


On Dec 9, 2010, at 9:06 AM, Daron Chabot wrote:

Hi Jim,

Have a look at tftpTest/init.c from the RTEMS network-demos (cvs HEAD):

cvs -d :pserver:[email protected]:/usr1/CVS co network-demos

It looks like the new initialization steps are:

        rtems_bsdnet_initialize_network ();
        mount_and_make_target_path(
                NULL,
                "/TFTP",
                RTEMS_FILESYSTEM_TYPE_TFTPFS,
                RTEMS_FILESYSTEM_READ_WRITE,
                NULL
        );


Patches to Base welcome :-)

-- dc

On Thu, Dec 9, 2010 at 11:26 AM, Jim Chen <[email protected]> wrote:
Eric,

It seems like that rtems-4.10 has changed some function prototypes in
tftpDriver.c code such as rtems_bsdnet_initialize_tftp_filesystem (doesn't
exist anymore) which fails the build of EPICS3.14.11/12 that doesn't use NFS
(with OMIT_NFS_SUPPORT defined). Is there a particular reason for this and
how can I get around with this please?

Best regards,

Jim
Hytec Electronics Ltd.
Tel: +44 (0) 118 975 7770
Fax: +44 (0) 118 975 7566
Web: www.hytec-electronics.co.uk
Incorporated in England No 1246940
VAT NO GB 285 2479 27
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





-- 
Eric Norum
[email protected]





References:
Asyn VXI-11 Driver and VXI-11 Locking William Lu
Re: Asyn VXI-11 Driver and VXI-11 Locking Eric Norum
Re: Asyn VXI-11 Driver and VXI-11 Locking William Lu
Re: Asyn VXI-11 Driver and VXI-11 Locking Eric Norum
Re: rtems-4.10 tftp support Daron Chabot
Re: rtems-4.10 tftp support Eric Norum

Navigate by Date:
Prev: asyn R4-15 available Mark Rivers
Next: Re: RE: Base-3.14.12 (win32) on win 7 64 bit system Kazimierz Gofron
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: rtems-4.10 tftp support Jim Chen
Next: string array PV Pierrick Hanlet
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 09 Dec 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·