Move all under modules/database
This commit is contained in:
6
modules/database/src/template/top/exampleBoot/Makefile
Normal file
6
modules/database/src/template/top/exampleBoot/Makefile
Normal file
@@ -0,0 +1,6 @@
|
||||
TOP = ..
|
||||
include $(TOP)/configure/CONFIG
|
||||
DIRS += $(wildcard *ioc*)
|
||||
DIRS += $(wildcard as*)
|
||||
include $(CONFIG)/RULES_DIRS
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
TARGETS = envPaths
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
@@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
TARGETS = envPaths relPaths.sh
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
@@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
TARGETS = cdCommands
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
@@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
TARGETS = envPaths dllPath.bat
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
@@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
TARGETS = envPaths dllPath.bat
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
@@ -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.
|
||||
@@ -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,0 +1,29 @@
|
||||
#!../../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"
|
||||
_CSAFEAPPNAME__registerRecordDeviceDriver pdbbase
|
||||
|
||||
## Load record instances
|
||||
dbLoadTemplate "db/user.substitutions"
|
||||
dbLoadRecords "db/_APPNAME_Version.db", "user=_USER_"
|
||||
dbLoadRecords "db/dbSubExample.db", "user=_USER_"
|
||||
|
||||
#- Set this to see messages from mySub
|
||||
#var mySubDebug 1
|
||||
|
||||
#- Run this to trace the stages of iocInit
|
||||
#traceIocInit
|
||||
|
||||
cd "${TOP}/iocBoot/${IOC}"
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq sncExample, "user=_USER_"
|
||||
@@ -0,0 +1,26 @@
|
||||
#- 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")
|
||||
_CSAFEAPPNAME__registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
## Load record instances
|
||||
dbLoadTemplate("db/user.substitutions")
|
||||
dbLoadRecords("db/_APPNAME_Version.db", "user=_USER_")
|
||||
dbLoadRecords("db/dbSubExample.db", "user=_USER_")
|
||||
|
||||
#- Set this to see messages from mySub
|
||||
#var mySubDebug 1
|
||||
|
||||
#- Run this to trace the stages of iocInit
|
||||
#traceIocInit
|
||||
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq(sncExample, "user=_USER_")
|
||||
@@ -0,0 +1,36 @@
|
||||
#- 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 0,0, "_APPNAME_.munch"
|
||||
|
||||
## Register all support components
|
||||
cd top
|
||||
dbLoadDatabase "dbd/_APPNAME_.dbd"
|
||||
_CSAFEAPPNAME__registerRecordDeviceDriver pdbbase
|
||||
|
||||
## Load record instances
|
||||
dbLoadTemplate "db/user.substitutions"
|
||||
dbLoadRecords "db/_APPNAME_Version.db", "user=_USER_"
|
||||
dbLoadRecords "db/dbSubExample.db", "user=_USER_"
|
||||
|
||||
#- Set this to see messages from mySub
|
||||
#mySubDebug = 1
|
||||
|
||||
#- Run this to trace the stages of iocInit
|
||||
#traceIocInit
|
||||
|
||||
cd startup
|
||||
iocInit
|
||||
|
||||
## Start any sequence programs
|
||||
#seq &sncExample, "user=_USER_"
|
||||
@@ -0,0 +1,26 @@
|
||||
#- Instructions for creating and using a real nfsCommands file
|
||||
#-
|
||||
#- in order to use nfs do the following:
|
||||
#- 1) Create hostAdd and nfsMount 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 command has the form:
|
||||
#- hostAdd("<host>","xxx.xxx.xxx.xxx")
|
||||
#-
|
||||
#- 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")
|
||||
#- nfsMount("mercury","/home/mercury5/iocinfo","/iocinfo")
|
||||
@@ -0,0 +1,29 @@
|
||||
#- Instructions for creating and using a real nfsCommands file
|
||||
#-
|
||||
#- in order to use nfs do the following:
|
||||
#- 1) Create hostAdd and nfsMount 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 command has the form:
|
||||
#- hostAdd("<host>","xxx.xxx.xxx.xxx")
|
||||
#-
|
||||
#- The nfsMount command has the form:
|
||||
#- nfsMount("<host>", "/xxx/xxx/xxx", "/xxx")
|
||||
#-
|
||||
#- You can also mount subdirectories as follows:
|
||||
#- nfsMountAll("<host>")
|
||||
#-
|
||||
#- 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")
|
||||
#- nfsMount("mercury","/home/mercury5/iocinfo","/iocinfo")
|
||||
Reference in New Issue
Block a user