Initial version from Ned Arnold

This commit is contained in:
Janet B. Anderson
2004-01-13 22:02:26 +00:00
parent fda69beae0
commit a5cd52dad4
10 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
TOP = ..
include $(TOP)/configure/CONFIG
include $(TOP)/configure/RULES.iocBoot

View File

@@ -0,0 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
ARCH = _ARCH_
TARGETS = envPaths
include $(TOP)/configure/RULES.ioc

View File

@@ -0,0 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
ARCH = _ARCH_
TARGETS = cdCommands
include $(TOP)/configure/RULES.ioc

View 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.

View 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.

View 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_"

View 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_"

View 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_"

View 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")