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 16:28] – [Minimize Kernel Modules] davidcode:work:lvisf:nonrt2017:start [2018/01/04 22:54] (current) – [Auto-load Plx9030 Driver] david
Line 223: Line 223:
 </code> </code>
  
-**Remove Unused Services**+==== Remove Unused Services ====
  
-  - Remove **exim**+  - Remove **exim** (NOTE, this was not on the CentOS Minimal I just installed 2018.01.04 (but leaving for historical))
     - Stop the service <code>     - Stop the service <code>
 sudo service exim stop sudo service exim stop
Line 231: Line 231:
     - Remove the package from the system <code>     - Remove the package from the system <code>
 sudo rpm -e --nodeps exim sudo rpm -e --nodeps exim
 +</code>
 +  - Remove **auditd** <code>
 +sudo service auditd stop # now
 +sudo chkconfig auditd off # after reboot
 </code> </code>
   - Remove **postfix**   - Remove **postfix**
Line 275: Line 279:
 NETWORKING_IPV6=no NETWORKING_IPV6=no
 IPV6INIT=no IPV6INIT=no
 +</code>
 +    - Add these two lines to **sshd_config** <code>
 +sudo nano /etc/ssh/sshd_config
 +# lvisf - ipv4 only
 +AddressFamily inet
 +ListenAddress 0.0.0.0
 </code> </code>
   - Blacklist kernel modules we don't require   - Blacklist kernel modules we don't require
Line 423: Line 433:
 sudo chown -R lvis:lvis /opt/lvisf sudo chown -R lvis:lvis /opt/lvisf
 </code> </code>
-    - Check out the raw source code  <code>+    - **[Optional]** Uncompress our locally attached mount with snapshot (faster than network initial checkout)<code> 
 +cd / 
 +tar jxvf /media/LVIS-GH-2TB_WD209/lvisf_build/lvisf_sourcesnapshot_20160816_svn439.tar.bz2 
 +</code> 
 +      - **[Either]** Check out he raw source code from scratch <code>
 cd /opt/lvisf cd /opt/lvisf
 svn co https://svn.yancich.com:8443/svn/NASA/LVIS/trunk/ src svn co https://svn.yancich.com:8443/svn/NASA/LVIS/trunk/ src
 +</code>
 +      - **[Or]** Update it if you used the tar above <code>
 +cd /opt/lvisf/src
 +svn update
 </code> </code>
     - Enter the user home directory and create symbolic links<code>     - Enter the user home directory and create symbolic links<code>
Line 505: 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
 insmod bio1753.ko insmod bio1753.ko
 </code> </code>
 +  - Exit the **sudo bash** <code> 
 +exit 
 +</code>
 ==== Innovative Digitizer Drivers ==== ==== Innovative Digitizer Drivers ====
  
Line 577: Line 599:
   - Enter the code directory <code>   - Enter the code directory <code>
 cd /home/lvis/src/spectrum/shared/linux/pc64/bin cd /home/lvis/src/spectrum/shared/linux/pc64/bin
 +</code>
 +  - Copy the drivers for our kernel into the binary directory <code>
 +cp -a /home/lvis/src/spectrum/shared/linux/pc64/bin/`uname -r`/*.ko /home/lvis/src/spectrum/shared/linux/pc64/bin/
 </code> </code>
   - Execute the setup script <code>   - Execute the setup script <code>
 +chmod 755 *.sh   # not sure why these were not already executable
 sudo bash ./setup_xmc1151_dvt.sh sudo bash ./setup_xmc1151_dvt.sh
 </code> </code>
-  - Select the proper option:  1)Install for instance+  - 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.1515083323.txt.gz · Last modified: 2018/01/04 16:28 by david