From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

VXI and VME

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to compile mxi-2 driver for linux 2.4.4

Hello,

I have a MXI-2 (VME/PCI) hardware and I'd like to install the appropiate
software for my PC which runs under SuSE Linux 7.2 (kernel 2.4.4-64GB-SMP).

I have succesfully installed NIVISA and NIVXI software (RPMs) and then
I'm trying to compile (using make) the vxi module for linux. It does not work...

Do you have a solution ?

Thanks in advance.



Remi CORNAT


Error log from make :

gcc -o vxi.o -DVXI_MAJOR=0 -c -O -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.4.4-64GB-SMP/build/include vxi.c
vxi.c: In function `vxi_vma_nopage_shm':
vxi.c:64: structure has no member named `vm_offset'
vxi.c:65: warning: implicit declaration of function `MAP_NR'
vxi.c: At top level:
vxi.c:77:
warning: excess elements in struct initializer
vxi.c:77: warning: (near initialization for `vxi_vm_ops_shm')
vxi.c:77: warning: excess elements in struct initializer
vxi.c:77: warning: (near initialization for `vxi_vm_ops_shm')
vxi.c:77: warning: excess elements in struct initializer
vxi.c:77: warning: (near initialization for `vxi_vm_ops_shm')
vxi.c:78: warning: excess elements in struct initializer
vxi.c:78: warning: (near initialization for `vxi_vm_ops_shm')
vxi.c: In function `vxi_mmap':
vxi.c:86: structure has no member named `vm_offset'
vxi.c:102: structure has no member named `vm_offset'
vxi.c: At top level:
vxi.c:114: warning: initialization from incompatible pointer type
vxi.c:115: warning: initialization from incompatible pointer type
vxi.c:116: warning: initialization from incompatible pointer type
vxi.c:118: warning: initialization from incompatible pointer type
make: *** [vxi.o] Error 1
0 Kudos
Message 1 of 2
(6,299 Views)
As of August 2001, National Instruments does not have a driver that is supported under the 2.4 kernel of Linux. The latest version of NI-VXI is supported under the 2.2 kernel for our PCI-MXI-2 and VXIpc-870 controllers.

Trey Hamilton
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(6,299 Views)