...
- Create the $IOC_DATA directory for your cpu and iocs as follows:
- cd $IOC_DAT
- Create the $EPICS_IOCS cpu and ioc boot directories
- cd $EPICS_IOCS
- mkdir cpu-<area>-<subsystem-prefix><2-digit#>
- mkdir sioc-<area>-<subsystem-prefix><2-digit#>
- Setup cpu directory files
- cd cpu-<area>-<subsystem-prefix><2-digit#>
- Setup relative symbolic links to the common startup script and EPICS version:.
- ln -s ../common/st.cmd.linuxRT.cpu cpu startup.cmd
- ln -s ../common/bin/<epics base version> version> epicsSpecificRelease
- Generate the file kernel-module.cmd. This file load kernels modules and drivers: kernel-modules.cmd
- for examples click here.
- Setup ioc directory files
- cd sioc-<area>-<subsystem-prefix><2-digit#>
- copy our copy the ioc startup.cmd script fro from $EPICS_IOCS/template
- for linuxRT running iocsh: cp ../template/startup.cmd.linuxRT linuxRT startup.cmd
- for linuxRT running cexp: cp cp ../template/startup.cmd.linuxRT.cexp startup.cmd
- edit startupedit startup.cmd
- replace <ioc> with your ioc name and for cexp replace <facility>
- change path of the EPICS_IOC_APP in your st,cmd file is in a non-standard location.
- cp ../template/screenrc screeenrc screenrc
- edit screenrc and replace <ioc> with your ioc name.
- Setup a relative symbolic link to the TOP of the IOC Application release.
- ln -s ../../iocTop/<app>/<version> iocSpecificRelease
- Modify $EPICS_IOCS/screeniocs screeniocs – Please note that this is a symbolic link to this CVSed file:
- add line for cpu
format: cpu-<area>-<subsystem-prefix><2-digit #> <ts> <ts port #t> <screen host> [ # comment] - add line for each ioc
format: sioc-<area>-<subsystem prefix><2-digit #> cpu-<area>-<subsystem-prefix><2-digit #> <account> [ # comment] - The "comment" field in screeeniocs is optional and must be precede but "#".
- commit your changes to screeniocs to the code management system
IOC Applications Specific RT constraints:
- Create script <app>/iocBoot/<ioc>/rtPriortiesSetuprtPrioritySetup.cmd cmd to set real-time priorities for threads
- Load rtPriortiesSetuprtPrioritySetup.cmd from from <app>/iocBoot/<ioc>/st.cmd
...