8 ENVIRONMENT SETTING AND INSTALLATION
8.1 HW AND SW REQUIREMENTS
The following components are needed for running a full installation of DCS:
For software tests it is possible to run the data-acquisition software (optimized for Sun-Solaris multi-threading) also on HP-UX in simulation mode. In that case only the HP-Workstation is needed. As the simulation of the acquisition process consumes a lot of system resources and CPU-time it is recommended not to run the simulation at high data-rates (< 2 MHz).
8.2 ENVIRONMENT VARIABLES
The following environment variables have to be set if not marked as optional:
$INS_USER Specifies the current user (defaults to SYSTEM, if not set).
$INS_ROOT Root directory of the instrument configuration.
$IR_SPARC SPARC_SBUS(optional) or SPARC_PCI.
$SDMA_HOST Host name of the IRACE - pre-processor workstation
(for simulation, this can also be the HP-workstation).
$SDMA_DEV Default device name of the DMA-driver (optional).
$SDMA_CMD Command port of the DMA pre-processor.
$SDMA_DATA Data port of the DMA pre-processor.
$SDMA_ERR Error port of the DMA pre-processor (optional).
$TCOM_SRV Command port of the IRACE front-end command server.
$IRACQ_PORT Command port for the NOCCS control server (only
needed for NOCCS installations on the Ultra-Sparc).
$IRTD_PORT Port number for the RTD-interface.
The port numbers must not exist in /etc/services of $SDMA_HOST.
8.3 IRD PACKAGE INSTALLATION
The procedure to create the IRD Software package consists of the following steps:
(1) Retrieve from the archive and install module irdarch:
c) cd irdarch/src; make prepare_installation
(2) Go to installation directory:
(3) Retrieve all needed modules from the archive:
(4) Build and install modules:
(5) Run automatic test procedure:
./buildTestIRD (DISPLAY variable must be set)
Steps 3 to 5 can also be done in one step:
This procedure is only applicable on the instrument workstation. The software on the IRACE workstation (Ultra Sparc) must be installed manually as after retrieving the irace module the DMA interface driver has to be installed before compilation. The driver installation requires root access.
8.4 MANUAL SOFTWARE INSTALLATION
The first step of installation is to get the standard IRACE-DCS base modules:
8.4.1 SOFTWARE INSTALLATION ON ULTRA-SPARC
The interface device drivers for IRACE are found in the SYSTEM/DRV directory of the irace module. Generally the DMA driver-packages (EDTscd for SBUS-based sparcs, EDTpcd for PCI-based sparcs) have to be installed before compilation on the Ultra-Sparc, as the driver interface defined in sdmaDrv.h will include header files from that package and may also link object files (PCI-version). If the package cannot be installed, one has the possibility to compile also on the Ultra-Sparc for simulation purposes only (by using the MAKE_SIM=T flag when compiling the irace/iracq modules).
Some entries have to be added to /etc/system:
set msgsys:msginfo_msgmap=1024
set msgsys:msginfo_msgmax=8192
set msgsys:msginfo_msgmnb=65535
set msgsys:msginfo_msgseg=4096
set msgsys:msginfo_msgtql=1024
set semsys:seminfo_semmap=2048
set semsys:seminfo_semmns=8192
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=32000000
To remove a previously installed driver type:
pkgrm EDTscd; rm -rf /opt/EDTscd
cp EDTscdx.xx.tar /usr/spool/pkg/
<x.xx> is the version of the driver (currently EDTscd2.55.tar)
cd /usr/spool/pkg; tar xvf EDTscdx.xx.tar; rm EDTscdx.xx.tar
You will be asked to select the source for the TXT signal:
-> enter <1> (RXT looped...). In newer driver versions
(2.80 and later) you have to do the following instead:
Now you have to check the permissions of the parallel port device referenced by
/dev/bpp0 (type `ls -lL /dev/bpp0'; this is a link to `/devices/sbus...').
The device must be given read/write permissions for all users.
Driver Installation for PCI-Bus:
To remove a previously installed driver type:
pkgrm EDTpcd; rm -rf /opt/EDTpcd; rm -f /usr/lib/libedt.so
cp EDTpcdx.xx.tar /usr/spool/pkg/
<x.xx> is the version of the driver (currently EDTpcd2.304.tar)
cd /usr/spool/pkg; tar xvf EDTpcdx.xx.tar; rm EDTpcdx.xx.tar
ln -s /opt/EDTpcd/libedt.so /usr/lib/libedt.so
Software Installation (SBus and PCI-Bus):
If a version of irace is already installed in $INTROOT:
./sdmaChMod <user-name> and/or
./chmod a-s <your application processes>
./chown <user-name> <your application processes>
cd iracq/src; make man all install
cd rtdb/src; make man all install
cd irtd/src; make man all install
./sdmaChMod su (to enable real-time facilities) and/or
chown root <your applications>
8.4.2 SOFTWARE INSTALLATION ON IWS
The following steps have to be done to install the software on the instrument workstation:
cd irace/src; make (or `make MAKE_POSIX=T' to compile also the posix-wrapper for the Solaris data-acquisition simulation)
cd iracq/src; make man all install
cd dicIRACE/src; make all install
cd rtdb/src; make man all install
cd irtd/src; make man all install
cd $VLTDATA/ENVIRONMENTS/$RTAPENV/dbl
Quadralay Corporation http://www.webworks.com Voice: (512) 719-3399 Fax: (512) 719-3606 sales@webworks.com |