User Tools

Site Tools


code:work:lvisf:nonrt2017:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:work:lvisf:nonrt2017:start [2018/01/04 19:03] – [Spectrum Digitizer Drivers] davidcode:work:lvisf:nonrt2017:start [2018/01/04 22:54] (current) – [Auto-load Plx9030 Driver] david
Line 523: Line 523:
 </code> </code>
   - Build the drivers <code>   - Build the drivers <code>
 +# to disable IRQs in this driver, just use this code where the IRQ calls are commented out
 +cp init.c.no_irq init.c
 make make
 </code> </code>
-  - Load the drivers <code>+  - Load the drivers (this crashes when i load the bio1753 (IRQ!!! issue) <code>
 cd /home/lvis/src/MIC3753/linux_driver_source_3.2.7.0_64bit/drivers/bin cd /home/lvis/src/MIC3753/linux_driver_source_3.2.7.0_64bit/drivers/bin
 insmod biokernbase.ko insmod biokernbase.ko
Line 606: Line 608:
 </code> </code>
   - Select the proper option:  1)Install   - Select the proper option:  1)Install
 +
 +==== Auto-load MIC-3753 Driver ====
 +
 +  - symlink the drivers into the kernel directory <code>
 +sudo ln -s /opt/lvisf/src/MIC3753/linux_driver_source_3.2.7.0_64bit/drivers/bin/*.ko /lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/misc/
 +</code>
 +  - add to our startup script **/etc/sysconfig/modules/lvisf.modules**
 +    - modify the file <code>
 +sudo nano /etc/sysconfig/modules/lvisf.modules
 +</code>
 +    - add the following <code>
 +# start the MIC-3753 drivers
 +/sbin/modprobe biokernbase
 +/sbin/modprobe bio1753
 +</code>
 +
 +==== Auto-load Plx9030 Driver ====
 +
 +**NOTE: (in lieu of step 2 below)** I had this not work when I manually edited it the first time.  A copy of the file is in the repository, you could just copy that file in:
 +<code>
 +sudo cp /opt/lvisf/src/lvisF/scripts/lvisf.modules /etc/sysconfig/modules/lvisf.modules
 +</code>
 +
 +  - symlink the driver into the kernel so it will come up on boot <code>
 +sudo ln -s /opt/lvisf/src/PLX/PlxSdk/Driver/Source.Plx9000/Output/Plx9030.ko /lib/modules/2.6.32-431.el6.x86_64/kernel/drivers/misc/</code>
 +  - add to our startup script **/etc/sysconfig/modules/lvisf.modules**
 +    - modify the file <code>
 +sudo nano /etc/sysconfig/modules/lvisf.modules
 +</code>
 +    - add the following <code>
 +# start the Plx9030 syncclock32 driver
 +/sbin/modprobe Plx9030</code>
 +  - symbolically link in our **rc.local** into **/etc/rc.local**
 +    - remove the original <code>
 +# remove the symlink
 +sudo rm /etc/rc.local
 +# move the original to something else
 +sudo mv /etc/rc.d/rc.local /etc/rc.d/rc.local_orig
 +</code>
 +    - link in the **lvisf** version <code>
 +sudo ln -s /opt/lvisf/src/lvisF/scripts/rc.local /etc/rc.d/rc.local
 +sudo ln -s /etc/rc.d/rc.local /etc/rc.local
 +</code>
 +
 +===== Installing Boost Library =====
 +
 +The **boost** C++ library is required for the data system.  The tarball of the 1.6.2 version is in the repository.  Or download the latest from [[http://www.boost.org/users/download/]].  Here is the latest as of 2018.01.04 [[https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2]]
 +
 +  - Uncompress the tar into **/opt** <code>
 +cd /opt
 +sudo tar -jxvf /opt/lvisf/src/tars/boost_1_62_0.tar.bz2
 +</code>
 +  - Symbolically link to a generic boost directory <code>
 +sudo ln -s /opt/boost_1_62_0 /opt/boost
 +</code>
 +  - Chown it all to **lvis** user <code>
 +sudo chown -R lvis:lvis /opt/boost_1_62_0
 +</code>
 +  - Set the environment variable for the **BOOST_ROOT** variable
 +    - Edit the file /home/lvis/.bash_profile <code>
 +nano /home/lvis/.bash_profile 
 +</code>
 +    - Add the line <code>
 +# Add the boost root directory
 +export BOOST_ROOT=/opt/boost
 +</code>
 +    - Run our profile to load this variable <code>
 +source /home/lvis/.bash_profile
 +</code>
 +  - Compile the **boost** libraries <code>
 +cd /opt/boost
 +./bootstrap.sh
 +./b2
 +</code>
 +
 +===== Installing USB Temperature Library =====
 +
 +Follow the instructions below to compile the USB temperature monitoring device libraries required.
 +
 +  * [[subsystem:datasystem:dev:hardware:mccdaq:usbtemp:start|Measurement Computing USB-TEMP-AI code instructions.
 +]]
  
 ====== Clean Boot Operations ====== ====== Clean Boot Operations ======
code/work/lvisf/nonrt2017/start.1515092637.txt.gz · Last modified: 2018/01/04 19:03 by david