Experimental Physics and Industrial Control System
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
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024