moved to subdirectories because of incompatobilities in vxworks 6
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
# The following variables should be set before:
|
||||
# * IOC the system name of the ioc
|
||||
# * INSTBASE where to boot from
|
||||
# * SLSBASE alias for INSTBASE
|
||||
# * EPICS the epics release (e.g "R3.13.9")
|
||||
# * ARCH the vxWorks architecture (e.g. "T1-ppc604")
|
||||
|
||||
@@ -15,6 +14,19 @@ 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")
|
||||
|
||||
STRINGBUFFER=malloc(256)
|
||||
|
||||
# set the prompt
|
||||
@@ -37,24 +49,14 @@ sprintf (LIB, "%s/iocBoot/%s/%s", INSTBASE, EPICS, ARCH)
|
||||
TEMPLATES=malloc(80)
|
||||
sprintf (TEMPLATES, ".:%s/iocBoot/templates", INSTBASE)
|
||||
|
||||
# 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")
|
||||
|
||||
# All T2-code is compiled with -mlongcall. Thus enable extended memory.
|
||||
memAddToPool (sysMemTop(),sysPhysMemTop()-sysMemTop())
|
||||
EXTENDED_MEMORY=0
|
||||
# Memory above 32 MB is blocked to avoid relocation problem
|
||||
# Release it after libs are loaded and before iocInit
|
||||
# Code loaded afer iocInit must be compiled with -mlongcall
|
||||
EXTENDED_MEMORY=sysPhysMemTop()-sysMemTop()
|
||||
|
||||
#Load EPICS version dependent script
|
||||
sprintf (STRINGBUFFER, "%s/iocBoot/startup/%s", INSTBASE, EPICS)
|
||||
ioGlobalStdSet (0, open (STRINGBUFFER, 0, 0))
|
||||
#startup script contiues at <INSTBASE>/iocBoot/startup/<EPICS>
|
||||
cd STRINGBUFFER
|
||||
< startup.script_epicsdependent
|
||||
|
||||
# end of startup.script_common
|
||||
|
||||
Reference in New Issue
Block a user