You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 18
Next »
LinuxRT Initial Set-up of cpu and ioc boot directories:
- BOLD: refers to files that need to be modified or generated by IOC developer
- Italics: symbolic link
- LinuxRT_Diagram (old)
- Create the $IOC_DATA directory for your cpu and iocs as follows:
- cd $IOC_DATA
- mkdir cpu-<area>-<subsystem-prefix><2-digit#>
- mkdir sioc-<area>-<subsystem-prefix><2-digit#>
- cd sioc-<area>-<subsystem-prefix><2-digit#>
- mkdir autossave autosave-req iocInfor archive restore
- Create the $EPICS_IOCS cpu and ioc boot directories
- cd $EPICS_IOCS
- mkdir cpu-<area>-<subsystem-prefix><2-digit#>
- 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 startup.cmd
- ln -s ../common/bin/<epics base version> epicsSpecificRelease
- Generate a kernel-modules.cmd file
- for examples click here.
- mkdir sioc-<area>-<subsystem-prefix><2-digit#>
- cd sioc-<area>-<subsystem-prefix><2-digit#>
- cp ../template/st.cmd.linuxRT startup.cmd
- edit startup.cmd and replace <ioc> with your ioc name.
- cp ../template/screenrc and replace <ioc> with your ioc name.
- edit screenrc and replace <ioc> with your ioc name.
- Please note that if the location of your IOC Application st.cmd file is non-standard then change EPICS_IOC_APP path in startup.cmd
- Setup a relative symbolic link to the TOP of the IOC Application release
- ln -s ../../iocTop/<app>/<version> iocSpecificRelease
- Add cpu and IOC to $EPICS_IOCS/screeniocs
- Please note that the $EPICS file is a symbolic link, so cd to the appropriate directory and edit this 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 screeeniocsis optional and must be precede but "#".
To reboot linuxRT ioc from a Linux client type the following:: "viocRestart -v <ioc>" RT IOC Applications:
- Create script <app>/iocBoot/<ioc>/rtPriortiesSetup.cmd to set real-time priorities for threads
- Load rtPriortiesSetup.cmd from <app>/iocBoot/<ioc>/st.cmd
LinuxRT Upgrade IOC Application release:
How-to start your linuxRT EPICS Application manually from Linux command line:
- ssh laci@cpu-b34-fb01
- cd <app>/iocBoot/<ioc>
- ./st.cmd – first line of st.cmd must have !# for this to execute epics application binary ex: !# ../../bin/linuxRT-x86_64/<exe>
How-to boot a linuxRT ioc from the <cpu>:
The following scripts are located under the directory $IOC/common and should be in PATH
- In the foreground w/screens
- linuxRT_viocConsole.sh <ioc>
- In the background w/screens
- linuxRT_startup_vioc.sh <ioc>
- In the foreground without screens
- linuxRT_startupConsole.sh <ioc>
How-to use screen program:
Additional References: