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  2012  <20132014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: Andrew
From: Andrew Johnson <anj@aps.anl.gov>
To: 周永年 <zhouyongnian@sinap.ac.cn>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Mon, 22 Apr 2013 11:16:49 -0500
Hi 周永年,

On 2013-04-22 周永年 wrote:
> When we started to executing the startup script st.cmd at :
> 
>  ld<systemO/system.munch
> 
> sysAtReboot not found. epicsExit will not be called by reboot.
> 
> According to http://www.aps.anl.gov/epics/tech-talk/2005/msg00004.php , I
> added the two routines in bootConfig.c.

bootConfig.c is only used when building a bootrom and is not included in the 
VxWorks OS image so it won't work properly if you put it there.  The above 
message was not clear where to put these changes, my apologies about that.

It is easiest to put everything in the vxWorks/target/src/config/usrNetwork.c 
file.  The two functions and the Hook variable definition would go after all 
the variable declarations (make sure they are outside of any ifdef INCLUDE_* 
guards), and then the call to rebootHookAdd belongs inside the usrNetInit() 
routine, just before the call to hostTblInit().

Don't forget to remove the changes from your bootConfig.c file again.  Then 
build a vxWorks boot image using "make vxWorks" or "make vxWorks.st" as you 
normally do and boot that OS image; you do not have to reprogram the vxWorks 
bootrom on your CPU.

Hope this helps,

- Andrew
-- 
It is difficult to get a man to understand something, when his salary
depends upon his not understanding it. -- Upton Sinclair


Replies:
and Speaking of sysAtReboot.... Bjorklund, Eric A
References:
Andrew 周永年

Navigate by Date:
Prev: Re: genesys power supply IOC James F Ross
Next: RE: genesys power supply IOC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Andrew 周永年
Next: and Speaking of sysAtReboot.... Bjorklund, Eric A
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·