Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-PCI-6034E (Ubuntu 12.04)

I'm trying to get a PCI-6034E working under Ubuntu 12.04 (Kernel 3.8.0-29).

I install ni-kal 2.3.1 and  DAQmx 8.02

In ni-kal 2.3.1

I follow this https://decibel.ni.com/content/docs/DOC-15450 to intall ni-kal.

but executed  nikaliPostInstall have some error.

Error are :

root@arlab:/usr/local/natinst/nikal/bin# nikaliPostInstall
/bin/grep: /lib/modules/3.8.0-29-generic/build/include/linux/version.h: No such file or directory

Configuring for linux kernel version 3.8.0-29-generic.

********************************* NOTE *********************************
Using kernel headers found in /lib/modules/3.8.0-29-generic/build.
If this does not correspond to the location of the 3.8.0-29-generic 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 *********************************

/usr/bin/expr: syntax error
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
Kernel has kzalloc: yes
Kernel has chained SGL support: 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 wait_for_completion_interruptible: 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
Kernel supports fault method in vm_operations_struct: yes
Kernel has ioremap_wc: yes
Kernel has pgprot_writecombine: yes

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

Installing NI-KAL:
NI-KAL update failed.

  CC   /usr/local/natinst/nikal/src/nikal/nikal.o
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_mmap’:
/usr/local/natinst/nikal/src/nikal/nikal.c:1993:24: error: ‘VM_RESERVED’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/nikal/nikal.c:1993:24: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL190_vmaPageFaultHandler’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2148:11: error: ‘VM_CAN_NONLINEAR’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL220_vmaPageFaultHandler’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2161:11: error: ‘VM_CAN_NONLINEAR’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_remapPageRange’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2625:22: error: ‘VM_RESERVED’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_doMMap’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2658:4: error: implicit declaration of function ‘do_mmap’ [-Werror=implicit-function-declaration]
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL100_enumeratePCIBuses’:
/usr/local/natinst/nikal/src/nikal/nikal.c:3818:43: error: ‘nLinux_pciBus’ has no member named ‘secondary’
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL220_vmaPageFaultHandler’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2162:1: warning: control reaches end of non-void function [-Wreturn-type]
/usr/local/natinst/nikal/src/nikal/nikal.c: In function ‘nNIKAL190_vmaPageFaultHandler’:
/usr/local/natinst/nikal/src/nikal/nikal.c:2149:1: warning: control reaches end of non-void function [-Wreturn-type]
cc1: some warnings being treated as errors
make[2]: *** [/usr/local/natinst/nikal/src/nikal/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/nikal] Error 2
make: *** [all] 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.

In DAQmx 8.02

intall yet.

Can Anyone help me to fix it ?

Thank you very much

Best regards

FREE_WIND

0 Kudos
Message 1 of 13
(12,064 Views)

You need a patch for nikal to make work it under newer linux kernel newer than 3.2.x

0 Kudos
Message 2 of 13
(6,717 Views)

No need to patch, try newest KAL.

I think this is the newest: http://www.ni.com/download/ni-kal-2.5/4560/en/

0 Kudos
Message 3 of 13
(6,717 Views)

Thanks for good news Irwan.  Is it also a new version of DAQmx-Base for Linux?

0 Kudos
Message 4 of 13
(6,717 Views)

No, that's just the NI-KAL version. I think it has nothing to do with DAQmx-Base for Linux.. Not sure, our group doesn't handle DAQmx-Base..

0 Kudos
Message 5 of 13
(6,717 Views)

mig-31 wrote:

Thanks for good news Irwan.  Is it also a new version of DAQmx-Base for Linux?

The latest version of NI-DAQmx Base is 3.7 [1], and it includes NI-KAL 2.3. It's likely that the next release will include NI-KAL 2.5.

[1] NI-DAQmx Base 3.7 for Linux

http://www.ni.com/download/ni-daqmx-base-3.7/4269/en

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 6 of 13
(6,717 Views)

thanks,everyone.

i'm going to download ni-kal 2.5 and install it.

Best regards

FREE_WIND

0 Kudos
Message 7 of 13
(6,717 Views)

Hi,everyone.

I have installed nikal-2.5 and DAQmx 8.01.

but it has something errors.

arlab@arlab:~$ nilsdev

libnipalu.so failed to initialize

Perhaps you need to run updateNIDrivers

Aborted (core dumped)

i follow this https://decibel.ni.com/content/thread/12097 to run /etc/init.f/nipal.....

i got the message.

nipal: 3.8.0-29-generic kernel not supported

so i need change ohters linux(ubuntu 10.04 32bit or ubuntu 10.04 32bit) or to intall DAQmx 8.02 ????

Any advice for me

Thank you very much

Best regards

FREE_WIND

0 Kudos
Message 8 of 13
(6,717 Views)

nipal: 3.8.0-29-generic kernel not supported

This means that your kernel is too newer for nipal. Probably, you can try older kernel.

0 Kudos
Message 9 of 13
(6,717 Views)

mig-31 is right.. but while there's no way to just update nipal today, there's a workaround that someone suggested: install nivisa 5.4.1. It's a recent release, so it comes with newer nipal.

Try downloading the installer here:

http://www.ni.com/download/ni-visa-5.4.1/4629/en/

See if that works. Can you update this thread with the result?

0 Kudos
Message 10 of 13
(6,717 Views)