From 11157c02a6a1338bb2d9ee0f5ba1b2cadc583264 Mon Sep 17 00:00:00 2001 From: zimoch Date: Thu, 19 Jan 2012 10:08:04 +0000 Subject: [PATCH] prepare for new require that uses EPICS_DRIVER_PATH variable set EPICS_TS_NTP_INET early before any driver is loaded and may need the time --- startup.script_common | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/startup.script_common b/startup.script_common index 0cb6958..4323748 100644 --- a/startup.script_common +++ b/startup.script_common @@ -30,12 +30,20 @@ sprintf (STREAM_PROTOCOL_DIR, "%s/cfg", HOME) LIB=malloc(80) sprintf (LIB, "%s/iocBoot/%s/%s", INSTBASE, EPICS, ARCH) +DBD=malloc(80) +sprintf (DBD, "dbd:%s/iocBoot/%s/dbd", INSTBASE, EPICS) + +sprintf (STRINGBUFFER, "EPICS_DRIVER_PATH=.:bin:snl:%s", LIB) +putenv (STRINGBUFFER) + TEMPLATES=malloc(80) sprintf (TEMPLATES, ".:%s/iocBoot/templates", INSTBASE) -# 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 +# time server (must be set before any drivers are configured) +putenv("EPICS_TS_NTP_INET=129.129.190.1") + +# Release memory above 32 MB +# Code loaded after this must be compiled with -mlongcall EXTENDED_MEMORY=sysPhysMemTop()-sysMemTop() #Load EPICS version dependent script