Difference between revisions of "Hilscher CIF 50-PB"

From Proview Wiki
Jump to: navigation, search
(Created page with "<p><strong>UNDER CONSTRUCTION</strong> This page will cover the installation of a Hilscher CIF 50-PB card and ET200S Profibus IO. The installation will be based on a Ubuntu 10...")
 
 
Line 1: Line 1:
<p><strong>UNDER CONSTRUCTION</strong> This page will cover the installation of a Hilscher CIF 50-PB card and ET200S Profibus IO. The installation will be based on a Ubuntu 10.04 LTS version with real time kernel. The real time kernel 2.6.31.x will give the necessary directory structure to install the Hilscher CIF 50-PB driver correctly.</p>
+
'''UNDER CONSTRUCTION'''
<ol>
+
This page will cover the installation of a Hilscher CIF 50-PB card and ET200S Profibus IO.
<li> First install your CIF 50-PB PCI card in your PC. </li>
+
The installation will be based on a Ubuntu 10.04 LTS version with real time kernel.
<li> Download <a class="external text" rel="nofollow" href="http://releases.ubuntu.com">Ubuntu 10.04 LTS</a> then start a clean install and run the latest updates. </li>
+
The real time kernel 2.6.31.x will give the necessary directory structure to install the Hilscher CIF 50-PB driver correctly.
<li> Open Synaptic package manager via System &gt; Administration &gt; Synaptic Package Manager. </li>
+
 
<li> Type linux-rt in the search box. This will give you the option to install a complete RT package based on the latest release. Ensure that it is based on kernel 2.6.31.x. Mark it and apply the changes. </li>
+
# First install your CIF 50-PB PCI card in your PC.
<li> In order to startup with the real time kernel we also need to select it. This can easily be done with the package startupmanager. Mark it and apply the changes. Close Synaptic Package Manager. </li>
+
# Download [http://releases.ubuntu.com Ubuntu 10.04 LTS] then start a clean install and run the latest updates.
<li> Select StartUp-Manager via System &gt; Administration &gt; StartUp-Manager. </li>
+
# Open Synaptic package manager via System > Administration > Synaptic Package Manager.
<li> Goto the tab Boot options &gt; Default operating system and select the first 2.6.31-11-rt menuentry. Close StartUp-Manager and reboot your PC. </li>
+
# Type linux-rt in the search box. This will give you the option to install a complete RT package based on the latest release. Ensure that it is based on kernel 2.6.31.x. Mark it and apply the changes.
<li> After reboot, check if your RT kernel is loaded correctly by opening a terminal session and type uname -a. This will give you something like: Linux yourmachine-desktop 2.6.31-11-rt #154-Ubuntu SMP PREEMPT RT Date Time i686 GNU/Linux </li>
+
# In order to startup with the real time kernel we also need to select it. This can easily be done with the package startupmanager. Mark it and apply the changes. Close Synaptic Package Manager.
</ol>
+
# Select StartUp-Manager via System > Administration > StartUp-Manager.
<p>CIF Linux Device Driver</p>
+
# Goto the tab Boot options > Default operating system and select the first 2.6.31-11-rt menuentry. Close StartUp-Manager and reboot your PC.
<ol>
+
# After reboot, check if your RT kernel is loaded correctly by opening a terminal session and type uname -a. <nowiki>This will give you something like: Linux yourmachine-desktop 2.6.31-11-rt #154-Ubuntu SMP PREEMPT RT Date Time i686 GNU/Linux</nowiki>
<li> Now goto the Hilscher site, select: Products &gt; PC-Cards &gt;  PCI &gt; CIF 50-PB. On the left site of the page you will find the CIF Device driver for Linux kernel 2.6.31 </li>
+
<nowiki>     CIF Linux Device Driver     </nowiki>
<li> Download it and extract the TGZ file. Copy the cif2.622 to your /opt directory (open a terminal session goto your Downloads folder and execute: sudo cp -r cif2.622 /opt) </li>
+
# Now goto the Hilscher site, select: Products > PC-Cards > PCI > CIF 50-PB. On the left site of the page you will find the CIF Device driver for Linux kernel 2.6.31
<li> Goto the directory: cif2.622 &gt; scr and run the script drv_build_n_load.sh with the command: sudo bash drv_build_n_load.sh </li>
+
# Download it and extract the TGZ file. Copy the cif2.622 to your /opt directory (open a terminal session goto your Downloads folder and execute: sudo cp -r cif2.622 /opt)
<li> Provide your credentials and execute. This will build and load the driver. After the driver is build we do not need to use this script any more. </li>
+
# Goto the directory: cif2.622 > scr and run the script drv_build_n_load.sh with the command: sudo bash drv_build_n_load.sh
<li> To be able to load/unload the driver at startup/reboot/shutdown we need to goto the /opt/cif2.622/src directory and make the scripts drv_load.sh and drv_remove.sh executable with: sudo chmod +x drv_load.sh/drv_remove.sh </li>
+
# Provide your credentials and execute. This will build and load the driver. After the driver is build we do not need to use this script any more.
<li> Rename the script drv_remove.sh to K99_drv_remove.sh with: sudo mv drv_remove.sh K99_drv_remove.sh </li>
+
# To be able to load/unload the driver at startup/reboot/shutdown we need to goto the /opt/cif2.622/src directory and make the scripts drv_load.sh and drv_remove.sh executable with: sudo chmod +x drv_load.sh/drv_remove.sh
<li> To load at boot, edit the file rc.local with: sudo gedit /etc/rc.local and add the line: sh /opt/cif2.622/src/drv_load.sh at the end of the file. You can also add an extra line with: echo 'CIF 50-PB loaded!'. End your file always with exit 0. </li>
+
# Rename the script drv_remove.sh to K99_drv_remove.sh with: sudo mv drv_remove.sh K99_drv_remove.sh
<li> To load at reboot, copy the file K99_drv_remove.sh to /etc/rc0.d. </li>
+
# To load at boot, edit the file rc.local with: sudo gedit /etc/rc.local and add the line: sh /opt/cif2.622/src/drv_load.sh at the end of the file. You can also add an extra line with: echo 'CIF 50-PB loaded!'. End your file always with exit 0.
<li> To unload at shutdown, copy the file K99_drv_remove.sh to /etc/rc6.d. </li>
+
# To load at reboot, copy the file K99_drv_remove.sh to /etc/rc0.d.
<li> Reboot your system and your card should be recognized. </li>
+
# To unload at shutdown, copy the file K99_drv_remove.sh to /etc/rc6.d.
<li> Now download the latest </li>
+
# Reboot your system and your card should be recognized.
</ol>
+
# Now download the latest

