EPICS HALLB Installation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
I) BASE INSTALLATION: | I) BASE INSTALLATION: | ||
1) cd $CLAS/R3.14.12.3/ | |||
chown -R sytnik.clas-4 base | chown -R sytnik.clas-4 base | ||
2) edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.vxWorksCommon | |||
replace: | replace: | ||
Line 22: | Line 20: | ||
WIND_BASE = /apps/VxWorks55/ppc | WIND_BASE = /apps/VxWorks55/ppc | ||
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 27: | ||
4) edit $CLAS/R3.14.12.3/base/configure/os/CONFIG_SITE.Common.linux-x86 | |||
to uncomment the line: | to uncomment the line: | ||
Line 39: | Line 37: | ||
5) | |||
cd $CLAS/R3.14.12.3/base/ | cd $CLAS/R3.14.12.3/base/ | ||
cp previous_base/include/bigsubRecord.h include/. | cp previous_base/include/bigsubRecord.h include/. | ||
Line 55: | Line 53: | ||
LIBSRCS += bigsubRecord.c | LIBSRCS += bigsubRecord.c | ||
6) for wiener mpod | |||
edit $CLAS/R3.14.12.3/base/src/dbStatic/dbStaticLib.c | edit $CLAS/R3.14.12.3/base/src/dbStatic/dbStaticLib.c | ||
Line 61: | Line 59: | ||
by string[256]; | by string[256]; | ||
7) | |||
make clean uninstall | make clean uninstall |
Revision as of 13:08, 30 October 2013
///================================================================================= ///================================================================================= ///========================= 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) 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 6) for wiener mpod edit $CLAS/R3.14.12.3/base/src/dbStatic/dbStaticLib.c to replace char string[80]; by string[256]; 7) 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 crontab -e 0-59/1 * * * * /bin/csh -c "(source /home/boiarino/.cshrc; cioc_cron 1) > ~/.crontab_ioccaen1 "
launch of old CAEN: ssh dcrb1 (e.g.) crontab -e 0-59/1 * * * * /bin/csh -c "(source /home/boiarino/.cshrc; coioc_cron 1) > ~/.crontab_ioccaenold1 "
//================================================================================= //================================================================================= //========================== END CAEN HV INSTALLATION ============================ //================================================================================= //=================================================================================