Agilent Technologies DP235, DP240, DP212, DP214 Kernel Mode Driver Compilation, ƒ cd linuxdriverpci

Models: DC140 DC110 DC211 DC135 DP105 DP106 DP211 DP235 DP210 DP111 DP1400 DP110 DP214 DP212 DP240

1 66
Download 66 pages 37.45 Kb
Page 22
Image 22

acqrsPCI.o.2.4.21-4.EL

for Red Hat Enterprise Linux version 3

acqrsPCI.ko.2.6.8-3-686

for Debian 3.1

'sarge'

acqrsPCI.ko.2.6.8-24-smp

for Suse 9.2

 

acqrsPCI.ko.2.6.9-11.EL

for Scientific Linux 4.4

acqrsPCI.ko.2.6.18-4-686

for Debian 4.0

'etch'

To install the driver and the load script to the system, you have to get super user privileges and execute the driver install script by typing,

cd AcqirisLinux

./drv-install add

You can check that the driver is loaded properly with lsmod or dmesg. The drv-installscript has the following additional functionality:

drv-install rem to remove the driver and load script drv-install res to restart the driver

If you intend to use an Averager, an Analyzer, or a 12-Bit Digitizer you must install the Firmware .bit files. You can either copy them from the Firmware directory of the CD-ROM or download them from our WEB site. They should be placed in the Firmware subdirectory of AcqirisLinux. In the case of the CD-ROM, this can be done by continuing the above command sequence with the following:

cp /mnt/CDRom/Firmware/*.bit Firmware/

2.3.1. Kernel Mode Driver Compilation

For some special kernels, for example SMP, the kernel mode driver will have to be recompiled on the target system. All files needed to compile a new kernel mode driver are in AcqirisLinux/linuxdriverpci for Kernel 2.4 or in AcqirisLinux/linux2.6driverpci for Kernel 2.6

The makefile can be used for compilation under a standard compatible distribution. To compile the driver, the kernel header files need to be installed. Furthermore, depending on the Linux distribution, the kernel source files may need to be installed. The makefile will try to guess where they 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 under linux-2.4, issue the following commands:

ƒcd linuxdriverpci

ƒmake clean to remove all *.o files in AcqirisLinux/linuxdriverpci.

ƒmake to generate a new kernel mode driver acqrsPCI.o and also copy it to the directory AcqirisLinux/lib/modules where the install script (drv_install) can access it.

ƒdrv_install rem to remove the previous installed kernel mode driver.

ƒdrv_install add to install the new driver.

To compile a new kernel under linux-2.6, issue the following commands:

ƒcd linux2.6driverpci

ƒmake clean all to generate a new kernel mode driver acqrsPCI.ko from scratch.

ƒmake install to copy the kernel module where it should reside.

Note that this version of the loadable kernel module had been tested on Linux kernel versions up to 2.6.18. However, starting with kernel 2.6.17, a few kernel functions relating to the device classes are no longer available to proprietary modules. Thus automatic creation of the /dev/acqrsPCI node has to be done manually in the /etc/rc.local file.

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

ƒkernel-image-2.6-686

ƒkernel-image-2.6.8-3-686

ƒkernel-headers-2.6-686

ƒkernel-headers-2.6.8-3

ƒkernel-headers-2.6.8-3-686

ƒkernel-kbuild-2.6-3

User Manual: Family of 8-bit Digitizers

Page 22 of 66

Page 22
Image 22
Agilent Technologies DP235, DP240, DP212, DP214 Kernel Mode Driver Compilation, ƒ cd linuxdriverpci, ƒ cd linux2.6driverpci