Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

nikal NI-KAL

I am working with red hat enterprise linux kernel 2.6.18-128.1.14.el5 and when i try and run updateNIDrivers i get the following output

 

 

[root@eden base]# /usr/local/bin/updateNIDrivers
 
Configuring for linux kernel version 2.6.18-128.1.14.el5.
 
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.18-128.1.14.el5/source.
If this does not correspond to the location of the 2.6.18-128.1.14.el5 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: yes
Kernel has ioctl32.h: yes
IRQ handlers have pt_regs: yes
Kernel has work_struct and delayed_work: no
Kernel supports fault method in vm_operations_struct: no
 
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.18-128.1.14.el5/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.1.14.el5-i686'
  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
In file included from /usr/local/natinst/nikal/src/objects/nikal.c:33:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
In file included from /usr/local/natinst/nikal/src/objects/nikal.c:33:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
  Building modules, stage 2.
  MODPOST
WARNING: modpost: GPL-incompatible module nikal.ko uses future GPL-only symbol 'usb_deregister'
WARNING: modpost: GPL-incompatible module nikal.ko uses future GPL-only symbol 'usb_register_driver'
  CC      /usr/local/natinst/nikal/src/objects/nikal.mod.o
  LD [M]  /usr/local/natinst/nikal/src/objects/nikal.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.1.14.el5-i686'
Installing NI-KAL (nikal): Starting NI-KAL failed!
make: *** [install] Error 1
 
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.

 

any help would be greatly appreciated

0 Kudos
Message 1 of 7
(5,799 Views)

I want to verify that your machine does not have any more than 4GB of RAM As is outlined in the following KnowledgeBase artcile NI-KAL will NOT start if there is more than 4GB of ram on the machine: http://digital.ni.com/public.nsf/allkb/20789C3E4A3DCAFB8625708B00693CF9?OpenDocument.

 

Also which drivers are installed on the machine and which drivers are you trying to update when you use

updateNIdrivers. 

 

The next thing I might suggest is looking at the Labview for linux community group where linux users gather and discuss difficult linux questions.  You may want to post this question there. http://decibel.ni.com/content/groups/linux-users?view=overview

 

I hope this helps,

 

 

 

Charley Dahan

Global Account Manager
0 Kudos
Message 2 of 7
(5,767 Views)
I am fairly certain that the machine does not have more than 4 gigs of ram.  I have NIDaqmx 8.0.1f0 and NIDaqmxBase 3.2 installed when I get this error.
0 Kudos
Message 3 of 7
(5,750 Views)

Hello,

 

Did you solve the problem ?

I'm having exactly the same one.

 

thanks,

 

Cosimo

0 Kudos
Message 4 of 7
(4,724 Views)

Hi Cosimo.

 

If you create a new thread about this issue, it is much more likely to get noticed and answered quickly. It would be a good idea to provide a link to this thread in that post as well as details about the specific linux kernal you are using and which update you are installing.

Evan See
National Instruments
0 Kudos
Message 5 of 7
(4,714 Views)

There are 2 problems

 

1) The configure script for the nikal is written poorly and does not properly identify the form of do_munmap from the (kernel-src)/include/linux/mm.h file.

2) The nikal.c file probably is not using the do_munmap function properly.  It sets uf=1 if the four parameter version of the file.

 

This problem is associated with kernel 4.10 and newer.  I got around it by changing the configure script and forcing the kFourParameterDoMunmap to be defined for the compiler.  This got around the compile issue, but I can't yet say if it causes any instability problems.

0 Kudos
Message 6 of 7
(3,882 Views)

Hello pd-x,

 

Since this forum has not had any activity for nearly 4 years, I recommend beginning a new post if you have any new questions you would like to have addressed or new information to share regarding the original issue of this post.  Thanks

CC
Applications Engineering
National Instruments
http://www.ni.com/support
0 Kudos
Message 7 of 7
(3,870 Views)