SLAC ESD Software Engineering Group
Stanford Linear Accelerator Center

EVR Module / Hamamatsu Module Setup for Servers

SLAC Computing
Software Engineering
Detailed
Unix
 

 

 


 This web page gives information on how to install the EVR in our servers

and to install the Hamamatsu drivers


 

 

EVR:
The camera servers will sometimes need timing to timestamp the images from the cameras.  For these servers we will need to load the pci_mrfevr module.

*Make sure the followng kernels are installed: (uname -r)

  • kernel-debug-2.6.18-371.8.1.el5
  • kernel-PAE-devel-2.6.18-371.8.1.el5  *****

 

Need the /usr/src/kernel area to build module:

  • [lcls-devcam03]: /u/cd/brobeck:$ ls /usr/src/kernels/
    • 2.6.18-371.8.1.el5-debug-i686/
    • 2.6.18-371.8.1.el5PAE-i686@
    • 2.6.18-371.8.1.el5-PAE-i686/     *************
    • 2.6.18-371.8.1.el5-i686/
    • 2.6.18-371.8.1.el5debug-i686@

     

    Possible error Due to missing Kernel files

    :# make modules_install

    make -C /lib/modules/2.6.18-371.8.1.el5PAE/build M=/afs/slac.stanford.edu/g/lcls/vol9/package/linuxKernel_Modules/pci_mrfevr_linux/MAIN_TRUNK modules_install

    make: *** /lib/modules/2.6.18-371.8.1.el5PAE/build: No such file or directory.  Stop.

    make: *** [modules_install] Error 2

     



  1. Login to the server as root and go to the directory which contains the module. This area will contain all the code to build and deploy the module
    1. cd /usr/local/lcls/package/linuxKernel_Modules/pci_mrfevr_linux/MAIN_TRUNK/   (This is subject to change)
    2. Type: make modules_install
    3. /sbin/depmod -a
    4. /sbin/modprobe pci_mrfevr
  2. Verify module is loaded
    1. lsmod | grep pci
  3. Create startup file
    1. Copy a file from other camera server or from /usr/local/admin/Startup-files (This is subject to change)
      1. Create the init.d and rc3.d file
        1. S97st.pci_module_load -> /etc/init.d/st.pci_module_load (Our SIOC's run at S98)
 
 
Hamamatsu Module ( EDTInit)

1. Please, make local copy of vendor's installation file. The file is located at

                  /afs/slac/g/lcls/epics/iocTop/users/khkim/EDTpdv/EDTpdv_lnx_5.4.5.1.run

2. Get sudo permission

3. Make executable for the file

                  chmod +x EDTpdv_lnx_5.4.5.1.run

4. Execute0

                  ./EDTpdv_lnx_5.4.5.1.run

 

5. If everything is OK, you can see the kernel module objects and source code at the following location.

                  /opt/EDTpdv

 

We  can also verify with the followings.

 

[flaci@facet-b244-cs04 EDTpdv]$ /sbin/lsmod | grep edt

edt                   180376  0

 

[flaci@facet-b244-cs04 EDTpdv]$ dmesg

Edt:

pMem f9040000 pMemPhys fc7f0000

Edt:

First mem range start  = fc7f0000

Edt: First mem range length = 65536

Edt: Second mem range pMem2Size 0

 

flaci@facet-b244-cs04 EDTpdv]$ ls -al /dev | grep edt

lrwxrwxrwx  1 root root          9 Dec  3 11:17 edt -> /dev/edt0

crw-rw-rw-  1 root facet 251,    0 Dec  3 11:18 edt0

crw-rw-rw-  1 root facet 251,    0 Dec  3 11:17 edt0_0

crw-rw-rw-  1 root facet 251,    1 Dec  3 11:17 edt0_1

crw-rw-rw-  1 root facet 251,    2 Dec  3 11:17 edt0_2

lrwxrwxrwx  1 root root          9 Dec  3 11:17 pdv0 -> /dev/edt0

lrwxrwxrwx  1 root root         11 Dec  3 11:17 pdv0_0 -> /dev/edt0_0

lrwxrwxrwx  1 root root         11 Dec  3 11:17 pdv0_1 -> /dev/edt0_1

lrwxrwxrwx  1 root root         11 Dec  3 11:17 pdv0_2 -> /dev/edt0_2

 

 

6. The start up script for the EDT kernel module is located at the following.

 

                  /etc/init.d/edtinit

 

You can make a symbolic link of the file at /etc/rc3.d


[SLAC ESD Software Engineering Group][ SLAC Home Page]


Author:K. Brobeck

Modified: 03-Dec-2014