EPICS HALLB Installation: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== '''Summary''' ==
  ///=================================================================================       
  ///=================================================================================       
  ///=================================================================================
  ///=================================================================================
Line 9: Line 11:
   
   
I) BASE INSTALLATION:
I) BASE INSTALLATION:
  1) see epics_docs.txt for corrections in base codes 
    
    
   2) cd $CLAS/R3.14.12.3/
   1) cd $CLAS/R3.14.12.3/
     chown -R sytnik.clas-4 base
     chown -R sytnik.clas-4 base


   3) edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.vxWorksCommon
   2) edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.vxWorksCommon


     replace:
     replace:
Line 22: Line 22:
     WIND_BASE = /apps/VxWorks55/ppc
     WIND_BASE = /apps/VxWorks55/ppc


   4) edit $CLAS/R3.14.12.3/base/configure/CONFIG_SITE
   3) edit $CLAS/R3.14.12.3/base/configure/CONFIG_SITE


     CROSS_COMPILER_TARGET_ARCHS=vxWorks-ppc604_long
     CROSS_COMPILER_TARGET_ARCHS=vxWorks-ppc604_long
Line 29: Line 29:
      
      
      
      
   5)  edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.linux-x86
   4)  edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.linux-x86


     to uncomment the line:  
     to uncomment the line:  
Line 38: Line 38:


    
    
  5) make // to generate package structure: include, db, dbd, bin. lib, ...
      
      
   6)
   6)
Line 61: Line 63:
       by        string[256];  
       by        string[256];  
      
      
   8)
   8)      
   
     make clean uninstall
     make clean uninstall
     make  (to build for linux and VxWorks)   
     make  (to build for linux and VxWorks)   
Line 75: Line 76:
     edit suppurt/configure/RELEASE
     edit suppurt/configure/RELEASE
      
      
     SUPPORT=$CLAS/R3.14.12.3/synApps/synApps_5_5/support/
     SUPPORT=$(CLAS)/R3.14.12.3/synApps/synApps_5_5/support/
     EPICS_BASE=$CLAS/R3.14.12.3/base
     EPICS_BASE=$(CLAS)/R3.14.12.3/base
      
      
     edit $CLAS/R3.14.12.3/synApps/synApps_5_5/support/configure/CONFIG_SITE
     edit $CLAS/R3.14.12.3/synApps/synApps_5_5/support/configure/CONFIG_SITE
Line 214: Line 215:
  launch of new CAEN:
  launch of new CAEN:
  ssh clonioc1
  ssh clonioc1
  crontab -e
 
  0-59/1 * * * * /bin/csh -c "(source /home/boiarino/.cshrc; cioc_cron 1) > ~/.crontab_ioccaen1 "
test mode (from prompt):
  cd0
  mye
 
  to configure and start cron job:
  crontab -e
 
Following - from home directory !!!
 
  to kill ioc and lock semaphore so cronjob will NOT restart it:
  cioc_cron 0
 
  to start ioc and open semaphore so cronjob can continue monitoring; also can be used to restart ioc (without using 'cioc_cron 0'):
  cioc_cron 2
 


  launch of old CAEN:
  launch of old CAEN:
  ssh dcrb1 (e.g.)
  ssh dcrb1 (e.g.)
test mode:
  cd0o
  myeo
script:
  coioc_cron
  crontab -e
  crontab -e
  0-59/1 * * * *  /bin/csh -c "(source /home/boiarino/.cshrc; coioc_cron 1) > ~/.crontab_ioccaenold1 "
  0-59/1 * * * *  /bin/csh -c "(source /home/boiarino/.cshrc; coioc_cron 1) > ~/.crontab_ioccaenold1 "
Line 227: Line 250:
  //=================================================================================
  //=================================================================================
  //=================================================================================
  //=================================================================================
