moved startup files to separate repo

This commit is contained in:
2024-07-02 16:21:44 +02:00
parent 1d3ae631dc
commit ccf816ac96
14 changed files with 0 additions and 261 deletions
-9
View File
@@ -1,9 +0,0 @@
# setup mount points
hostAdd ("fileserver","129.129.145.56")
nfsMount ("fileserver", "/export/fin/ioc", "/ioc")
nfsMount ("fileserver", "/export/fin/work", "/fin/work")
nfsMount ("fileserver", "/export/fin/prod", "/fin/prod")
nfsMount ("fileserver", "/export/fin/devl", "/fin/devl")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
putenv("EPICS_CA_AUTO_ADDR_LIST=NO")
putenv("EPICS_CA_ADDR_LIST=172.21.10.255 172.21.11.255 172.21.12.255 172.21.13.255")
-7
View File
@@ -1,7 +0,0 @@
# setup mount points
hostAdd ("fileserver","129.129.145.42")
nfsMount ("fileserver","/export/hipa/work","/hipa/work")
nfsMount ("fileserver","/export/hipa/prod","/hipa/prod")
nfsMount ("fileserver","/export/hipa/ioc","/ioc")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
nfsAuthUnixSet &sysBootHost,500,9102
-6
View File
@@ -1,6 +0,0 @@
# setup mount points
hostAdd ("fileserver","129.129.145.66")
nfsMount ("fileserver","/export/proscan/ioc","/ioc")
nfsMount ("fileserver","/export/proscan/work","/proscan/work")
nfsMount ("fileserver","/export/proscan/prod","/proscan/prod")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
-22
View File
@@ -1,22 +0,0 @@
# Accept SLSBASE or INSTBASE
PBASE=0
symFindByName(sysSymTbl,"INSTBASE",&PBASE,0)
symFindByName(sysSymTbl,"SLSBASE",&PBASE,0)
SLSBASE=*PBASE
INSTBASE=*PBASE
# Router for SLS machine net (fails otherwise but that's ok)
routeAdd ("0.0.0.0","172.20.10.1")
# setup mount points (try both possible locations for /ioc)
hostAdd ("slsfs","129.129.145.52")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
nfsMount (&sysBootHost, "/ioc", "/ioc")
nfsMount ("slsfs", "/export/csa/releases/ioc", "/ioc")
nfsMount ("slsfs","/export/csa/releases/work","/work")
nfsMount ("slsfs","/export/csa/releases/prod","/prod")
nfsMount ("slsfs","/export/csa/releases/devl","/devl")
nfsMount ("slsfs","/export/exchange","/exchange")
# overwrite driver module location
EPICS_MODULES = "/work/iocBoot/modules"
-5
View File
@@ -1,5 +0,0 @@
# setup mount points
hostAdd ("fileserver","129.129.145.56")
nfsMount ("fileserver", "/export/trfcb/ioc", "/ioc")
nfsMount ("fileserver", "/export/trfcb/work", "/trfcb/work")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
-1
View File
@@ -1 +0,0 @@
require "autoSRarray",getenv("autoSRarray_VERSION")
-1
View File
@@ -1 +0,0 @@
require "autoSRarray" "$(autoSRarray_VERSION=)"
-121
View File
@@ -1,121 +0,0 @@
# $Source: /cvs/A/CS/startup/startup.script_common,v $
# This is the common part of all startup scripts
# It is included by all generated scripts
# The following variables should be set before:
# * INSTBASE where to boot from
# * EPICS the epics release (e.g "R3.13.9")
EPICS_MODULES = "/ioc/modules"
# find a better way later to know current require version
REQUIRE_VERSION="2.4.3"
#set EPICS_HOST_ARCH according to vxWorks version and cpu type
VX6=(*runtimeVersion>>24)&255-'5'
VMI=(*runtimeVersion>>8)&255
EPICS_HOST_ARCH=malloc(16)
sprintf(EPICS_HOST_ARCH,"%s%c-ppc60%d",VX6?"V6":"T",VX6?VMI:VMI>'3'?'2':'1',sysCpu-90)
#set target name as IOC name
IOC=&sysBootParams+60
BOOTPC=&sysBootHost
STRINGBUFFER=malloc(256)
# set the prompt
sprintf STRINGBUFFER, "%s (startup.script aborted) > ", IOC
shellPromptSet STRINGBUFFER
# time server
putenv "EPICS_TS_NTP_INET=129.129.190.1"
# do the NFS mounts and other network dependend stuff
< ../../startup/network
sprintf STRINGBUFFER, "IOC=%s", IOC
putenv STRINGBUFFER
# setup logging on boot PC
sprintf STRINGBUFFER, "EPICS_IOC_LOG_INET=%s", BOOTPC
putenv STRINGBUFFER
putenv "EPICS_IOC_LOG_PORT=6500"
# create some path variables
HOME=malloc(80)
sprintf HOME, "/ioc/%s", IOC
sprintf STRINGBUFFER, "HOME=%s", HOME
putenv STRINGBUFFER
cd HOME
CFG=malloc(80)
sprintf CFG, "%s/cfg", HOME
sprintf STRINGBUFFER, "CFG=%s", CFG
putenv STRINGBUFFER
STREAM_PROTOCOL_DIR=malloc(80)
sprintf STREAM_PROTOCOL_DIR, "%s/cfg", HOME
LIB=malloc(80)
sprintf LIB, "%s/iocBoot/%s/%s", INSTBASE, EPICS, EPICS_HOST_ARCH
DBD=malloc(80)
sprintf DBD, "dbd:%s/iocBoot/%s/dbd", INSTBASE, EPICS
sprintf STRINGBUFFER, "EPICS_DRIVER_PATH=.:bin/%s_%s:bin:snl:%s:%s", EPICS, EPICS_HOST_ARCH, EPICS_MODULES, LIB
putenv STRINGBUFFER
TEMPLATES=malloc(80)
sprintf TEMPLATES, ".:%s/iocBoot/templates", INSTBASE
# Release memory above 32 MB
# Code loaded after this must be compiled with -mlongcall
# at the moment snp24 does not work with this
memAddToPool (sysMemTop(),sysPhysMemTop()-sysMemTop())
EXTENDED_MEMORY=0
#EXTENDED_MEMORY=sysPhysMemTop()-sysMemTop()
# load EPICS system core (different names for 3.13 and 3.14)
sprintf STRINGBUFFER, "%s/iocCore%s", LIB, strncmp(EPICS,"R3.13.",6) ? "Library.munch" : ""
ld 0, 0, STRINGBUFFER
# TIMEZONE must be set after loading iocCoreLibrary.munch and before iocInit
# 2016:
putenv "TIMEZONE=MET::-60:032702:103003"
putenv "EPICS_TS_MIN_WEST=-60"
# try for user-defined menus scan and convert
dbLoadDatabase "dbd/scan.dbd"
dbLoadDatabase "dbd/convert.dbd"
dbLoadDatabase "dbd/slsConvert.dbd"
taskDelay sysClkRateGet()
# load "require"
sprintf STRINGBUFFER, "require_VERSION=%s", getenv("require_VERSION") ? getenv("require_VERSION") : REQUIRE_VERSION
putenv STRINGBUFFER
sprintf STRINGBUFFER, "require_DIR=%s/require/%s/%s/", EPICS_MODULES, getenv("require_VERSION"), EPICS
putenv STRINGBUFFER
sprintf STRINGBUFFER, "%s/lib/%s/requireLib.munch", getenv("require_DIR"), EPICS_HOST_ARCH
ld 0, 0, STRINGBUFFER
#load standard drivers (allow user to specify version in environment variable)
require "base", getenv("base_VERSION")
registerModule "require", getenv("require_VERSION"), getenv("require_DIR")
require "utilities", getenv("utilities_VERSION")
require "misc", getenv("misc_VERSION")
require "iocmon", getenv("iocmon_VERSION")
require "genTime", getenv("genTime_VERSION") ? getenv("genTime_VERSION") : "ifexists"
require "seq", getenv("seq_VERSION") ? getenv("seq_VERSION") : "ifexists"
# run EPICS only on 1st network port
putenv "EPICS_CA_AUTO_ADDR_LIST=NO"
putenv bootInfo("EPICS_CA_ADDR_LIST=%B")
putenv bootInfo("EPICS_CAS_INTF_ADDR_LIST=%e")
putenv "EPICS_CAS_AUTO_BEACON_ADDR_LIST=NO"
putenv bootInfo("EPICS_CAS_BEACON_ADDR_LIST=%B")
# insert boot infos into database
bootNotify INSTBASE, "sls/bin/iocBootNotify.sh"
# end of startup.script_common
-1
View File
@@ -1 +0,0 @@
# startup.script_iocmon is blank interntionally and only needed for backward compatibility with swit.
-38
View File
@@ -1,38 +0,0 @@
# set EPICS according to BASE or default to 3.14.12
epicsEnvSet EPICS, R$(BASE=3.14.12)
# set up CA search lists for different networks
# Office (only officicial EPICS subnets, not SLS beamlines!)
epicsEnvSet CA_129.129.130,"129.129.131.255 129.129.137.255"
epicsEnvSet CA_129.129.131,"129.129.130.255 129.129.137.255"
epicsEnvSet CA_129.129.137,"129.129.130.255 129.129.131.255"
# WHLA (FIN machine networks)
epicsEnvSet CA_172.21.10,"172.21.11.255 172.21.12.255 172.21.13.255"
epicsEnvSet CA_172.21.11,"172.21.10.255 172.21.12.255 172.21.13.255"
epicsEnvSet CA_172.21.12,"172.21.10.255 172.21.11.255 172.21.13.255"
epicsEnvSet CA_172.21.13,"172.21.10.255 172.21.11.255 172.21.12.255"
# OSFA (SF machine networks)
epicsEnvSet CA_172.26,"sf-cans-01 sf-cans-02"
epicsEnvSet CA_AUTO_172.26,"NO"
epicsEnvSet CA_BEACON_172.26,"172.26.0.255 172.26.2.255 172.26.8.255 172.26.16.255 172.26.24.255 172.26.32.255 172.26.40.255 172.26.120.255"
epicsEnvSet CA_AUTO_BEACON_172.26,"NO"
# All others can work with the defaults: automatic
# Apply settings dependent on network
system ("/sbin/ifconfig | awk -F '[.: ]+' -v P='epicsEnvSet NET' -v K=, '/192.168/ {next} /Bcast/ {print P 1 K $9; print P 2 K $10; print P 3 K $11; exit}'>/tmp/$(IOC).net")
< /tmp/$(IOC).net
system ("rm /tmp/$(IOC).net")
epicsEnvSet EPICS_CA_ADDR_LIST,"$(CA_$(NET1=).$(NET2=).$(NET3=)=$(CA_$(NET1=).$(NET2=)=))"
epicsEnvSet EPICS_CA_AUTO_ADDR_LIST,"$(CA_AUTO_$(NET1=).$(NET2=).$(NET3=)=$(CA_AUTO_$(NET1=).$(NET2=)=YES))"
epicsEnvSet EPICS_CAS_BEACON_ADDR_LIST,"$(CA_BEACON_$(NET1=).$(NET2=).$(NET3=)=$(CA_BEACON_$(NET1=).$(NET2=)=$(EPICS_CA_ADDR_LIST)))"
epicsEnvSet EPICS_CAS_BEACON_AUTO_ADDR_LIST,"$(CA_AUTO_BEACON_$(NET1=).$(NET2=).$(NET3=)=$(CA_AUTO_BEACON_$(NET1=).$(NET2=)=YES))"
epicsEnvSet TEMPLATES, $(INSTBASE)/iocBoot/templates
epicsEnvSet CFG, $(PWD)/cfg
epicsEnvSet STREAM_PROTOCOL_PATH, .:$(PWD)/cfg
# disable sysmon for IFC
epicsEnvSet sysmon_VERSION_eldk52-e500v2 none
require sysmon $(sysmon_VERSION=$(sysmon_VERSION_$(T_A=)=))
! iocBootNotify.sh $(IOC) - \"\${SHELLBOX#*:}\" - $(_) $(PWD)/startup.script - $(EPICS) -
-9
View File
@@ -1,9 +0,0 @@
# $Source: /cvs/A/CS/startup/startup.script_part2,v $
# 2nd part of common startup
#Enable memory >32MB on IOC that have it. (Is a NOOP on all others)
memAddToPool sysMemTop(), EXTENDED_MEMORY
iocInit
# end of startup.script_part2
-16
View File
@@ -1,16 +0,0 @@
# $Source: /cvs/A/CS/startup/startup.script_part3,v $
# insert record list into database
sprintf STRINGBUFFER, "/home/ioc/%s.dbl", IOC
listRecords STRINGBUFFER, "RTYP DESC"
sprintf STRINGBUFFER, "%s/sls/bin/dbl2odb.sh", INSTBASE
rsh BOOTPC, "dbl2odb.sh", IOC, bootInfo("%B"), getenv("EPICS_CA_SERVER_PORT")
# insert library list into database
sprintf STRINGBUFFER, "/home/ioc/%s.libs", IOC
libversionShow STRINGBUFFER
rsh BOOTPC, "upload_libinfo.sh", "-r -i", IOC, "-l", STRINGBUFFER
# set the prompt
sprintf STRINGBUFFER, "%s > ", IOC
shellPromptSet STRINGBUFFER
-11
View File
@@ -1,11 +0,0 @@
# $Source: /cvs/A/CS/startup/startup.script_win32,v $
epicsEnvSet EPICS, R3.14.8
epicsEnvSet STREAM_PROTOCOL_PATH, %CD%/cfg
epicsEnvSet EPICS_DRIVER_PATH, C:/epics/SOFTIOCWIN32/bin/win32-x86
epicsEnvSet TEMPLATES, $(INSTBASE)/iocBoot/templates
epicsEnvSet CFG, %CD%/cfg
dbLoadDatabase "../../dbd/ioc.dbd"
ioc_registerRecordDeviceDriver pdbbase
-14
View File
@@ -1,14 +0,0 @@
# $Source: /cvs/A/CS/startup/startup.script_win64,v $
dlload misc
dbLoadDatabase "../../../dbd/misc.dbd"
misc_registerRecordDeviceDriver pdbbase
winunixconv EPICSBASE
winunixconv SOFTIOC
epicsEnvSet STREAM_PROTOCOL_PATH, $(SOFTIOC)/iocBoot/ioc/$(IOC)/cfg
epicsEnvSet EPICS_DRIVER_PATH, $(SOFTIOC)/bin/$(T_A)
epicsEnvSet TEMPLATES, $(SOFTIOC)db
epicsEnvSet CFG, $(SOFTIOC)/iocBoot/ioc/$(IOC)/cfg
pwd