diff --git a/src/makeBaseApp/top/vlinacBoot/Makefile b/src/makeBaseApp/top/vlinacBoot/Makefile new file mode 100644 index 000000000..252a13709 --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/Makefile @@ -0,0 +1,3 @@ +TOP = .. +include $(TOP)/configure/CONFIG +include $(TOP)/configure/RULES.iocBoot diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/Makefile@Common b/src/makeBaseApp/top/vlinacBoot/ioc/Makefile@Common new file mode 100644 index 000000000..64a3e8bf7 --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/Makefile@Common @@ -0,0 +1,5 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +ARCH = _ARCH_ +TARGETS = envPaths +include $(TOP)/configure/RULES.ioc diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/Makefile@vxWorks b/src/makeBaseApp/top/vlinacBoot/ioc/Makefile@vxWorks new file mode 100644 index 000000000..12ff7f494 --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/Makefile@vxWorks @@ -0,0 +1,5 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +ARCH = _ARCH_ +TARGETS = cdCommands +include $(TOP)/configure/RULES.ioc diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/README@Common b/src/makeBaseApp/top/vlinacBoot/ioc/README@Common new file mode 100644 index 000000000..f6dc23be8 --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/README@Common @@ -0,0 +1,9 @@ +To start the ioc from this directory execute the command + ../../bin/_ARCH_/ 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. diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/README@RTEMS b/src/makeBaseApp/top/vlinacBoot/ioc/README@RTEMS new file mode 100644 index 000000000..b040e848c --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/README@RTEMS @@ -0,0 +1,6 @@ +Copy the startup script (st.cmd) and top level db and dbd directories and +contents to +<>/epics/<>/ + +Then load the executable into the IOC (floppy disk, network boot, debugger, +etc.) and start it. diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/README@vxWorks b/src/makeBaseApp/top/vlinacBoot/ioc/README@vxWorks new file mode 100644 index 000000000..e69de29bb diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@Common b/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@Common new file mode 100644 index 000000000..11e27334b --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@Common @@ -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_" + diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@RTEMS b/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@RTEMS new file mode 100644 index 000000000..5471e4904 --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@RTEMS @@ -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_" + diff --git a/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@vxWorks b/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@vxWorks new file mode 100644 index 000000000..b4d2fb54c --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/ioc/st.cmd@vxWorks @@ -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_" + diff --git a/src/makeBaseApp/top/vlinacBoot/nfsCommands@vxWorks b/src/makeBaseApp/top/vlinacBoot/nfsCommands@vxWorks new file mode 100644 index 000000000..acafd577a --- /dev/null +++ b/src/makeBaseApp/top/vlinacBoot/nfsCommands@vxWorks @@ -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 " +# +# The hostAdd and nfsMountAll commands have the form: +# hostAdd("","xxx.xxx.xxx.xxx") +# nfsMountAll("") +# +# You can also mount subdirectories as follows: +# nfsMount("", "/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")