code:work:lvisf:nonrt2017:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
code:work:lvisf:nonrt2017:start [2018/01/04 19:03] – [MIC 3753 DIO Drivers] david | code:work:lvisf:nonrt2017:start [2018/01/04 22:54] (current) – [Auto-load Plx9030 Driver] david | ||
---|---|---|---|
Line 523: | Line 523: | ||
</ | </ | ||
- Build the drivers < | - Build the drivers < | ||
+ | # 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 | ||
</ | </ | ||
- | - Load the drivers < | + | - Load the drivers |
cd / | cd / | ||
insmod biokernbase.ko | insmod biokernbase.ko | ||
Line 597: | Line 599: | ||
- Enter the code directory < | - Enter the code directory < | ||
cd / | cd / | ||
+ | </ | ||
+ | - Copy the drivers for our kernel into the binary directory < | ||
+ | cp -a / | ||
</ | </ | ||
- Execute the setup script < | - Execute the setup script < | ||
+ | chmod 755 *.sh # not sure why these were not already executable | ||
sudo bash ./ | sudo bash ./ | ||
</ | </ | ||
- | - Select the proper option: | + | - Select the proper option: |
+ | |||
+ | ==== Auto-load MIC-3753 Driver ==== | ||
+ | |||
+ | - symlink the drivers into the kernel directory < | ||
+ | sudo ln -s / | ||
+ | </ | ||
+ | - add to our startup script **/ | ||
+ | - modify the file < | ||
+ | sudo nano / | ||
+ | </ | ||
+ | - add the following < | ||
+ | # start the MIC-3753 drivers | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== 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: | ||
+ | < | ||
+ | sudo cp / | ||
+ | </ | ||
+ | |||
+ | - symlink the driver into the kernel so it will come up on boot < | ||
+ | sudo ln -s / | ||
+ | - add to our startup script **/ | ||
+ | - modify the file < | ||
+ | sudo nano / | ||
+ | </ | ||
+ | - add the following < | ||
+ | # start the Plx9030 syncclock32 driver | ||
+ | / | ||
+ | - symbolically link in our **rc.local** into **/ | ||
+ | - remove the original < | ||
+ | # remove the symlink | ||
+ | sudo rm / | ||
+ | # move the original to something else | ||
+ | sudo mv / | ||
+ | </ | ||
+ | - link in the **lvisf** version < | ||
+ | sudo ln -s / | ||
+ | sudo ln -s / | ||
+ | </ | ||
+ | |||
+ | ===== Installing Boost Library ===== | ||
+ | |||
+ | The **boost** C++ library is required | ||
+ | |||
+ | - Uncompress the tar into **/opt** < | ||
+ | cd /opt | ||
+ | sudo tar -jxvf / | ||
+ | </ | ||
+ | - Symbolically link to a generic boost directory < | ||
+ | sudo ln -s / | ||
+ | </ | ||
+ | - Chown it all to **lvis** user < | ||
+ | sudo chown -R lvis:lvis / | ||
+ | </ | ||
+ | - Set the environment variable for the **BOOST_ROOT** variable | ||
+ | - Edit the file / | ||
+ | nano / | ||
+ | </ | ||
+ | - Add the line < | ||
+ | # Add the boost root directory | ||
+ | export BOOST_ROOT=/ | ||
+ | </ | ||
+ | - Run our profile to load this variable < | ||
+ | source / | ||
+ | </ | ||
+ | - Compile the **boost** libraries < | ||
+ | cd / | ||
+ | ./ | ||
+ | ./b2 | ||
+ | </ | ||
+ | |||
+ | ===== Installing USB Temperature Library ===== | ||
+ | |||
+ | Follow the instructions below to compile the USB temperature monitoring device libraries required. | ||
+ | |||
+ | * [[subsystem: | ||
+ | ]] | ||
====== Clean Boot Operations ====== | ====== Clean Boot Operations ====== |
code/work/lvisf/nonrt2017/start.1515092592.txt.gz · Last modified: 2018/01/04 19:03 by david