Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: nested tables removal

...

To build NI-PCI/GPIB PCI PassThrough device driver do the following:

StepDescription
1

Make sure that the required building tools and include files are installed. If they are absent install them:

# yum groupinstall “Development Tools”
# yum

yum groupinstall "Development Tools"

yum install kernel-headers kernel-devel

(info) Note:

The kernel version must match the version of the installed kernel-headers (i.e. this packages must have same versions. It can be verified via "rpm -q -a | grep kernel-" )

Check that the "kernel" and the "kernel-headers" have the same version, and ensure that system is booted from this kernel version (not from some older one and etc) with "uname -a" command.

2

Open xterm and change the default directory to "/opt/charon/drivers/ni_pci_gpib_ppt":

# cd

cd /opt/charon/drivers/ni_pci_gpib_ppt

3

Issue "make clean; make" commands to build kernel object:

# make

make clean; make

(warning) It is prohibited to use a module built on a certain version of kernel on another one.

4Check that there are no compilation errors and the file "ni_pci_gpib_ppt.ko" has been built

...

To install NI-PCI/GPIB PCI PassThrough device driver do the following:

StepDescription
1

Load "ppt_kgpsa.ko" driver; to do that issue the following command:

# insmod

insmod ni_pci_gpib_ppt.ko

2

Issue "dmesg" command and check that no error appeared during the driver loading, also check that the driver has found all GPIB devices:

# dmesg

dmesg

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

...

To add NI-PCI/GPIB PCI PassThrough device driver to Linux startup do the following:

StepDescription
1Disable auto-loading of device drivers from National Instruments on boot (if available). Use the black list file "/etc/modprobe.d/blacklist.conf" to do that.
2

Copy the GPIB kernel module to the location of Linux kernel modules, for example:

Div
classsmall

# cp /opt/charon/drivers/ni_pci_gpib_ppt/ni_pci_gpib_ppt.ko /lib/modules/3.10.9-200.el74.x86_64/kernel/drivers/


(warning) The particular path may be different, depending on the kernel version and Linux distribution.
3

Enable auto load of the module:

# echo ni

echo ni_pci_gpib_

ppt >

ppt > /etc/modules-load.d/ni_pci_gpib_ppt.conf

4

Regenerate new "initramfs" image with "mkinitrd":

# mkinitrd -f /boot/initramfs-3.10.9-200.el74.x86_64.img 3.10.9-200.el74.x86_64

(warning) The particular path may be different, depending on the kernel version and Linux distribution.

...

VAX configuration

load IEQ11 IEA


set IEA host_bus_location[0] = "/dev/gpib<N>" set IEA host_bus_location[1] = "/dev/gpib<M>"

Example:

load IEQ11 IEA

set IEA host_bus_location[0] = "/dev/gpib0"
set IEA host_bus_location[1] = "/dev/gpib1"

...

load IEQ11 IEA vector = 0270 priority = 6
set IEA host_bus_location[0] = "/dev/gpib<N>"
set IEA host_bus_location[1] = "/dev/gpib<M>"

...

load IEQ11 IEA vector = 0270 priority = 6

set IEA host_bus_location[0] = "/dev/gpib0"
set IEA host_bus_location[1] = "/dev/gpib1"

...