Installing the universeII driver and library on EXO DAQ

From LHEP Wiki
Revision as of 09:49, 18 March 2015 by Lhep (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

The UniverseII is a driver and library package to access the VME bus through the TundraII PCI bridge.

Installation Steps

Follow these steps for the installation.

  • Download the whole package from the SVN repository on lheppc90 server
 $> svn co svn+ssh://svnuser@lheppc90.unibe.ch/volume1/svn/universeII universeII
  • Compile the kernel driver (chose the right kernel version)
 $> cd ~/universeII/driver-2.6/
 $> make
  • As root, create the device files needed by the driver and then install the driver
 $> su
 $> make devices
 $> ./ins
 $> exit
  • You should have the following messages in the system or kernel log file
 $> May 16 14:12:59 lheppc78 kernel: [  520.392014] UniverseII driver version 1.0 pre (January 2010)
 $> May 16 14:12:59 lheppc78 kernel: [  520.392034] UniverseII found at bus 9 device 58
 $> May 16 14:12:59 lheppc78 kernel: [  520.392039]  Vendor = 10E3 Device = 0000 Status = 02000007  Class = 00068000
 $> May 16 14:12:59 lheppc78 kernel: [  520.392043]   Misc0 = 00000000
 $> May 16 14:12:59 lheppc78 kernel: [  520.392065] UniverseII: MISC_CTL is 31060000
 $> May 16 14:12:59 lheppc78 kernel: [  520.392069] UniverseII: MAST_CTL is 80c00000
 $> May 16 14:12:59 lheppc78 kernel: [  520.392094] UniverseII: Using PCI irq 10 (shared)!
 $> May 16 14:12:59 lheppc78 kernel: [  520.392575] UniverseII: Driver successfully loaded.
  • After a system reboot you need to use again the script "ins" to load the module.
  • Compile and install the access library "vmelib"
 $> cd ~/universeII/vmelib
 $> make
 $> su
 $> make install
 $> exit
  • Compile the test programs and run "test_CAEN_V1740_scratch" program
 $> cd ~/universeII/test
 $> make
 $> ./test_CAEN_V1740_scratch
  • On successful installation, the following output is returned
 $> Reading the scratch area of board 1: 0X12344321
 $> Reading the scratch area of board 1: 0X10304020
 $> Reading the scratch area of board 2: 0X12344321
 $> Reading the scratch area of board 2: 0X10304020