Initial version from Ned Arnold
This commit is contained in:
3
src/makeBaseApp/top/vlinacBoot/Makefile
Normal file
3
src/makeBaseApp/top/vlinacBoot/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
TOP = ..
|
||||
include $(TOP)/configure/CONFIG
|
||||
include $(TOP)/configure/RULES.iocBoot
|
||||
5
src/makeBaseApp/top/vlinacBoot/ioc/Makefile@Common
Normal file
5
src/makeBaseApp/top/vlinacBoot/ioc/Makefile@Common
Normal file
@@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
TARGETS = envPaths
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
5
src/makeBaseApp/top/vlinacBoot/ioc/Makefile@vxWorks
Normal file
5
src/makeBaseApp/top/vlinacBoot/ioc/Makefile@vxWorks
Normal file
@@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
TARGETS = cdCommands
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
9
src/makeBaseApp/top/vlinacBoot/ioc/README@Common
Normal file
9
src/makeBaseApp/top/vlinacBoot/ioc/README@Common
Normal file
@@ -0,0 +1,9 @@
|
||||
To start the ioc from this directory execute the command
|
||||
../../bin/_ARCH_/<appname> st.cmd
|
||||
|
||||
Alternatively make the st.cmd file directly executable with
|
||||
chmod +x st.cmd
|
||||
and check the executable name on the first line of the st.cmd file
|
||||
|
||||
You may need to change the name of the .dbd file given in the
|
||||
st.cmd's dbLoadDatabase() command before starting the ioc.
|
||||
6
src/makeBaseApp/top/vlinacBoot/ioc/README@RTEMS
Normal file
6
src/makeBaseApp/top/vlinacBoot/ioc/README@RTEMS
Normal file
@@ -0,0 +1,6 @@
|
||||
Copy the startup script (st.cmd) and top level db and dbd directories and
|
||||
contents to
|
||||
<<TFTP_ROOT>>/epics/<<IOC hostname>>/
|
||||
|
||||
Then load the executable into the IOC (floppy disk, network boot, debugger,
|
||||
etc.) and start it.
|
||||
0
src/makeBaseApp/top/vlinacBoot/ioc/README@vxWorks
Normal file
0
src/makeBaseApp/top/vlinacBoot/ioc/README@vxWorks
Normal file
25
src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@Common
Normal file
25
src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@Common
Normal file
@@ -0,0 +1,25 @@
|
||||
#!../../bin/_ARCH_/_APPNAME_
|
||||
|
||||
## You may have to change _APPNAME_ to something else
|
||||
## everywhere it appears in this file
|
||||
|
||||
< envPaths
|
||||
|
||||
cd ${TOP}
|
||||
|
||||
## Register all support components
|
||||
dbLoadDatabase("dbd/_APPNAME_.dbd")
|
||||
_APPNAME__registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
## Load record instances
|
||||
dbLoadRecords("db/xxMedmDemo.db","user=_USER_")
|
||||
dbLoadRecords("db/xxVirtualLinac.db","user=_USER_")
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
iocInit()
|
||||
|
||||
## Start any sequence programs
|
||||
#seq &beamTrajectory, "user=_USER_"
|
||||
#seq &autoControl, "user=_USER_"
|
||||
#seq &stabilizer, "user=_USER_"
|
||||
|
||||
22
src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@RTEMS
Normal file
22
src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@RTEMS
Normal file
@@ -0,0 +1,22 @@
|
||||
## Example RTEMS startup script
|
||||
|
||||
## You may have to change _APPNAME_ to something else
|
||||
## everywhere it appears in this file
|
||||
|
||||
#< envPaths
|
||||
|
||||
## Register all support components
|
||||
dbLoadDatabase("dbd/_APPNAME_.dbd")
|
||||
_APPNAME__registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
## Load record instances
|
||||
dbLoadRecords("db/xxMedmDemo.db","user=_USER_")
|
||||
dbLoadRecords("db/xxVirtualLinac.db","user=_USER_")
|
||||
|
||||
iocInit()
|
||||
|
||||
## Start any sequence programs
|
||||
#seq &beamTrajectory, "user=_USER_"
|
||||
#seq &autoControl, "user=_USER_"
|
||||
#seq &stabilizer, "user=_USER_"
|
||||
|
||||
35
src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@vxWorks
Normal file
35
src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@vxWorks
Normal file
@@ -0,0 +1,35 @@
|
||||
## Example vxWorks startup file
|
||||
|
||||
## The following is needed if your board support package doesn't at boot time
|
||||
## automatically cd to the directory containing its startup script
|
||||
#cd "_TOP_/iocBoot/_IOC_"
|
||||
|
||||
< cdCommands
|
||||
#< ../nfsCommands
|
||||
|
||||
cd topbin
|
||||
## You may have to change _APPNAME_ to something else
|
||||
## everywhere it appears in this file
|
||||
|
||||
ld < _APPNAME_.munch
|
||||
|
||||
## This drvTS initializer is needed if the IOC has a hardware event system
|
||||
#TSinit
|
||||
|
||||
## Register all support components
|
||||
cd top
|
||||
dbLoadDatabase("dbd/_APPNAME_.dbd",0,0)
|
||||
_APPNAME__registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
## Load record instances
|
||||
dbLoadRecords("db/xxMedmDemo.db","user=_USER_")
|
||||
dbLoadRecords("db/xxVirtualLinac.db","user=_USER_")
|
||||
|
||||
cd startup
|
||||
iocInit()
|
||||
|
||||
## Start any sequence programs
|
||||
#seq &beamTrajectory, "user=_USER_"
|
||||
#seq &autoControl, "user=_USER_"
|
||||
#seq &stabilizer, "user=_USER_"
|
||||
|
||||
28
src/makeBaseApp/top/vlinacBoot/nfsCommands@vxWorks
Normal file
28
src/makeBaseApp/top/vlinacBoot/nfsCommands@vxWorks
Normal file
@@ -0,0 +1,28 @@
|
||||
#Instructions for creating and using a real nfsCommands file
|
||||
#
|
||||
# in order to use nfs do the following:
|
||||
# 1) Create hostAdd and nfsMountAll commands for each nfs server
|
||||
# 2) In each st.cmd file add the following two commands BEFORE any load commands
|
||||
# ../nfs.cmd
|
||||
# cd "<iocname>
|
||||
#
|
||||
# The hostAdd and nfsMountAll commands have the form:
|
||||
# hostAdd("<host>","xxx.xxx.xxx.xxx")
|
||||
# nfsMountAll("<host>")
|
||||
#
|
||||
# You can also mount subdirectories as follows:
|
||||
# nfsMount("<host>", "/xxx/xxx/xxx", "/xxx")
|
||||
#
|
||||
# For example assume
|
||||
#
|
||||
# host is mercury with inet address 155.77.2.56
|
||||
# You want to mount the directory (which is a file system of mercury)
|
||||
# /home/mercury5/iocinfo
|
||||
# as
|
||||
# /iocinfo
|
||||
#
|
||||
# The commands would be
|
||||
#
|
||||
# hostAdd("mercury","155.77.2.56")
|
||||
# nfsMountAll("mercury")
|
||||
# nfsMount("mercury","/home/mercury5/iocinfo","/iocinfo")
|
||||
Reference in New Issue
Block a user