65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
# set extended memory size (for startup.script_part3)
|
|
EXTENDED_MEMORY=sysPhysMemTop()-sysMemTop()
|
|
|
|
cd LIB
|
|
#required for ifenvsetnew:
|
|
ld < utilitiesLib
|
|
# disable floating point exceptions
|
|
slsFppInit
|
|
|
|
# setup mount points
|
|
ifenvsetnew (ifName(),"SLSFS01","129.129.145.52","172.19.11.101","172.20.10.10")
|
|
hostAdd ("slsfs01",getenv("SLSFS01"))
|
|
nfsMount (&sysBootHost, "/ioc", "/ioc")
|
|
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
|
|
nfsMount ("slsfs01","/export/csa/releases/work","/work")
|
|
nfsMount ("slsfs01","/export/csa/releases/prod","/prod")
|
|
nfsMount ("slsfs01","/export/csa/releases/devl","/devl")
|
|
nfsMount ("slsfs01","/export/exchange","/exchange")
|
|
# cd to now mounted direcotry
|
|
cd LIB
|
|
|
|
# load EPICS system core
|
|
ld < iocCore.syncTS
|
|
ld < seq
|
|
# load EPICS tools like "require"
|
|
ld < miscLib
|
|
# next line allows to continue even if mounting failed
|
|
cd bootInfo("%H:")
|
|
cd HOME
|
|
|
|
# setup logging
|
|
ifenvsetnew(ifName(),"EPICS_IOC_LOG_INET","129.129.128.46","172.19.84.63","172.20.20.30")
|
|
putenv("EPICS_IOC_LOG_PORT=6500")
|
|
|
|
# insert boot infos into database
|
|
bootNotify (SLSBASE, "sls/bin/iocBootNotify.sh")
|
|
|
|
# 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"))
|
|
|
|
# try for user-defined menus scan and convert
|
|
dbLoadDatabase("dbd/scan.dbd")
|
|
dbLoadDatabase("dbd/convert.dbd")
|
|
dbLoadDatabase("dbd/slsConvert.dbd")
|
|
|
|
#load standard drivers
|
|
require "base"
|
|
require "slsDev"
|
|
require "ipac"
|
|
|
|
# setup clock
|
|
require "mrcevg"
|
|
require "mrcevr"
|
|
require "TSstat"
|
|
putenv("EPICS_TS_MIN_WEST=-60")
|
|
ifenvsetnew(ifName(),"EPICS_TS_NTP_INET","129.129.190.2","172.19.11.101","172.20.10.10")
|
|
TSconfigure(0,20,1000,18323,18322,250,0)
|
|
|
|
# $Id: syncTS,v 1.1 2009/12/22 11:03:11 zimoch Exp $
|
|
# end of startup.script_common
|