Latest revision as of 03:21, 22 August 2013

UNDER CONSTRUCTION This page will cover the installation of a Hilscher CIF 50-PB card and ET200S Profibus IO. The installation will be based on a Ubuntu 10.04 LTS version with real time kernel. The real time kernel 2.6.31.x will give the necessary directory structure to install the Hilscher CIF 50-PB driver correctly.

  1. First install your CIF 50-PB PCI card in your PC.
  2. Download Ubuntu 10.04 LTS then start a clean install and run the latest updates.
  3. Open Synaptic package manager via System > Administration > Synaptic Package Manager.
  4. Type linux-rt in the search box. This will give you the option to install a complete RT package based on the latest release. Ensure that it is based on kernel 2.6.31.x. Mark it and apply the changes.
  5. In order to startup with the real time kernel we also need to select it. This can easily be done with the package startupmanager. Mark it and apply the changes. Close Synaptic Package Manager.
  6. Select StartUp-Manager via System > Administration > StartUp-Manager.
  7. Goto the tab Boot options > Default operating system and select the first 2.6.31-11-rt menuentry. Close StartUp-Manager and reboot your PC.
  8. After reboot, check if your RT kernel is loaded correctly by opening a terminal session and type uname -a. This will give you something like: Linux yourmachine-desktop 2.6.31-11-rt #154-Ubuntu SMP PREEMPT RT Date Time i686 GNU/Linux

CIF Linux Device Driver

  1. Now goto the Hilscher site, select: Products > PC-Cards > PCI > CIF 50-PB. On the left site of the page you will find the CIF Device driver for Linux kernel 2.6.31
  2. Download it and extract the TGZ file. Copy the cif2.622 to your /opt directory (open a terminal session goto your Downloads folder and execute: sudo cp -r cif2.622 /opt)
  3. Goto the directory: cif2.622 > scr and run the script drv_build_n_load.sh with the command: sudo bash drv_build_n_load.sh
  4. Provide your credentials and execute. This will build and load the driver. After the driver is build we do not need to use this script any more.
  5. To be able to load/unload the driver at startup/reboot/shutdown we need to goto the /opt/cif2.622/src directory and make the scripts drv_load.sh and drv_remove.sh executable with: sudo chmod +x drv_load.sh/drv_remove.sh
  6. Rename the script drv_remove.sh to K99_drv_remove.sh with: sudo mv drv_remove.sh K99_drv_remove.sh
  7. To load at boot, edit the file rc.local with: sudo gedit /etc/rc.local and add the line: sh /opt/cif2.622/src/drv_load.sh at the end of the file. You can also add an extra line with: echo 'CIF 50-PB loaded!'. End your file always with exit 0.
  8. To load at reboot, copy the file K99_drv_remove.sh to /etc/rc0.d.
  9. To unload at shutdown, copy the file K99_drv_remove.sh to /etc/rc6.d.
  10. Reboot your system and your card should be recognized.
  11. Now download the latest
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox