DRIVER INSTALLATION

When lamps is to be used for data acquisition, create a new user account called lamps. (Log in as root and then type adduser lamps). Login as lamps for the present (root login is required later)
Create and change to the driver directory (cd /home/lamps/driver).

  1. Download the appropriate driverXXX.tgz file for your RedHat/Fedora Core installation
    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 driver9_0.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 driver_any.tgz in /home/lamps/driver. Unpack with: tar zxvf driver_any.tgz
2. Login as root and install the kernel source files
E.g: In RedHat8.0 it is on the second CD and can be installed with
rpm --install /mnt/cdrom/RedHat/RPMS/kernel-source-2.4.18-14.i386.rpm
Verify with: rpm -q kernel-source
3. Compile the driver with 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 Installation Page