== ''' General rules''' ==
Normally EPICS driver or/and apps will have ''configure'' directory, containing several files to be adjusted. File ''RELEASE'' usually contains following:
EPICS_BASE=${CLAS}/R${EPICS_VER}/base
TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
Note that UNIX environment variables must be in {} brackets. If vxWorks cross compiling is needed, file ''CONFIG_SITE'' must contains line:
CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc604_long
After all changes, type ''make rebuild'' inside ''configure'' directory. Go one level up and type ''make rebuild'' again, it will do actual compiling.

Latest revision as of 12:45, 19 December 2013

Summary

///=================================================================================      
///=================================================================================
///========================= SUMMARY BASE AND synApps installation  ================
///=================================================================================
///=================================================================================


 ssh clonioc1/clonpc3

I) BASE INSTALLATION:

 1) cd $CLAS/R3.14.12.3/
    chown -R sytnik.clas-4 base
 2) edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.vxWorksCommon
   replace:
   #WIND_BASE = /usr/local/vw/tornado22-$(ARCH_CLASS)
   by:
   WIND_BASE = /apps/VxWorks55/ppc
 3) edit $CLAS/R3.14.12.3/base/configure/CONFIG_SITE
    CROSS_COMPILER_TARGET_ARCHS=vxWorks-ppc604_long
    cd $CLAS/R3.14.12.3/base/
    
    
 4)  edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.linux-x86
   to uncomment the line: 
  COMMANDLINE_LIBRARY  = READLINE_NCURSES
  (comment out other lines other lines: COMMANDLINE_LIBRARY ) 


 5) make // to generate package structure: include, db, dbd, bin. lib, ...


 6)
    cd $CLAS/R3.14.12.3/base/
    cp previous_base/include/bigsubRecord.h include/.
    cp previous_base/src/rec/bigsubRecord.c src/rec/.
    cp previous_base/src/rec/bigsubRecord.dbd src/rec/.
    cp previous_base/src/rec/a_out.h src/rec/.


    edit src/rec/Makefile
    to add
    DBDINC += bigsubRecord
    LIBSRCS += bigsubRecord.c    
    
  7) for wiener mpod
  
     edit $CLAS/R3.14.12.3/base/src/dbStatic/dbStaticLib.c
     to replace          char        string[80];
     by        string[256]; 
    
  8)       
    make clean uninstall
    make  (to build for linux and VxWorks)  
    
II) synApps installation:
  ssh clonioc1/clonpc3
   http://www.aps.anl.gov/bcda/synApps/
   take and untar synApps_5_5.tar.gz
   cd synApps_5_5/support
   edit suppurt/configure/RELEASE
   
   SUPPORT=$(CLAS)/R3.14.12.3/synApps/synApps_5_5/support/
   EPICS_BASE=$(CLAS)/R3.14.12.3/base
   
   edit $CLAS/R3.14.12.3/synApps/synApps_5_5/support/configure/CONFIG_SITE
   
   CROSS_COMPILER_TARGET_ARCHS=vxWorks-ppc604_long
   cd $CLAS/R3.14.12.3/synApps/synApps_5_5/support
   make release
   make (to build linux and VxWorks)
   
 
   
///===============================================================================      
///===============================================================================
///========================= END SUMMARY BASE AND synApps installation  ==========
///===============================================================================
///===============================================================================


//=================================================================================
//=================================================================================
//==========================  MPOD INSTALLATION ===================================
//=================================================================================
//=================================================================================


 ssh clonioc1/clonpc3

edit:
$CLAS/epics/apps/configure/CONFIG_SITE
$CLAS/epics/drivers/configure/CONFIG_SITE


     CROSS_COMPILER_TARGET_ARCHS =
to prevent the building for VxWorks for all 
drivers and applications.
(specific drivers and applications can be configured with their 
CONFIG_SITE separately)
edit:
 $CLAS/epics/apps/configure/RELEASE
 $CLAS/epics/drivers/configure/RELEASE


EPICS_BASE=$(CLAS)/R3.14.12.3/base

