Installing the linux device driver, Compiling the kernel module – Agilent Technologies DP111 User Manual

Page 14

Advertising
background image

User Manual: Agilent Acqiris 8-bit Digitizers

Page 14 of 59

ƒ CentOS, 4.7, 5.2 - this distribution is a rebranded build of RedHat Enterprise Linux.

CentOS-4.7/agilent-acqirisdriver-3.3a-1.i386.rpm

CentOS-5.2/agilent-acqirisdriver-3.3a-1.i386.rpm

ƒ openSUSE, 11 - this distribution is the base system for Novell SUSE Linux.

openSUSE-11/agilent-acqirisdriver-3.3a-1.i586.rpm

More information on these distributions is available on the following web-site:

http://distrowatch.com/dwres.php?resource=major

All these packages contain a version of the software Acqiris 3.3a release for Linux with full support of recent Acqiris
products.

A deb package should be installed by the root user with the following command:

dpkg -i agilent-acqirisdriver_3.3a-1_i386.deb

An rpm package should be installed by the root user with the following command:

rpm -ivh agilent-acqirisdriver-3.3a-1.i386.rpm

Before being able the run the software, you have to install the acqrsPCI device driver into your running kernel as
described in the next section.

2.3.3. Installing the Linux device driver

The acqrsPCI device driver is a loadable kernel module. It is provided as source files.

Compiling the kernel module

All files needed to compile a new kernel mode driver are in

src/agilent/acqiris/kernel26module/ for Linux kernels 2.6,

or

src/agilent/acqiris/kernel24module/ for Linux kernels 2.4.

To compile the driver, the header files of the Linux kernel need to be installed. Furthermore, depending on the Linux
distribution, the kernel source files may need to be installed too.

For Debian users, in order to compile the kernel module on a system, the kernel packages that match the current
kernel-image must be installed. For instance, on a Debian ‘etch’ 4.0 system 686 the required packages are:

linux-image-2.6-686
linux-image-2.6.18-4-686
linux-headers-2.6-686
linux-headers-2.6.18-4
linux-headers-2.6.18-4-686
linux-kbuild-2.6.18

The makefile will try to guess where the kernel headers are located. If it fails, see instructions inside the makefile
itself to specify manually where these kernel header files are located.

To compile a new kernel module, use the following commands:

cd kernel26module

(or kernel24module)

make clean all

to generate a new kernel module from scratch

make install

to copy the kernel module where it should reside

(this last command requires super user privileges).


In the end, the loadable kernel module should be present in the system's loadable kernel modules directory. You can
verify it is present by running:

ls -l /lib/modules/$(uname -r)/extra/acqrsPCI.ko

Note that this version of the loadable kernel module had been tested on Linux kernel versions up to 2.6.27. However,
starting with kernel 2.6.17, a few kernel functions relating to the device classes are no longer available to proprietary

Advertising
This manual is related to the following products: