Hilscher CIF 50-PB

From Proview Wiki
Revision as of 02:21, 22 August 2013 by Marc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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