INSTALLATION

Section 1 Installing LAMPS
Section 2 Installing the CAMAC hardware
Section 3 Installing the driver

Back to main page


Section 1:Installing LAMPS

System Requirements

The lamps software can be installed on any (recent) Linux OS or in Windows OS over the Cygwin shell (Cygwin is a Linux-like shell running under Windows). Installation for offline use does not require the root password unless a required library is missing. The steps given below are for installing lamps-gtk2. The graphics library, gtk2 is normally installed on most modern Linux systems. (For the old lamps you may need to install the graphics library gtk1. The needed rpms for this are provided here)

  1. The C compiler gcc
  2. The Fortran compiler gfortran (or g77)
  3. The gtk graphics environment gtk2
  4. The graphics compiler gtk2+-devel

The command rpm -qa|less can be used to check. If any of these components is missing you must get it from the installation DVD. You need the root password for doing this.

Choosing a directory

For use by multiple users on the same PC you can install in /usr/local/bin. This is a good choice for a data acquisition PC. The limitation is that you wont be able to freely change user.F to suit a particular experiment.

You can install in a directory of your choice (multiple independent installations on the same PC is also OK). In that case you are free to edit user.F as required without worrying about conflict with another experiment.

  1. Download the file lamps-gtk2-DDMMYY.tgz into your directory
  2. Unpack it with the command tar zxvf lamps-gtk2-DDMMYY.tgz . This will create several directories.
  3. Go to the src directory (cd src)
  4. Compile with the command make. (Do make clean if you want to remove an old installtion) There should be no warnings or errors.
  5. Go back to the upper level directory
  6.  Now the command ./lamps will launch the program (if you edit your .bash_profile to have PATH=$PATH:$HOME/bin:./ then the command lamps will work).

Section 2: Installing the CAMAC hardware

1. Switch off power to PC and CAMAC crate(s).
2. Insert PCI card in an empty slot in the PC.
3. Insert crate controller(s) CC9/CC2000 in station 24-25 of the CAMAC crate(s).
4. CRATE 1: Connect the 20-pin twisted pair cable from controller to PCI card upper connector (i.e. the connector away from the card edge that mates with the PCI bus).
5. For a two crate system, connect CRATE 2 similarly to the second connector of the PCI card.
6. Sometimes the cable connectors do not have a notch. In this case refer to the picture below:



Connecting Controller to Card

7. If the connection is wrong, the system will not work, but there is no harm done. Just check the connections again.

 

Back to main page


Section 3: Installing the driver

It is useful to unpack the driver files in a separate account (no need of root permission). After that it can be ensured that the driver is loaded at boot time (root login is required at this stage). In what follows below, we assume that a user account called lamps has been created.

Login as lamps.
Create and change to the driver directory (cd /home/lamps/driver).

  1. Download the appropriate driverXXX.tgz file for your RedHat/Fedora Core version
    If you have a different version of Linux, download driver_any.tgz then re-compile the driver (see APPENDIX below)
  2. Keep this tgz file in the directory /home/lamps/driver
  3. Unpack the files (e.g.): tar zxvf driverFC8.tgz
  4. Login as root, edit the file /etc/rc.d/rc.local adding the line
    /home/lamps/driver/cc2002_load
    at the end (i.e. last line of the file)
  5. Re-boot. The driver is installed (if the PCI card is inserted in the PC)

Verifying Driver Installation

  1. After re-boot, login as root
  2. Look through the file /var/log/messages. Typically you should see:
    Jun 3 09:33:11 hp1 kernel: Driver cc2000: Registered Device cc2000 major no 254 Jun 3 09:33:11 hp1 kernel: PCI: Found IRQ 11 for device 00:10.0 Jun 3 09:33:11 hp1 kernel: Driver cc2000: IO Address de00 dc00 da00
  3. Execute /sbin/lsmod. Typically you should see:
    Module Size Used by Tainted: PF cc2000 7380 0 (unused)

APPENDIX: DRIVER COMPILATION

Re-compiling the driver is required if you have a different Linux version

1. Download one of the driver tgz files which you thing will work (driverFC8.tgz is likely to work on newer Ubuntu and Suse systems) in /home/lamps/driver. Unpack with: tar zxvf driver_any.tgz
2. Login as root 3. On most installations the kernel source files will already be present, but if not you have to installl them from the installation DVD
3. Compile the driver with the help of the make file provided. (Just type make) For older RedHat versions where no make file is provided, use the command:
cc -O2 -D__KERNEL__ -I /lib/modules/`uname -r`/build/include -c cc2002.c
4. There should be no errors and cc2002.o should be created. (If the kernel source is not correctly installed there will be a lot of error messages.)

Back to main page