g+
g+ Communities
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  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: 回复: [SPAM] Re: Problems when download synApps IOC
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: sunjl <sunjl@ihep.ac.cn>
Cc: tech-talk <tech-talk@aps.anl.gov>
Date: Thu, 28 Jun 2012 08:46:09 +0200
Hello Jilei,

hostAdd("CSNS-Server3","192.168.206.153")
value = -1 = 0xffffffff
perror
S_hostLib_HOST_ALREADY_ENTERED

This simply shows that the host is already known. This is because
vxWorks automatically does hostAdd() with the "host name" and "host
inet" from the boot parameters. Thus this line is simply not needed.

nfsMount("CSNS-Server3","/develeopment/beamimp/sunjl/synApp53/iocDAQ/DAQ1","/develeopment/beamimp/sunjl/synApp53/iocDAQ/DAQ1")
value = -1 = 0xffffffff
perror
S_rpcLib_RPC_TIMEDOUT

This looks like there is no NFS server running on CSNS-Server3. It may
also be that the NFS server only serves NFS version 4  or NFS over TCP.
Both is not usable with vxWorks. You need to run a version 3 UDP server.
Since your server is on a different network, you should also check if
there is a firewall in between. It may be that such a firewall blocks
UDP packages.

What you can do:
- Check that NFS is running on CSNS-Server3.
- Check /etc/exports. Is your IOC allowed to mount?
- Can you mount the directory from somewhere else?
  * A pc in network 192.168.206.*?
  * A pc in network 192.168.201.*?
- Check the options used for the nfs server: --no-udp or
--no-nfs-version 3 would be bad.
- Run wireshark (or etherreal or tcpdump) on the server and look for
packages from bi-mvme5100-2

Without knowing more details about your server and network environment I
cannot say more.Please consult your network administrator or the system
administrator of CSNS-Server3.

Dirk


sunjl wrote:
> Hi Dirk,
>  
> I add the "perror" and "hostShow" in the nfsCommands file, and got some 
> results as follows:
>  
> boot device : fei
> unit number : 0
> processor number : 3
> host name : CSNS-Server3
> file name : /home/vxWorks/bootdir/vxWorks_5.5_5100
> inet on ethernet (e) : 192.168.201.59:ffffff00
> host inet (h) : 192.168.206.153
> gateway inet (g) : 192.168.201.1
> user (u) : sunjl
> ftp password (pw) : 123456
> flags (f) : 0x0
> target name (tn) : bi-mvme5100-2
> -> </development/beamimp/sunjl/synApps53/iocDAQ/DAQ1/iocBoot/iocDAQ1/st1.cmd
> # vxWorks startup script
> cd "/development/beamimp/sunjl/synApps53/iocDAQ/DAQ1/iocBoot/iocDAQ1"
> value = 0 = 0x0
> < ../nfsCommands
> # Set the default gateway (the address to which IP datagrams will be sent
> # when there is no specific specific routing table entry available for the
> # actual destination address.)
> routeAdd "0","192.168.201.1"
> value = 0 = 0x0
> hostAdd("CSNS-Server3","192.168.206.153")
> value = -1 = 0xffffffff
> perror
> S_hostLib_HOST_ALREADY_ENTERED
> value = 31 = 0x1f
> hostShow
> hostname inet address aliases
> -------- ------------ -------
> localhost 127.0.0.1
> bi-mvme5100-2 192.168.201.59
> CSNS-Server3 192.168.206.153
> value = 0 = 0x0
> nfsMount("CSNS-Server3","/develeopment/beamimp/sunjl/synApp53/iocDAQ/DAQ1","/dev
> eleopment/beamimp/sunjl/synApp53/iocDAQ/DAQ1")
> value = -1 = 0xffffffff
> perror
> S_rpcLib_RPC_TIMEDOUT
> value = 22 = 0x16
>  
> Does this mean the nfsCommands file is not necessary for my IOC ?
> Thanks a lot.
>  
> ------------------------------------------------------------------------
> 孙纪磊 敬启
> 中国科学院高能物理研究所1号厅201室
> 北京市918信箱 100049
> Sun Jilei
> Institute of High Energy Physics, Chinese Academy of Sciences,
> Accelerator Center, Room 201, Hall 1,
> 19B Yuquan Lu, Shijingshan District,
> Beijing 100049,
> People's Republic of China
> Tel.: (+86)-(0)10-88236287
> Email: sunjl@ihep.ac.cn <mailto:sunjl@ihep.ac.cn>
>  
> *发件人:* Dirk Zimoch <mailto:dirk.zimoch@psi.ch>
> *发送时间:* 2012-06-26 20:23
> *收件人:* sunjl <mailto:sunjl@ihep.ac.cn>
> *抄送:* tech-talk <mailto:tech-talk@aps.anl.gov>
> *主题:* [SPAM] Re: Problems when download synApps IOC
> sunjl wrote:
>  > Hi all,
>  > 
>  > I built the synApps-5.3 on an EPICS server with base 3.14.8.2, when download the IOC to the MVME5100 through vxWorks 5.5, some wrong return value occured (as follows shown).  And these wrong return value cause the "SAVE DATA" of the "scan.adl"  in "Mount err   Invalid file system!!!" state, right?
>  > 
>  > Need some help, thanks!
>  > 
>  > -> </development/beamimp/sunjl/synApps53/iocDAQ/DAQ1/iocBoot/iocDAQ1/st1.cmd
>  > # vxWorks startup script
>  > 
>  > cd "/development/beamimp/sunjl/synApps53/iocDAQ/DAQ1/iocBoot/iocDAQ1"
>  > value = 0 = 0x0
>  > < ../nfsCommands
>  > 
>  > routeAdd "0","192.168.201.1"
>  > value = 0 = 0x0
>  > 
>  > #routeDelete "164.54.0.0", "164.54.53.226"
>  > 
>  > #routeShow
>  > 
>  > hostAdd("CSNS-Server3","192.168.206.153")
>  > value = -1 = 0xffffffff
>  
> After this failure, type: perror
>  
>  > perror
> S_hostLib_HOST_ALREADY_ENTERED
>  
> This would mean the host "CSNS-Server3" is already known. (Probably with
> a different address. Also try hostShow.)
>  
>  > nfsMount("CSNS-Server3","/develeopment/beamimp/sunjl/synApp53/iocDAQ/DAQ1","/dev
>  > eleopment/beamimp/sunjl/synApp53/iocDAQ/DAQ1")
>  > value = -1 = 0xffffffff
>  
> This looks like the host is not known or it does not export the file
> system properly. Again try perror.
>  
> Dirk
>  
>  
>  > 孙纪磊 敬启
>  > 中国科学院高能物理研究所1号厅201室
>  > 北京市918信箱 100049
>  > Sun Jilei
>  > Institute of High Energy Physics, Chinese Academy of Sciences,
>  > Accelerator Center, Room 201, Hall 1,
>  > 19B Yuquan Lu, Shijingshan District,
>  > Beijing 100049,
>  > People's Republic of China
>  > Tel.: (+86)-(0)10-88236287
>  > Email: sunjl@ihep.ac.cn
>  


References:
Problems when download synApps IOC sunjl
Re: Problems when download synApps IOC Dirk Zimoch
回复: [SPAM] Re: Problems when download synApps IOC sunjl

Navigate by Date:
Prev: RE: epicsAtExit Mark Rivers
Next: LabVIEW EPICS connection Steve Kinder
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: 回复: [SPAM] Re: Problems when download synApps IOC sunjl
Next: 回复: Re: Re: Problems when download synApps IOC sunjl
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·