# Generic piece of LLRF PAD initialization pwd() # /data now mapped by pre_st.cmd nfsMountsShow() wdStart(20) # Debugger stub daemon ld("rtems-gdb-stub.obj") # Dedicated ethernet + network stack driver ld("lanIpBasic_ln9.obj") # Load IOC chdir("../..") ld("bin/RTEMS-uC5282/genPadApp.obj") # unfortunately, fcomUtilSetIPADDR1 overrides the variable # however, we dont want it to be changed if the caller of # this script already provides it. getenv("NEW_LANIP") && (getenv("IPADDR1") || fcomUtilSetIPADDR1("-fnet")) lanIpSetup(getenv("IPADDR1"),getenv("NETMASK1"),0,0) lanIpDebug = 0 padProtoDebug = 0 epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES","1000000") devWfPadDebug=0 dbLoadDatabase("dbd/genPadApp.dbd") genPadApp_registerRecordDeviceDriver(pdbbase) dbLoadRecords("db/genPadRawWaveform.db", getenv("DEV")) # load extra DB if they define EXTRA_DB (which must contain the 'db/' path) getenv("EXTRA_DB") && dbLoadRecords(getenv("EXTRA_DB"), getenv("EXTRA_DB_SUB")) dbLoadRecords("db/padlongin.db",getenv("DEV"),0) # For iocAdmin epicsEnvSet("ENGINEER","Shantha Condamoor") epicsEnvSet("LOCATION",getenv("LOCN"),0) # Rack Level Number # Load iocAdmin adatabases dbLoadRecords("db/iocAdminRTEMS.db",getenv("IOC_MACRO")) #dbLoadRecords("db/iocAdminScanMon.db",getenv("IOC_MACRO"),0) # The following database is a result of a python parser # which looks at RELEASE_SITE and RELEASE to discover # versions of software your IOC is referencing # The python parser is part of iocAdmin dbLoadRecords("db/iocRelease.db",getenv("IOC_MACRO")) # ===================================================================== # Load database for autosave status # ===================================================================== dbLoadRecords("db/save_restoreStatus.db", getenv("AUTOSAVE_MACRO"),0) # ===================================================================== # Setup autosave/restore # ===================================================================== . iocBoot/init_restore.cmd # Capture load addresses of all modules (essential for debugging if iocInit crashes...) lsmod() # ===================================================================== # Start the EPICS IOC # ===================================================================== # give the caller of this script a chance to skip iocInit() # (by defining NO_IOC_INIT) getenv("NO_IOC_INIT") || iocInit() # ===================================================== # Turn on caPutLogging: # Log values only on change to the iocLogServer: #caPutLogInit("172.27.8.31:7004") #caPutLogShow(2) # ===================================================== # Generate the autosave PV list (Takes a long time) #chdir("/data/autosave-req") #iocshCmd("makeAutosaveFiles()") ## Start autosave process: . iocBoot/start_restore.cmd pwd() bootConfigShow() nvramConfigShow() epicsEnvShow() # dbl()