LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mandriva 2008 compatible with LabVIEW 8.2?

Just deployed a Mandriva 2008 machine for a new experiment. Installation of NI-VISA on this machine fails after I :

1. Downloaded kernel 2.6.25.9 (the current latest) kernel and compiled it the mandriva way (http://www.howtoforge.com/kernel_compilation_mandriva_p2 ). Installed both the kernel and the src rpm. There cannot be any question now that the kernel source in /usr/src/linux (a symlink to /usr/src/linux-2.6.25.9) is the source used to build the running kernel.

2. Generated the initrd and it got setup without any complaints (suggesting no issue with modules). I did not run make modules_prepare; make modules; make modules_install after the kernel compilation - the assumption is that the kernel compilation takes care of that. Indeed, the directory, /lib/modules/2.6.25.9 is well populated :

# ls -ltr /lib/modules/2.6.25.9/
total 1856
-rw-r--r-- 1 root root  72844 2008-07-02 15:24 modules.order
lrwxrwxrwx 1 root root     34 2008-07-02 15:31 build -> /usr/src/rpm/BUILD/kernel-2.6.25.9/
lrwxrwxrwx 1 root root     34 2008-07-02 15:31 source -> /usr/src/rpm/BUILD/kernel-2.6.25.9/
drwxr-xr-x 9 root root   4096 2008-07-02 15:31 kernel/
drwxr-xr-x 3 root root   4096 2008-07-02 15:43 dkms/
-rw-r--r-- 1 root root 476943 2008-07-02 15:44 modules.usbmap
-rw-r--r-- 1 root root 169513 2008-07-02 15:44 modules.symbols
-rw-r--r-- 1 root root   1303 2008-07-02 15:44 modules.seriomap
-rw-r--r-- 1 root root 328427 2008-07-02 15:44 modules.pcimap
-rw-r--r-- 1 root root     74 2008-07-02 15:44 modules.ofmap
-rw-r--r-- 1 root root  22224 2008-07-02 15:44 modules.isapnpmap
-rw-r--r-- 1 root root    451 2008-07-02 15:44 modules.inputmap
-rw-r--r-- 1 root root    813 2008-07-02 15:44 modules.ieee1394map
-rw-r--r-- 1 root root 352664 2008-07-02 15:44 modules.dep
-rw-r--r-- 1 root root     69 2008-07-02 15:44 modules.ccwmap
-rw-r--r-- 1 root root 409151 2008-07-02 15:44 modules.alias

3. Looked at Shawn's (Hi !) suggested post and created a symlink :
#ln -s asm-x86 asm-i386

in /lib/modules/2.6.25.9/build/include

4. Attempt to install NI-VISA failes with what I now hold to be the dumbest and most impossible error message in my experience :

The following components will be installed using rpm:
  NI-VISA Runtime 4.0.0              5703 KB  (in /usr/local/vxipnp)
  NI-VISA Development 4.0.0          4477 KB  (in /usr/local/vxipnp)
  NI-VISA Configuration 4.0.0         658 KB  (in /usr/local/vxipnp)
  NI-VISA Server 4.0.0                227 KB  (in /usr/local/vxipnp)
  PXI Services 1.6.0                  791 KB  (in /usr/local/natinst/nipxi)
  NI Spy 2.4.0                       2171 KB  (in /usr/local/natinst/nispy)
  CVI Runtime 8.0                    8510 KB  (in /usr/local/natinst/cvirte)
  LabVIEW Runtime 8.0.1             32695 KB  (in /usr/local/lib/LabVIEW-8.0)
  NI-ORB 1.5.0                        459 KB  (in /usr/local/natinst/.nicore)
  NI-DIM 1.5.0                        594 KB  (in /usr/local/natinst/.nicore)
  NI-RPC 3.3.0                        102 KB  (in /usr/local/natinst/.nicore)
  NI-PAL 1.11.1                      1768 KB  (in /usr/local/natinst/nipal)
  NI-KAL 1.4.0                        229 KB  (in /usr/local/natinst/nikal)
Total space required:               58384 KB
Space available:                 14394492 KB

Continue? [Yn] y
Invalid selection.  Continue? [Yn] y

******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.25.9/source does not appear to be
* for the 2.6.25.9 kernel.
* Ensure that kernel source for the 2.6.25.9 kernel is installed
* and configured.  Refer to the README file for the product you are           *
* installing for information about configuring your kernel source.            *
******************************** ERROR ****************************************

Installation aborted.


Now Shawn and I have had some exchanges of views on whether or not NI should support Debian / Ubuntu based distros (being as they are, such a massive chunk of the linux market), but this particular problem pertains to Mandriva, which is on the list of supported distributions. Surely, one expects better than this.

Btw., I tried the same thing with the preinstalled kernels (I used to be a Redhat user *years* ago, so a lot of this process is relearning the rpm way of doing things - its still pretty painful compared to debs) - no joy. Same error - regardless of whether the devel or source packages were / were not installed.

Suggestions regarding installing LabVIEW 8.2 properly (and I do mean the VISA part as well - this machine is destined for an actual experiment, not just a design workstation) on what is a supported distro would be both expected and very welcome indeed.

Thanks.

0 Kudos
Message 11 of 14
(1,125 Views)
Further developments. Following some older advice I remembered, I downloaded the latest versions of NI-KAL and NI-VISA (1.7xxx and 4.3, respectively).

Now I have (NI-KAL) :

Installing NI-KAL version 1.7.0f0...
Pre Installation ..
Preparing...                ########################################### [100%]
   1:nikali                 ########################################### [100%]
Post Installation .
Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:

Configuring for linux kernel version 2.6.25.9.

********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.25.9/source.
If this does not correspond to the location of the 2.6.25.9 headers,
then define KERNELHEADERS in your environment to point to the location
of the kernel headers, define KERNELTARGET as the version of the
kernel for which to compile, and then rerun ./configure.
********************************* NOTE *********************************

Kernel has reparent_to_init(): no
Number of arguments for do_munmap(): 3
pte_offset function: pte_offset_kernel()
Levels in page table: 4
Kernel has remap_pfn_range: yes
USB altsetting name: cur_altsetting
Kernel has usb_get_intf(): yes
Kernel has intf_cache member in usb_host_config: yes
Kernel has ep[] members in usb_device: yes
Kernel exports usb_set_configuration(): no
Units of USB_CTRL_GET_TIMEOUT: msec
Kernel has owner member in usb_driver: no
Kernel has put_page_testzero(): yes
Kernel has mutex method: yes
Kernel has kthread: yes
Kernel has config.h: no
Kernel has ioctl32.h: no
IRQ handlers have pt_regs: no
Kernel has work_struct and delayed_work: yes

Storing configuration in Makefile.in
If the values stored are incorrect they can be changed before running make.

Uninstalling NI-KAL (nikal): done
/bin/rm -rf objects
Updating NI-KAL:
 NI-KAL update failed.

/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.25.9/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/rpm/BUILD/kernel-2.6.25.9'

  WARNING: Symbol version dump /usr/src/rpm/BUILD/kernel-2.6.25.9/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_registerPCIDriver’:
/usr/local/natinst/nikal/src/objects/nikal.c:2802: error: ‘nLinux_pciDriver’ has no member named ‘enable_wake’
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_reserveInterrupt’:
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: ‘SA_INTERRUPT’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: (Each undeclared identifier is reported only once
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: for each function it appears in.)
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: ‘SA_SHIRQ’ undeclared (first use in this function)
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Error 2
make[1]: Leaving directory `/usr/src/rpm/BUILD/kernel-2.6.25.9'
make: *** [objects/nikal.ko] Error 2

ERROR: make of nikal kernel module failed, not installing kernel module.
   updateNIDrivers should be called again after fixing the problem.
   Logging failure...
   Include the file /tmp/niSystemReport.out.gz when contacting
   National Instruments for support.

.

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /media/iso AND/OR
www.ni.com/patents

NI-KAL Installation completed with errors.

I found something that appeared to be germane to this issue here :
http://forums.ni.com/ni/board/message?board.id=250&message.id=38929&query.id=10831#M38929

"ne more update:   so i noticed that some of the errors i was getting, (SA_INTERRUPT not defined, SA_SHIRQ not defined) were reported by people having problems with SATA drivers, and that the recommended fix there was to recompile the kernel with the SATA drivers compiled in, instead of as modules,  so i did this, and now lsdaq doesn't crash... it still doesn't find my boards though!"

Now, I am not using a DAQ (in fact, no hardware is currently installed on this machine - a PCIe GPIB card is about to be ordered). Does this apply in my case ? I do have SATA drives, and its quite possible that these are supported using modules.



Message Edited by m-s on 07-02-2008 06:32 PM
0 Kudos
Message 12 of 14
(1,122 Views)


@m-s wrote:

/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.25.9/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/rpm/BUILD/kernel-2.6.25.9'

  WARNING: Symbol version dump /usr/src/rpm/BUILD/kernel-2.6.25.9/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_registerPCIDriver’:
/usr/local/natinst/nikal/src/objects/nikal.c:2802: error: ‘nLinux_pciDriver’ has no member named ‘enable_wake’
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_reserveInterrupt’:
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: ‘SA_INTERRUPT’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: (Each undeclared identifier is reported only once
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: for each function it appears in.)
/usr/local/natinst/nikal/src/objects/nikal.c:4114: error: ‘SA_SHIRQ’ undeclared (first use in this function)
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Error 2
make[1]: Leaving directory `/usr/src/rpm/BUILD/kernel-2.6.25.9'
make: *** [objects/nikal.ko] Error 2

Message Edited by m-s on 07-02-2008 06:32 PM



Go look back at my post again.  It may not have been clear, but you should follow the instructions of the post that I linked to and the last post.  The other option is to simply wait for NI-KAL 1.8 which should be available hopefully in less than a month.

Shawn Bohrer
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 13 of 14
(1,071 Views)
Shawn, thanks for your message. I have detailed my steps in a HOWTO post yesterday (which unfortunately also contains some problems that cropped up after the system appeared to have worked). I will await the release of NI-KAL 1.8 then.
0 Kudos
Message 14 of 14
(1,055 Views)