cd $CLAS/epics/drivers/snmpApp
make

cd $CLAS/epics/apps/mpodCratesApp
make
launch of the mpod:
cd $CLAS/epics/apps/iocBoot/iocmpodCrates 
./st.cmd  
//=================================================================================
//=================================================================================
//==========================  END MPOD INSTALLATION ===============================
//=================================================================================
//=================================================================================
//=================================================================================
//=================================================================================
//==========================  MOTOR INSTALLATION ==================================
//=================================================================================
//=================================================================================
ssh clonioc1/clonpc3
cd $CLAS/R3.14.12.3/synApps/synApps_5_5/support/xxx-5-5/iocBoot/iocvxWorks
copy there the following files from previous iocBoot/iocvxWorks directory:
claspcal_motor.substitutions
my.cmd
my_alot.cmd 
cdMyCommands

ssh clon10
tsconnect ioctest1
pass: <ret>
<ctrl x> /// to enter into reboot mode 
[VxWorks boot]: p  // command p to print the table balow:
[VxWorks boot]: c  // to change boot configuration (it should be like below)
boot device          : fei
unit number          : 0 
processor number     : 0 
host name            : clon10
file name            : /usr/local/clas/clas12/coda/VXWORKS_ppc/bin/vx5100
inet on ethernet (e) : 129.57.167.84:fffffc00
host inet (h)        : 129.57.167.14
gateway inet (g)     : 129.57.167.99
user (u)             : boiarino
flags (f)            : 0x20 
target name (tn)     : ioctest1
startup script (s)   : /usr/local/clas12/R3.14.12.3/synApps/synApps_5_5/support/xxx-5-5/iocBoot/iocvxWorks/my.cmd


//=================================================================================
//=================================================================================
//==========================  END MOTOR INSTALLATION ==============================
//=================================================================================
//=================================================================================
//=================================================================================
//=================================================================================
//==========================  CAEN HV INSTALLATION ================================
//=================================================================================
//=================================================================================


ssh clonioc1/clonpc3
edit $CLAS/epics/drivers/CAEN_HV/configure/RELEASE:
EPICS_BASE=$(CLAS)/R3.14.12.3/base


edit $CLAS/epics/drivers/CAEN_HV/configure/CONFIG_SITE:
CROSS_COMPILER_TARGET_ARCHS =
to prevent the building for VxWorks for all 
drivers and applications.
(specific drivers and applications can be configured with their 
CONFIG_SITE separately)
cd $CLAS/epics/drivers/CAEN_HV/level0
make // to build old CAEN
make -f Makefile_1 // to build new CAEN


launch of new CAEN:
ssh clonioc1
test mode (from prompt):
 cd0
 mye
to configure and start cron job:
 crontab -e
 
Following - from home directory !!!
to kill ioc and lock semaphore so cronjob will NOT restart it:
 cioc_cron 0
to start ioc and open semaphore so cronjob can continue monitoring; also can be used to restart ioc (without using 'cioc_cron 0'):
 cioc_cron 2


launch of old CAEN:
ssh dcrb1 (e.g.)
test mode:
 cd0o
 myeo
script:
 coioc_cron
crontab -e
0-59/1 * * * *  /bin/csh -c "(source /home/boiarino/.cshrc; coioc_cron 1) > ~/.crontab_ioccaenold1 "
//=================================================================================
//=================================================================================
//==========================  END CAEN HV INSTALLATION ============================
//=================================================================================
//=================================================================================

General rules

Normally EPICS driver or/and apps will have configure directory, containing several files to be adjusted. File RELEASE usually contains following:

EPICS_BASE=${CLAS}/R${EPICS_VER}/base
TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top

Note that UNIX environment variables must be in {} brackets. If vxWorks cross compiling is needed, file CONFIG_SITE must contains line:

CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc604_long

After all changes, type make rebuild inside configure directory. Go one level up and type make rebuild again, it will do actual compiling.