Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Installing NIDAQ: PCI6031E on Ubuntu 8.04. Nikali post installation failed

Hello everyone !

I am working on a Ubuntu 8.04 (patched with Xenomai) and trying to install the drivers for the PCI6031E NI-DAQ acquisition card.

I have already done it successfuly on another machine quite similar to the one I am using now, but I am habing problems on this new machine, the only difference I can think of right now is that this machine has 3 processors (Intel Xeon 2GHz each)

Here is how I proceeded to install it :

# I downloaded the iso at http://joule.ni.com/nidu/cds/view/p/id/1194/lang/fr and mounted it

cd iso/

tar xvzf nidaqmx-8.0.1f0.tar.gz


# Edit the file bin/installerUtility.sh and replace lines 340 and 341 with :
currentGCCVersion=`$CC -v 2>&1 | tail -n 1 | $SED 's/.*gcc[a-zA-Z (]\+\([0-9][^ )]\+\).*/\1/'`
kernelGCCVersion=`$CAT /proc/version | $SED 's/.*gcc[a-zA-Z (]\+\([0-9][^ )]\+\).*/\1/'`
# Re-build NI-DAQmx 8.0.1 tar
tar cvzf nidaqmx-8.0.1f0.tar.gz bin/ rpms/

cd /bin
sudo mv sh sh_old
sudo ln -s bash sh

cd -

cd rpms/

rm nipalki-2.3.0-f1.x86_64.rpm # Because I don't need it

alien *.rpm

sudo dpkg -i [of each .deb]

sudo ./INSTALL --nodeps

-------------------------------------

This is where I have the problem :

Installing NI-DAQmx for Linux Installer Distribution version 8.0.1f0...
Pre Installation ...............................
erreur: échec de stat sur /home/hadrien/.gvfs: Permission non accordée
Préparation...             ########################################### [100%]
   1:niscarabmm             ########################################### [  3%]
   2:nirpci                 ########################################### [  7%]
   3:nimxs                  ########################################### [ 10%]
   4:nidaqmxhelp            ########################################### [ 14%]
   5:labview80-rte          ########################################### [ 17%]
   6:nikali                 ########################################### [ 21%]
   7:nipalki                ########################################### [ 24%]
   8:nipali                 ########################################### [ 28%]
   9:niorbi                 ########################################### [ 31%]
  10:nidimi                 ########################################### [ 34%]
  11:nimdbgi                ########################################### [ 38%]
  12:nimxdfi                ########################################### [ 41%]
  13:nimxpi                 ########################################### [ 45%]
  14:nistci                 ########################################### [ 48%]
  15:nimru2i                ########################################### [ 52%]
  16:nipxirmi               ########################################### [ 55%]
  17:nidaqmxinfi            ########################################### [ 59%]
  18:nidaqmxef              ########################################### [ 62%]
  19:nicdigi                ########################################### [ 66%]
  20:nitimingi              ########################################### [ 69%]
  21:nidaqmxcfgi            ########################################### [ 72%]
  22:nimioi                 ########################################### [ 76%]
  23:niscxi                 ########################################### [ 79%]
  24:ni653x                 ########################################### [ 83%]
  25:nidaqmxcapiexmp        ########################################### [ 86%]
  26:nidaqmxcapihelp        ########################################### [ 90%]
  27:nidaqmxcapii           ########################################### [ 93%]
  28:nidaqmxswitch          ########################################### [ 97%]
  29:nidsai                 ########################################### [100%]
Post Installation .
Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:

Configuring for linux kernel version 2.6.25.11.

********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.25.11/source.
If this does not correspond to the location of the 2.6.25.11 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
Kernel supports fault method in vm_operations_struct: 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.11/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: entrant dans le répertoire « /usr/src/linux-2.6.25.11 »
  CC   /usr/local/natinst/nikal/src/objects/nikal.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: modpost: module nikal.ko uses symbol 'init_mm' marked UNUSED
  CC      /usr/local/natinst/nikal/src/objects/nikal.mod.o
  LD   /usr/local/natinst/nikal/src/objects/nikal.ko
make[1]: quittant le répertoire « /usr/src/linux-2.6.25.11 »
Installing NI-KAL (nikal): Starting NI-KAL failed!
make: *** [install] Erreur 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.

..............................

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

******************************************************************************
* A reboot is required before attempting to use the
* NI-DAQmx for Linux Installer Distribution software.
******************************************************************************
Would you like to reboot now? [yes|no] no

NI-DAQmx for Linux Installer Distribution Installation completed with errors.

Please reboot manually before attempting to use
NI-DAQmx for Linux Installer Distribution software.

---------------------------------------------------------------------------------------------------------------------------------------------------------------

On the previous machine it worked fine. I don't know what the problem is here.

Thank you very much for you help !

Hadrien

EDIT :

I noticed in the dmseg report that nikal complained about a 4GB RAM limit.

I do have 12GB of RAM on the computer, but I thought Ubuntu was only able to use 4GB of it.

At first I had a very large swap system (8GB) so I resized it with gparted.

Now I have :

hadrien@hadrien-desktop:~/Bureau/iso$ free -m
             total       used       free     shared    buffers     cached
Mem:          3032       1091       1940          0         27        748
-/+ buffers/cache:        314       2717
Swap:            0          0          0

So I seem under the 4GB limit.

What do you think ?

EDIT 2 :

Finally I managed to install the driver by removing RAM from my computer.

I used to have 12GB and now only 2GB. Is there any way for me to have it back ?

Download All
0 Kudos
Message 1 of 2
(4,318 Views)

You can have up to 4 GB of addressable RAM in your 32-bit system with NI drivers. You can even install the full 12 GB but only tell the kernel to use the first 4 GB. See the NI-KAL readme:

NI-KAL 2.0 readme
http://ftp.ni.com/support/softlib/kal/2.0/README.txt

Joe

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 2 of 2
(2,727 Views)