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

Page 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

Image 22
Contents Agilent Acqiris Family BIT Digitizers XZ001USA Contents OUT of the BOX Running the Acqirislive Application Message to the User Using this ManualConventions Used in This Manual Disclaimer and Safety Packaging and HandlingWarranty System RequirementsMaintenance Transport & ShippingCleaning Disposal and RecyclingIC414 Installation 1. IC414 Hardware installation hints 2. IC414 Windows software installationInstallation Installing the Software under WindowsMultiple Versions Page Page Page Page Page Page Page Page Page Installing the Software for Linux Kernel Mode Driver Compilation ƒ cd linuxdriverpciSpecial cases Installing the HardwareEnvironment variables for the Firmware After Restarting Windows Windows XPPage LabVIEW RT Installing the IVI-COM/C Driver Distribution for Windows 2000/XP and LinuxDP110 Block Diagram OverviewInput Protection Channel Input CouplingImpedance Mezzanine Front-endOffset Particularities Input Voltage and Offset Vertical ResolutionDC Accuracy and Linearity Using Probes Data AcquisitionAcquisition Memory Sampling RateSingle and Sequence Acquisition Modes Combining channels TimingTimebase Range TriggerEdge Trigger Slope Trigger CouplingTrigger Level Window TriggerTrigger Status Pre- and Post-Trigger DelayExternal Clock and Reference ASBus Internal CalibrationSpecial Front Panel Input and OutputDP1400 & DC271-FAMILY Frequency Counter mode External Trigger Output DP1400 & DC271-FAMILYPCI DMA Safety Operating TemperatureDimensions Environmental and PhysicalRunning the AcqirisLive Application Getting Started with AcqirisLiveControl Panel Mode Control Panel and FunctionsDisplaying Multiple Traces Keyboard shortcuts Numeric EditorInput Voltage Scale, Offset and Coupling Acquisition Mode Using digitizers of different models simultaneously Timebase and MemoryDisplay Features, Zoom and Persistence Segmented MemoryTop Line Menu of AcqirisLive SetupStore, Autostore and Conversion of Waveforms Page External 10 MHz Reference and External Clock CalibrateCombine channels Additional Waveform InformationAvailable Switches Display FeaturesCommand Line Switches Operation ModeBanks for Smar Transient Recorder modeBuffer size CalibrationAcquisition State Simulation ModeTemperature Update Multi-instrumentsHow to run GeoMapper When should the GeoMapper Application be usedWho needs a Geographical Map of Modules Page Page Page Appendix B ASBus2 for PCI Digitizers Page Page Page Page Page Appendix H XP104 Fan Unit for DP1400 Page Appendix I XP105 Fan Unit for DP1400