EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Download vxWorks to IOC
From: [email protected] (Kay Kasemir)
To: chengwx <[email protected]>, [email protected]
Date: Mon, 30 Oct 2000 09:03:20 -0700
At 09:12 AM 10/27/00 +0800, chengwx wrote:
>Hello everyone,  I have make the epics base and medm. and make the epics
>application on my Redhat6.2.
>But when download the vxWorks, it comes the errors like this :
>
>[VxWorks Boot]: @
>
...
>Loading... 413736 + 43300 + 35280                 /* the ioc stopped
>here, no moving  at all*/

I had a similar problem when loading from RedHat 6.2.
The problem was in wuftpd.
In fact we use almost the same ftpd on solaris and there the problem
didn't appear, so I don't understand it fully, but these were symptons
and the solution:

Sympton:
IOC hangs after loading.
netstat -a confirmed that the ftp connection was stuck:
	tcp        0      0 bogart.ta53.la:ftp-data snsioc4.ta53.lanl.:1025 FIN_WAIT2
	tcp        6      0 bogart.ta53.lanl.go:ftp snsioc4.ta53.lanl.:1024 ESTABLISHED  

(bogart is the host, snsioc4 is the ioc)

In fact it continues after about 15min, 
the 15min(!) delay corresponds to the ftpd timeout.

One quick solution was
	killall in.ftpd
-> the remaining startup-file and commands like "ld <iocCore" in there
   load just fine.

I assumed that the "verbose" wu-ftpd was the cause:
It displays "welcome" and statistic messages in addition to
the bare ftp protocol, but a recompilation without that extra text
didn't help.

The solution that I use was in <Tornado2>/target/config/all/bootConfig.c:

  if (bootRsh == FALSE)
      {

      /* Empty the Data Socket before close. PC FTP server hangs otherwise */
      while ((read (fd, command, sizeof (command))) > 0);
      if (bootFtp)
          (void) ftpCommand (errFd, "QUIT",0,0,0,0,0,0);
      }

  close (fd);
  close (errFd);
  return (OK);     

Commenting out the while (read) and ftpCommand ("QUIT") solved
the problem.

-Kay





Replies:
Re: Download vxWorks to IOC Bill Lavender
References:
Download vxWorks to IOC chengwx

Navigate by Date:
Prev: Shameless Plug For EDM (Extensible Display Manager) Mathias Steiner
Next: Re: Download vxWorks to IOC Bill Lavender
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Download vxWorks to IOC Andrew Johnson
Next: Re: Download vxWorks to IOC Bill Lavender
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·