Script started on Fri 09 Aug 2013 04:04:22 PM PDT lcls-dev2 MachineProtection $iocConsole ioc-b34-mp01 processing hard ioc... iocConsole: ssh -x -l laci -t lcls-dev2 " bash -l iocScreen.pl ts-lclsdev08 2006 ioc-b34-mp01 0" iocScreen: bash -l iocScreenStart.pl ts-lclsdev08 2006 ioc-b34-mp01 0 os: Linux iocScreenStart: screen found for iocname = ioc-b34-mp01 iocScreen: /home/screen/bin/screen -r -S laci/ioc-b34-mp01 [?1h=(B ########################################################################## # Setup some PVs ########################################################################## iocshCmd("dbpf(\"${MPS_LP_IOC_PREFIX}:DBVERS\",\"${MPS_CONFIG_DATABASE_VERSION}\")") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n'########################################################################## # Restore Last Used Algorithm Setup ########################################################################## mpsLoadAlgorithmRestoreFile() Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n'########################################################################## # Sequence Programs ########################################################################## # There are way to many EPICS faults being monitored but start it up anyway. :( # Sleep for three seconds to help st.cmd to print out nicely on the console monitorEpicsFaults() && sleep(3) Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' ########################################################################## # Make Adjustments Where Logic is Reversed # Normally the logic is to be OK when the signal is high. # This is so that if a signal is unplugged, i.e. reading zero, it will be # detected. In some of the cases in the old MPS (1553), this logic was # reversed. These signals were transfered directly to this MPS and so must # be accepted as is (i.e. where zero is OK and non-zero is FAULT). # Because the EPICS database is autogenerated from SQL for # all PVs, it's best to not change the autogeneration logic and just flip # the severity here. ########################################################################## dbpf("SHUT:IN20:1:FAULT_MPS.OSV","MAJOR") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' dbpf("SHUT:IN20:1:FAULT_MPS.ZSV","NO_ALARM") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' dbpf("SHUT:IN20:1:BYPASS_MPS.OSV","MAJOR") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' dbpf("SHUT:IN20:1:BYPASS_MPS.ZSV","NO_ALARM") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' dbpf("KLYS:LI20:61:PEAKPOWER_MPS.OSV","MAJOR") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' dbpf("KLYS:LI20:61:PEAKPOWER_MPS.ZSV","NO_ALARM") Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n' ########################################################################## # Additional Help ########################################################################## # View CPU load with spy: iocshCmd("spy 5") # # Load algorithms by writing algorithm names to: #IOC:BSY0:MP01:ALGLOAD and #IOC:BSY0:MP01:ALGRUN # # Unload algorithms by writing algorithm names to: #IOC:BSY0:MP01:ALGUNLOAD # # Remember to restart the history server: #Run the following commands as laci on lcls-daemon2: #$ /etc/rc3.d/S99st.mpshist stop #$ /etc/rc3.d/S99st.mpshist start # # And to recover bypassed inputs, clearing the bypass recover fault: #Go to LCLSHome/Global/MPS #Click on "Recover Bypasses" #Follow directions # Type 'cexpsh.help()' for help (no quotes) Cexp@ioc-b34-mp01>bsp_reset()   Printing a stack trace for your convenience :-)  0x000DEC04--> 0x000DF6F4--> 0x00009344--> 0x00010474--> 0x00010B1C  0x0000836C--> 0x000052C0--> 0x00152820--> 0x001527A0  RTEMS terminated; Rebooting ...ÿ Copyright Motorola Inc. 1999-2005, All Rights Reserved MOTLoad RTOS Version 2.0, PAL Version 1.1 RM04 Wed Jul 20 15:07:15 MST 2005 MPU-Type =MPC74x7 MPU-Int Clock Speed =1266MHz MPU-Ext Clock Speed =133MHz MPU-Int Cache(L2) Enabled, 512KB, L2CR =C0000000 MPU-Ext Cache(L3) Enabled, 2MB, 211MHz, L3CR =DC026000 PCI bus instance 0 =64 bit, 133 Mhz, PCI-X PCI bus instance 1 =64 bit, PCI Reset/Boot Vector =Flash1 Local Memory Found =20000000 (&536870912) User Download Buffer =006B7000:008B6FFF Boot Script - Press to Bypass, to Continue MVME6100> netShut /dev/enet0 Disabled /dev/enet1 Disabled MVME6100> bmw -af4000000 -bf40fffff ------------------------------------------  config addr is 0xF1000CF8  config data is 0xF1000CFC  Welcome to rtems-4.6.99.2(PowerPC/PowerPC 7455/beatnik)  Build Date: Tue Jan 31 21:11:05 PST 2006  Board Type: MVME6100-0163 (S/N 7705756)  CPU: MPC7457  Bus Clock Freq: 133333333 Hz  CPU Clock Freq: 1266666654 Hz  Memory: 536870912 bytes  -----------------------------------------  Now BSP_mem_size = 0x1FE00000  BSP_Configuration.work_space_size = 17400  Page table setup finished; will activate it NOW...  Going to start PCI buses scanning and initialization  Number of PCI buses found is : 3  MSR 3032  Exit from bspstart  Registering /dev/console as minor 0 (==/dev/ttyS0)    RTEMS bootloader by Till Straumann $Id: netboot.c,v 1.26 2005/12/15 02:59:51 till Exp $ CVS tag $Name: $ Type any character to abort netboot:xx 2 1 Link detected; attaching mve1 This is RTEMS-RPCIOD Release $Name: $ ($Id: rpcio.c,v 1.35 2005/11/17 18:41:40 strauman Exp $) Till Straumann, Stanford/SLAC/SSRL 2002 See LICENSE file for licensing info This is RTEMS-NFS Release $Name: $ ($Id: nfs.c,v 1.42 2005/11/17 22:18:34 strauman Exp $) Till Straumann, Stanford/SLAC/SSRL 2002 See LICENSE file for licensing info Trying to mount 172.23.66.75:/afs/slac on /mnt Hello, this is the RTEMS remote loader; trying to load 'afsnfs2:/afs/slac:/package/rtems/4.9.4/target/rtems_p2/ssrlApps_p6/powerpc-r rtems/beatnik/bin/rtems.ralf' Appending Commandline: 'BP_FILE=afsnfs2:/afs/slac:/package/rtems/4.9.4/target/rtems_p2/ssrlApps_p6/powerpc-rtems/beatnik/bin/rtems.ralf BP_PARM='INIT=/boot t/g/lcls/epics/iocCommon/ioc-b34-mp01/startup.cmd' BP_SRVR=172.23.66.75 BP_GTWY=134.79.219.1 BP_MYIP=134.79.219.127 BP_MYMK=255.255.2 252.0 BP_MYNM=ioc-b34-mp01 BP_MYDN=slac.stanford.edu BP_DNS1=134.79.18.40 BP_NTP1=134.79.18.40 BP_NTP2=134.79.18.41 BP_NTP3=134.79.18 8.34 BP_ENBL=N' Cache line size seems to be 32 bytes 0x229e68 (2268776) bytes read mve1 successfully shut down lo0 successfully shut down Starting loaded image @0x6d3a40 NOW... Cmdline @0x6d1928: 'BP_FILE=afsnfs2:/afs/slac:/package/rtems/4.9.4/target/rtems_p2/ssrlApps_p6/powerpc-rtems/beatnik/bin/rtems.ralf  BP_PARM='INIT=/boot/g/lcls/epics/iocCommon/ioc-b34-mp01/startup.cmd' BP_SRVR=172.23.66.75 BP_GTWY=134.79.219.1 BP_MYIP=134.79.219.12 27 BP_MYMK=255.255.252.0 BP_MYNM=ioc-b34-mp01 BP_MYDN=slac.stanford.edu BP_DNS1=134.79.18.40 BP_NTP1=134.79.18.40 BP_NTP2=134.79.18.4 41 BP_NTP3=134.79.18.34 BP_ENBL=N' -----------------------------------------  config addr is 0xF1000CF8  config data is 0xF1000CFC  Welcome to rtems-4.9.4-slac_p2(PowerPC/Generic (classic FPU)/beatnik) ($Name: rtems-4-9-4-slac_p0 $)  CPU: MPC7457  Build Date: Fri Feb 8 15:50:15 PST 2013  Board Type: MVME6100-0163 (S/N 7705756)  Bus Clock Freq: 133333333 Hz  CPU Clock Freq: 1266666654 Hz  Memory: 536870912 bytes  -----------------------------------------  Now BSP_mem_size = 0x1FE00000  Configuration.work_space_size = F00000  Page table setup finished; will activate it NOW...  Going to start PCI buses scanning and initialization  Number of PCI buses found is : 3  MSR 3032  Exit from bspstart  unable to find the universe in pci config space  Tundra Tsi148 PCI-VME bridge detected at 0x81100000, IRQ 84  Tsi148 Outbound Ports:  Port VME-Addr Size PCI-Adrs Mode:  0: 0x20000000 0x0E000000 0x90000000 A32, SUP, D32, SCT  1: 0x00000000 0x00FF0000 0x9F000000 A24, SUP, D32, SCT  2: 0x00000000 0x00010000 0x9FFF0000 A16, SUP, D32, SCT  7: 0x00000000 0x01000000 0x9E000000 CSR, SUP, D32, SCT  Tsi148 Inbound Ports:  Port VME-Addr Size PCI-Adrs Mode:  0: 0x90000000 0x1FE00000 0x00000000 A32, PGM, DAT, SUP, USR, MBLT, BLT  vmeTsi148 IRQ manager: looking for registers on VME...  Trying to find CSR on VME...  vmeTsi148 - IRQ manager using VME CSR to flush FIFO  Registering /dev/console as minor 0 (==/dev/ttyS0)  libbspExt - Warning: it seems that MCP support is not available on your CPU or not implemented by your board. Address probing must be performed in polling mode with interrupts disabled Welcome to RTEMS 4.9.4-slac_p2 GeSys This system $Name: R_20100615_p6 $ was built on 20130208PST16:14:14 $Id: init.c,v 1.55 2010/02/01 01:50:43 strauman Exp $  Installing TIOCGWINSZ line discipline: ok. To skip initialization, press a key now... Link detected; attaching mve1 RTEMS-RPCIOD $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See LICENSE file for licensing info. RTEMS-NFS $Release$, Till Straumann, Stanford/SLAC/SSRL 2002, See LICENSE file for licensing info. Trying to synchronize NTP...OK Trying to mount 172.23.66.75:/afs/slac on /boot Change Dir to '/boot//package/rtems/4.9.4/target/rtems_p2/ssrlApps_p6/powerpc-rtems/beatnik/bin/' Trying symfile 'BUILTIN', system script 'st.sys'  Type 'cexpsh.help()' for help (no quotes) 'st.sys': # useful abbreviations ld = cexpModuleLoad  0x0000b8b0 (47280)  unld = cexpModuleUnload  0x0000c2a8 (49832)  lsmod = cexpModuleInfo  0x0000cb34 (52020)  # start the portmapper with a priority argument rtems_rpc_start_portmapper(gesysNetworkTaskPriority)  0x00000000 (0)  # set telnet password to 'rtems' setenv("TELNETD_PASSWD","tduDcyLX12owo")  0x00000000 (0)  ld("telnetd.obj")  Device: /dev/pty0../dev/pty4 (5)pseudo-terminals registered.  rtems_telnetd() started with stacksize=32000,priority=150 0x01975ab0 (26696368)  # RTEMS monitor (type rtemsMonitor() to enter its own shell) ld("monitor.obj")  0x0198c478 (26788984)  # misc utilities, e.g., md(), mm() memory inspection/modification ld("miscUtils.obj")  0x0198c9a8 (26790312)  # NTP clock this is NOT the system clock. Read using ntp_gettime() ld("ntpclock.obj") && rtemsNtpInitialize(0,0)  Trying to contact NTP server; (timeout ~1min.)... OK NTP synchro code initialized; this is EXPERIMENTAL 0x00000000 (0)  # set timezone (2007++ rule) setenv("TZ","PST8PDT,M3.2.0,M11.1.0",1)  0x00000000 (0)  tzset()  0x00000000 (0)  # set default PATH addpathcwd(":",0)  0x00000000 (0)    # Ethernet Interface Media Ioctl Commands (for convenience) SIOCSIFMEDIA=0xc0206937  0xc0206937 (-1071617737)  SIOCGIFMEDIA=0xc0286938  0xc0286938 (-1071093448)  # Media word: # (phy_inst<<28) | (options) | (type<<4) | (subtype) # type: 2: ETHER, 4: TOKEN, 6: FDDI # ether_subtype: 3: 10BaseT # 4: 10Base2 # 5: 10Base5 # 6: 100BaseTX # 7: 100BaseFX # 8: 100BaseT4 # 10: 100BaseT2 # options: 1<<20: Force Full Duplex # 1<<21: Force Half Duplex # 1<<27: HW Loopback   addpath("/boot/g/spear/3.14.8.2epics/app/spear/bin/RTEMS-beatnik/:",0)  0x00000000 (0)  addpath("/boot/epics/app/spear/bin/RTEMS-beatnik/:",0)  0x00000000 (0)   Trying user script '/boot/g/lcls/epics/iocCommon/ioc-b34-mp01/startup.cmd': Change Dir to '/boot/g/lcls/epics/iocCommon/ioc-b34-mp01/'  Type 'cexpsh.help()' for help (no quotes) 'startup.cmd':   ########################################################################## # LCLS Pre ########################################################################## < /boot/g/lcls/epics/iocCommon/All/Dev/pre_st.cmd WARNING: '<' operator to 'source' scripts is deprecated -- use '.' (followed by blank) instead! <'/boot/g/lcls/epics/iocCommon/All/Dev/pre_st.cmd': #============================================================== # # Abs: IOC pre-startup initialization (Production) # # Name: pre_st.cmd # # Facility: LCLS Controls # # Auth: 05-Jun-2007, Author's Name (USERNAME) # Rev: dd-mmm-yyyy, Reviewer's Name (USERNAME) #-------------------------------------------------------------- # Mod: # 29-May,2013, K. Luchini (LUCHINI): # add environment variable FACILITY # ACF_COMMON, ACF_FILE and change ACF_INIT path. # 03-Mar-2012, Ernest Williams # Fix setting for NTP and also broadcast address # 31-Oct-2011, K. Luchini (LUCHINI): # remove mount /slc used by slc-aware # which is now defunct. # 30-Jun-2009, K. Luchini (LUCHINI): # remove references to surrey04b # 16-Jun-2009, K. Luchini (LUCHINI): # change definition of rr for rtems-4.9.1 # add definition for rtems package target path # 20-Mar-2008, K. Luchini (LUCHINI): # change nfs data director from # lcls.dev -> /a/surrey04b/vol/vol1/g.lcls.dev # to lcls -> /a/surrey04b/vol/vol1/g.lcls # #============================================================== # # use the SLAC NTP server setenv("EPICS_TS_NTP_INET", "134.79.18.40")  0x00000000 (0)    # use the MCCDEV CA ports setenv("EPICS_CA_SERVER_PORT", "5066")  0x00000000 (0)  setenv("EPICS_CA_REPEATER_PORT", "5067")  0x00000000 (0)    # CA Address List for LCLS DEV subnet. setenv("EPICS_CA_ADDR_LIST","134.79.219.255")  0x00000000 (0)  setenv ("EPICS_CA_AUTO_ADDR_LIST", "NO")  0x00000000 (0)    # Allows connection to SLC database on MCCDEV #setenv("EPICS_CA_ADDR_LIST","134.79.219.255 134.79.48.15")   # start the iocLogClient so messages are sent to iocLogAndFwdServer setenv("EPICS_IOC_LOG_PORT", "7004")  0x00000000 (0)  setenv("EPICS_IOC_LOG_INET", "134.79.219.12")  0x00000000 (0)    # Send the caPutLog messages are sent to iocLogAndFwdServer setenv("EPICS_CA_PUT_LOG_ADDR","134.79.219.12:7004")  0x00000000 (0)      # Let's setup some NFS Mount Points for RTEMS: # Doc: http://www.slac.stanford.edu/comp/unix/package/rtems/src/ssrlApps/rtemsNfs/README   # surrey04b is an NFS Appliance and is used for DATA: # get gid to laci (8412) and uid to lcls (2211) on surrey04b setenv("NFS_FILE_SYSTEM","8412.2211@172.23.16.97")  0x00000000 (0)    # Create NFS mounts on surrey04b iocData=pathSubstitute("/vol/vol1/g.lcls/epics/ioc/data/%H")  0x01263508 (19281160)  restore_filename=pathSubstitute("/vol/vol1/g.lcls/epics/ioc/data/%H/restore/%H.sav")  0x019719a8 (26679720)  nfsMount(getenv("NFS_FILE_SYSTEM"),iocData ,"/data")  Trying to mount 8412.2211@172.23.16.97:/vol/vol1/g.lcls/epics/ioc/data/ioc-b34-mp01 on /data 0x00000000 (0)    # Request from LINAC Upgrade Team # Create NFS mount point in AFS space other than "/boot" # Note: UID = laci = 8412, GID = lcls=2211 setenv("AFS_FILE_SYSTEM","8412.2211@afsnfs2")  0x00000000 (0)  mkdir("/afs",0777)  0x00000000 (0)  nfsMount(getenv("AFS_FILE_SYSTEM"),"/afs/slac","/afs/slac")  Trying to mount 8412.2211@172.23.66.75:/afs/slac on /afs/slac 0x00000000 (0)    # Define the facility setenv("FACILITY","lcls")  0x00000000 (0)    # Define common Access Security initialization script setenv("ACF_COMMON","/boot/g/lcls/epics/iocCommon/All/Dev/Acf")  0x00000000 (0)  setenv("ACF_FILE" , getenv("ACF_COMMON"))  0x00000000 (0)  addenv("ACF_FILE" ,"/lclsSecurity.acf")  0x00000000 (0)  setenv("ACF_INIT" ,"/boot/g/lcls/epics/iocCommon/All/Dev/Acf/init_acf.cmd")  0x00000000 (0)    # Simlinks don't work yet #symlink("slac","/afs/slac.stanford.edu")   #End of script     chdir("/boot/g/lcls/epics/iocTop/MachineProtection/mpsLinkProcessor/iocBoot/iocmpsLinkProcessor")  0x00000000 (0)  #chdir("/boot/g/lcls/epics/iocTop/users/dfairley/mpsLinkProcessor/iocBoot/iocmpsLinkProcessor") < st.cmd WARNING: '<' operator to 'source' scripts is deprecated -- use '.' (followed by blank) instead! <'st.cmd':     ########################################################################## ########################################################################## ## ## __ __ _______ _______ ## | |_| || _ || _____| LCLS ## | || |_| || |_____ ------------------------------------- ## | || ___||_____ | Machine ## | ||_|| || | _____| | Protection ## |_| |_||___| |_______| System ## ## ########################################################################## ##########################################################################     ########################################################################## # Load MPS Software ##########################################################################   ld("rtems-gdb-stub.obj")  0x01972710 (26683152)  rtems_gdb_start(0,0)  GDB daemon (Release $Name: R_20100615_p6 $): starting up 0x00000000 (0)    ld("lanIpBasic_mve.obj")  0x0199b090 (26849424)    ld("../../bin/RTEMS-beatnik/rtems_mpsLinkProcessor.obj")  ***** Initialized profiling capture engine. 0x019a0ca8 (26873000)    # Grab and free memory to get around EPICS memory bug. free(malloc(80000000))  0x00000001 (1)    ##### ##### Don't call MPS configuration functions until after registrar section ##### # # udpComm, however, should be configured now #   ########################################################################## # Configure udpComm ##########################################################################   # mpsLanIpBscConfigWrapper -- setup Tx and Rx rings and buffer # # Be sure to configure enough resources for a large application # # numberOfSatellites # --------------------------- # Default to at least 20 # # N_SATELLITES = 20 # # # rxRingSize # --------------------------- # Must be greater than number of 'simultaneously' arriving packets -- the number of # satellite devices we receive data from plus some overhead. # # RX_RING_SIZE = N_SATELLITES + (N_SATELLITES / 4) + 1 # # # numberOfRBufs # --------------------------- # The ring needs bufs. An application might keep some RX data around. # Configure enough bufs so that 20 packets per satellite device could be kept. # # NRBUFS = RX_RING_SIZE + (RX_RING_SIZE * 20) + 20 # # # txRingSize # --------------------------- # Set to be a fraction of the number of satellites. # # TX_RING_SIZE = (N_SATELLITES / 4) + 1 # #so we configure our lanIpBscConfig with 128 SATELLITES as follows: #mpsLanIpBscConfigWrapper(N_SATELLITES, RX_RING_SIZE, NRBUFS, TX_RING_SIZE) # mpsLanIpBscConfigWrapper(128,161,3401,129)  0x00000000 (0)  lanIpBscDumpConfig(0)  LanIpBasic Configuration Parameters: RBUFs: Free 3401, Used 0, Total 3401 Socks: Free 5, Used 0, Total 5 Rings: RX 161, TX 129 Socket RX queue depth: 128 0x0000002e (46)      # int lanIpSetup(char *ip_addr, char *netmask, int port, uint8_t *en_addr); # # ip_addr: string with IP address (dot notation) to assign to 2nd/dedicated interface # netmask: string with netmask (dot notation) for 2nd interface # port: set to zero # en_addr: pointer to 6 bytes with ethernet addr for interface; may be NULL to # indicate that address from EEPROM is to be used. # # RETURNS: Zero on success, nonzero on failure. # # NOTE: On the 6100, there is no way to specify which ethernet port (port 1 or 2) to # use. It always uses the port that is not used by the BSD stack already. # Since the first port is already in use, udpComm uses port 2.   lanIpSetup("192.168.0.1", "255.255.255.0", 0, 0)  mve: instance 1 already attached.  drvGnrethIpBasic: using device instance 2 0x00000000 (0)      ########################################################################## # Set Environment Variables ##########################################################################   iocshCmd("< envPaths")  epicsEnvSet("ARCH","RTEMS-beatnik") epicsEnvSet("IOC","iocmpsLinkProcessor") epicsEnvSet("TOP","/afs/slac.stanford.edu/g/lcls/vol8/epics/iocTop/MachineProtection/mpsLinkProcessor-sonya") epicsEnvSet("EPICS_SITE_TOP","/afs/slac/g/lcls/epics") epicsEnvSet("EPICS_MODULES","/afs/slac/g/lcls/epics/modules/R3-14-12") epicsEnvSet("MPS_CONFIG","/afs/slac/g/lcls/epics/iocTop/MachineProtection/mpsConfiguration") epicsEnvSet("MPS_DATABASE","/afs/slac/g/lcls/epics/iocTop/MachineProtection/mpsConfiguration/database") epicsEnvSet("SNCSEQ","/afs/slac/g/lcls/epics/modules/R3-14-12/seq/seq-R2-0-11-lcls5") epicsEnvSet("SSUBRECORD","/afs/slac/g/lcls/epics/modules/R3-14-12/sSubRecord/sSubRecord-R2-2-1") epicsEnvSet("MISCUTILS","/afs/slac/g/lcls/epics/modules/R3-14-12/miscUtils/miscUtils-R2-2-2") epicsEnvSet("EVENT","/afs/slac/g/lcls/epics/modules/R3-14-12/event/event-R3-2-2-br_generaltime-2-6") epicsEnvSet("ASYN","/afs/slac/g/lcls/epics/modules/R3-14-12/asyn/asyn-R4-19_1-0") epicsEnvSet("RTEMSUTILS","/afs/slac/g/lcls/epics/modules/R3-14-12/rtemsutils/rtemsutils-R1-0-0-lcls5") epicsEnvSet("MPS","/afs/slac/g/lcls/epics/modules/R3-14-12/mps/mps-R1-0-1-branch-R1-7") epicsEnvSet("UDPCOMM","/afs/slac/g/lcls/epics/modules/R3-14-12/udpComm/udpComm-R2-3-4") epicsEnvSet("IOCADMIN","/afs/slac/g/lcls/epics/modules/R3-14-12/iocAdmin/iocAdmin-R3-1-9_1-0") epicsEnvSet("MPSDB","/afs/slac/g/lcls/epics/iocTop/MachineProtection/mpsConfiguration/database/2013-08-02-a") epicsEnvSet("EPICS_BASE","/afs/slac/g/lcls/epics/base/base-R3-14-12") 0x00000000 (0)    # Configure IOC path and EPICS CA and iocAdmin epicsEnvSet("IOCPATH", getcwd())  0x00000000 (0)  epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "100000")  0x00000000 (0)  epicsEnvSet("ENGINEER","D.Fairley")  0x00000000 (0)  epicsEnvSet("LOCATION","B005-404")  0x00000000 (0)    ###Add Photon Gateway epicsEnvSet("EPICS_CA_ADDR_LIST","134.79.151.11 172.27.11.255 172.27.9.255 172.21.40.63:5064")  0x00000000 (0)      # Set the MPS_CONFIG_DATABASE_VERSION environment variable (value configured at compile time) mpsEnvSetDatabaseVersion()  Setting Link Processor MPS Database Version: 2013-08-02-a 0x0000003b (59)    # Main IOC Prefix iocshCmd("epicsEnvSet \"MPS_LP_IOC_PREFIX\" \"IOC:BSY0:MP01\"")  0x00000000 (0)    # Algorithm Setup Path iocshCmd("epicsEnvSet \"MPS_ALGORITHM_SETUP_PATH\" \"/data/algorithm_setup.txt\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_ALGORITHM_LOAD_PV\" \"${MPS_LP_IOC_PREFIX}:ALGLOAD\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_ALGORITHM_RUN_PV\" \"${MPS_LP_IOC_PREFIX}:ALGRUN\"")  0x00000000 (0)    # Bypass Recover Path iocshCmd("epicsEnvSet \"MPS_BYPASS_RECOVER_DIR\" \"/data/bypass_recover_saves\"")  0x00000000 (0)    # Specify MPS Database iocshCmd("epicsEnvSet \"MPS_CONFIG_PATH\" \"${IOCPATH}/../../mpsConfiguration\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_DB_PATH\" \"${MPS_CONFIG_PATH}/database/${MPS_CONFIG_DATABASE_VERSION}\"")  0x00000000 (0)    # MPS Configuration Paths iocshCmd("epicsEnvSet \"MPS_CONFIG_DATABASE_PATH\" \"${MPS_CONFIG_DB_PATH}/mpsdb.sqlite3\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_LINK_PROCESSOR_PATH\" \"${MPS_CONFIG_DB_PATH}/csv/LinkProcessor.csv\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_EPICS_FAULT_PATH\" \"${MPS_CONFIG_DB_PATH}/csv/EpicsFault.csv\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_LINK_NODE_PATH\" \"${MPS_CONFIG_DB_PATH}/csv/LinkNode.csv\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_LINK_NODE_CHANNEL_PATH\" \"${MPS_CONFIG_DB_PATH}/csv/LinkNodeChannel.csv\"")  0x00000000 (0)    # EPICS Database Path iocshCmd("epicsEnvSet \"MPS_CONFIG_BYPASS_RBARRAY_DB\" \"${MPS_CONFIG_DB_PATH}/db/mpsBypassReadbackArray.db\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_BUFFER_STATUS_DB\" \"${MPS_CONFIG_DB_PATH}/db/mpsBufferStatus.db\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_BUFFER_CONTROL_DB\" \"${MPS_CONFIG_DB_PATH}/db/mpsBufferControl.db\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_BYPASS_CONTROL_DB\" \"${MPS_CONFIG_DB_PATH}/db/mpsBypassControl.db\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_CONFIG_UNLATCH_CONTROL_DB\" \"${MPS_CONFIG_DB_PATH}/db/mpsUnlatchControl.db\"")  0x00000000 (0)    # Timing iocshCmd("epicsEnvSet \"MPS_TIMING_BASE_RATE_120_HZ_TIMESLOT_1\" \"1\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_TIMING_BASE_RATE_120_HZ_TIMESLOT_2\" \"4\"")  0x00000000 (0)  iocshCmd("epicsEnvSet \"MPS_TIMING_BASE_RATE_60_HZ_TIMESLOT\" \"4\"")  0x00000000 (0)    # Timing: Use emulated EVR. Uncomment this line to use emulated EVR. #iocshCmd("epicsEnvSet \"MPS_TIMING_USE_EMULATED_EVR\" \"YES\"")     ########################################################################## # Configure EVR ##########################################################################   #bspExtVerbosity=0 # Configure PMC type EVR ErConfigure(0,0x000000,0x00,0,1)  ErConfigure: epicsPciConfigInLong for bus 2, dev 4, func 0 at PCI_BASE_ADDRESS_2 (0x00000018) returns PCI addr 0xe1102000 pmc_irq_install: ISR installation successful 0x00000000 (0)  evrInitialize()  0x00000000 (0)      ########################################################################## # Load DBs and perform all registration and envoke all registrars ##########################################################################   # Increase queue sizes callbackSetQueueSize(16000)  0x00000000 (0)  scanOnceSetQueueSize(8000)  0x00000000 (0)    # Register all support components dbLoadDatabase("../../dbd/rtems_mpsLinkProcessor.dbd",0,0)  0x00000000 (0)  rtems_mpsLinkProcessor_registerRecordDeviceDriver(pdbbase)  Link Processor Initialized 0x00000000 (0)    # Load support record instances iocshCmd("dbLoadRecords(\"../../db/iocAdminRTEMS.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/iocRelease.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/mpsTimingEvr.db\", \"EVR=EVR:BSY0:MP01\" )")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/mpsTimingEvrPattern.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)    # Load MPS records iocshCmd("dbLoadRecords(\"../../db/mpsRatesBurstDestination.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/mpsMisc.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/mpsAlgorithm.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/mpsMitigationControl.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(\"../../db/mpsTruthTableStatusArray.db\", \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(${MPS_CONFIG_BYPASS_RBARRAY_DB}, \"IOC=${MPS_LP_IOC_PREFIX}\")")  0x00000000 (0)  iocshCmd("dbLoadRecords(${MPS_CONFIG_BUFFER_STATUS_DB})")  0x00000000 (0)  iocshCmd("dbLoadRecords(${MPS_CONFIG_BUFFER_CONTROL_DB})")  0x00000000 (0)  iocshCmd("dbLoadRecords(${MPS_CONFIG_BYPASS_CONTROL_DB})")  0x00000000 (0)  iocshCmd("dbLoadRecords(${MPS_CONFIG_UNLATCH_CONTROL_DB})")  0x00000000 (0)      # Access security #asSetFilename("../../mpsLinkProcessorApp/Db/devMpsBufferReadback.acf")   # # NOTE: Now OK to call MPS configuration functions #   ########################################################################## # Configure MPS ##########################################################################   # Show timing status mpsShowTimingStatus()  Recent timing data (current, previous, before previous): Seconds: 0 Nanoseconds: 0 Timeslot: 0 Pulse ID: 0x1FFFF Beam Req: X Burst Pulse: - Base 120 Hz: X Base 60 Hz: - Base 30 Hz: - Base 10 Hz: - Base 1 Hz: - Base Rate 120 Hz Timeslot 1: 1 Base Rate 120 Hz Timeslot 2: 4 Base Rate 60 Hz Timeslot : 4 0x00000000 (0)    # Handle version 2 of MPS Link Protocol setHandleMlpV2(1)  0x00000001 (1)      ########################################################################## # List Modules ##########################################################################   # Everything is loaded. Call lsmod() for debug purposes.   lsmod()  Module 'SYSTEM-BUILTIN' (0x01261580): Text starts at: 0xdeadbeef Module 'telnetd.obj' (0x01975ab0): Text starts at: 0x0022a300 Module 'monitor.obj' (0x0198c478): Text starts at: 0x0022c980 Module 'miscUtils.obj' (0x0198c9a8): Text starts at: 0x0022d480 Module 'ntpclock.obj' (0x01990e00): Text starts at: 0x0022fe00 Module 'rtems-gdb-stub.obj' (0x01972710): Text starts at: 0x00232300 Module 'lanIpBasic_mve.obj' (0x0199b090): Text starts at: 0x00237800 Module 'rtems_mpsLinkProcessor.obj' (0x019a0ca8): Text starts at: 0x00241b80 0x00000000 (0)        ########################################################################## # Aliases ##########################################################################   # RTEMS/EPICS #rr = exit threads = epicsThreadShowAll  0x0031b34c (3257164)    # Algorithm alginfo = mpsAlgorithmInfo  0x0024b878 (2406520)  algruni = mpsRunningAlgorithmInfo  0x0024c53c (2409788)  algset = mpsSetAlgorithmToRun  0x0024c028 (2408488)  algclr = mpsClearRunningAlgorithm  0x0024bfc0 (2408384)    # Timing data tp = timingPrint  0x0024e6f8 (2418424)  tpe = timingPrintEmulated  0x0024eed8 (2420440)  st = mpsShowTimingStatus  0x0024e008 (2416648)    # Statistics tTime = mpsTimingShowProcessInMicroseconds  0x0024e0f4 (2416884)  rtTime = mpsResetTimingMinMax  0x0024d03c (2412604)  tTimeInt = mpsTimingInterruptShowProcessInMicroseconds  0x0024e790 (2418576)  tComm = mpsLinkNodeCommunicationShowProcessInMicroseconds  0x0024906c (2396268)        ########################################################################## # iocInit ##########################################################################   iocInit()  Starting iocInit ############################################################################ ## EPICS R3.14.12-SLAC_2 $Date: 2010/11/27 17:57:27 $ ## EPICS Base built Jan 10 2013 ############################################################################ initHookAfterCallbackInit: Done. initHookAfterCaLinkInit: Done. initHookAfterInitDrvSup: Done. initHookAfterInitRecSup: Done. initHookAfterInitDevSup: Done. initHookAfterInitDatabase: Done. initHookAfterFinishDevSup: Done. initHookAfterScanInit: Done. initHookAfterInitialProcess: Done. initHookAfterInterruptAccept: Done. MPSLOG: type: 3 at: 0.000000000:0 id: 26 val: 0 -> 1 initHookAtEnd. MPSLOG: type: 3 at: 744937560.394087342:2 id: 28 val: 0 -> 1 iocRun: MPSLOG: type: 3 at: 744937560.394087342:2 id: 7 val: 0 -> 1 All initialization complete 0x00000000 (0)  MPSLOG: type: 3 at: 744937560.399592368:4 id: 98 val: 0 -> 1   # ===================================================== # Turn on caPutLogging: NOT NOW DMF 8/29/2012 - NOT NEEDED # Log values only on change to the iocLogServer: #caPutLogInit(getenv("EPICS_IOC_PUT_LOG_ADDR")) #caPutLogShow(2) # =====================================================       ########################################################################## # Setup some PVs ##########################################################################   iocshCmd("dbpf(\"${MPS_LP_IOC_PREFIX}:DBVERS\",\"${MPS_CONFIG_DATABASE_VERSION}\")")  DBR_STRING: "2013-08-02-a" 0x00000000 (0)        ########################################################################## # Restore Last Used Algorithm Setup ##########################################################################   mpsLoadAlgorithmRestoreFile()  Command: Load Argument: 2012-11-12-a Link Processor Loading Algorithm: 2012-11-12-a opening object file (check PATH): No such file or directory Link Processor Failed Algorithm Load no buffer: 2012-11-12-a 2013/08/09 16:06:03.870 IOC:BSY0:MP01:ALGLOAD devAsynOctet: writeIt failed DBR_STRING: "2012-11-12-a" Command: Run Argument: 2012-11-12-a DBR_STRING: "2012-11-12-a" Command: Load Argument: 2012-10-26-a Link Processor Loading Algorithm: 2012-10-26-a opening object file (check PATH): No such file or directory Link Processor Failed Algorithm Load no buffer: 2012-10-26-a 2013/08/09 16:06:04.343 IOC:BSY0:MP01:ALGLOAD devAsynOctet: writeIt failed DBR_STRING: "2012-10-26-a" 0x00000000 (0)        ########################################################################## # Sequence Programs ##########################################################################   # There are way to many EPICS faults being monitored but start it up anyway. :( # Sleep for three seconds to help st.cmd to print out nicely on the console   monitorEpicsFaults() && sleep(3)  SEQ Version 2.0.11: Tue Apr 10 11:28:41 2012 Spawning state program "mpsEpicsFaultInputs", thread 0xa01002d: "mpsEpicsFaultInputs" Spawning thread 0xa010032: "mpsEpicsFaultInputs_1" Spawning thread 0xa010033: "mpsEpicsFaultInputs_2" Spawning thread 0xa010034: "mpsEpicsFaultInputs_3" Spawning thread 0xa010035: "mpsEpicsFaultInputs_4" Spawning thread 0xa010036: "mpsEpicsFaultInputs_5" Spawning thread 0xa010037: "mpsEpicsFaultInputs_6" Spawning thread 0xa010038: "mpsEpicsFaultInputs_7" Spawning thread 0xa010039: "mpsEpicsFaultInputs_8" Spawning thread 0xa01003a: "mpsEpicsFaultInputs_9" Spawning thread 0xa01003b: "mpsEpicsFaultInputs_10" Spawning thread 0xa01003c: "mpsEpicsFaultInputs_11" Spawning thread 0xa01003d: "mpsEpicsFaultInputs_12" Spawning thread 0xa01003e: "mpsEpicsFaultInputs_13" Spawning thread 0xa01003f: "mpsEpicsFaultInputs_14" 0x00000000 (0)    ########################################################################## # Make Adjustments Where Logic is Reversed # Normally the logic is to be OK when the signal is high. # This is so that if a signal is unplugged, i.e. reading zero, it will be # detected. In some of the cases in the old MPS (1553), this logic was # reversed. These signals were transfered directly to this MPS and so must # be accepted as is (i.e. where zero is OK and non-zero is FAULT). # Because the EPICS database is autogenerated from SQL for # all PVs, it's best to not change the autogeneration logic and just flip # the severity here. ##########################################################################   dbpf("SHUT:IN20:1:FAULT_MPS.OSV","MAJOR")  DBR_STRING: "MAJOR" 0x00000000 (0)  dbpf("SHUT:IN20:1:FAULT_MPS.ZSV","NO_ALARM")  DBR_STRING: "NO_ALARM" 0x00000000 (0)    dbpf("SHUT:IN20:1:BYPASS_MPS.OSV","MAJOR")  DBR_STRING: "MAJOR" 0x00000000 (0)  dbpf("SHUT:IN20:1:BYPASS_MPS.ZSV","NO_ALARM")  DBR_STRING: "NO_ALARM" 0x00000000 (0)    dbpf("KLYS:LI20:61:PEAKPOWER_MPS.OSV","MAJOR")  DBR_STRING: "MAJOR" 0x00000000 (0)  dbpf("KLYS:LI20:61:PEAKPOWER_MPS.ZSV","NO_ALARM")  DBR_STRING: "NO_ALARM" 0x00000000 (0)    ########################################################################## # Additional Help ##########################################################################   # View CPU load with spy: iocshCmd("spy 5") # # Load algorithms by writing algorithm names to: # IOC:BSY0:MP01:ALGLOAD and # IOC:BSY0:MP01:ALGRUN # # Unload algorithms by writing algorithm names to: # IOC:BSY0:MP01:ALGUNLOAD # # Remember to restart the history server: # Run the following commands as laci on lcls-daemon2: # $ /etc/rc3.d/S99st.mpshist stop # $ /etc/rc3.d/S99st.mpshist start # # And to recover bypassed inputs, clearing the bypass recover fault: # Go to LCLSHome/Global/MPS # Click on "Recover Bypasses" # Follow directions #       Type 'cexpsh.help()' for help (no quotes)  Cexp@ioc-b34-mp01>[?1l> [detached] Connection to lcls-dev2 closed. lcls-dev2 MachineProtection $exit exit Script done on Fri 09 Aug 2013 04:06:42 PM PDT