Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Nikal 2.3 on Linux kernel 3.7.9

Greetings!

 

I have a Fedora 17 machine (32-bit) with a 3.7.9 kernel.  I have attempted to install nikal 2.3 and DaqMX 8.02, unsuccessfully.  In short,

(1) nikal.c doesn't compile as VM_RESERVED and VM_CAN_LINEAR are no longer defined, and the 'secondary' element of the pci_bus structure has been removed.

(2) attempting to fix the source and running 'make' in the NIKAL source directory SEEMS to complete normally, updateNIDrivers doesn't complain, but (what a surprise) nilsdev --verbose crashes with:

 

 libnipalu.so failed to initialize

 Perhaps you need to run updateNIDrivers

 Aborted (core dumped)

 

I realize this is unsupported, but I hope I can find some happy solution.  I've been running happily on Fedora 14, but that is getting harder to maintain.  I have a great deal of flexibility in solving this problem including running different distros although I do not want to inflict Gnome 3 on my users.  Ideally I can get this to work as it is in my comfort zone, this is a small project for a small client, and the budget is limited.

 

(1) I have attached a patch file of the changes to nikal.c  Does this pass the sanity test?  I'm no kernel wizard and I an particularly concerned about my assumptions in the last two patch paragraphs.  Also, I do NOT know when these changes came to pass and have assumed kernel 3.7.  The patch is completely experimental.

 

(2) Is it sufficient to run make in the NIKAL source directory to complete the installation, or are other steps needed thereafter?  Should I disassemble the installation and attempt to modify the source inside?

 

(3) Does anyone have a recent (as in maintainable) configuration to recommend?

 

(4) Is this question even germane to the error I have received?

 

Thanks, in advance!

 

-- John Navratil

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

Have you considered Fedora 16 or openSUSE 12.1?

 

Both have kernel 3.1, and the latter is what NI-KAL 2.3.1 officially supports.

 

NI-KAL 2.3.1

http://joule.ni.com/nidu/cds/view/p/id/3477/lang/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 2 of 4
(4,071 Views)

The advice was perfectly on point and sent me in the right direction.  Thanks!  However, Fedora 16 doesn't succeed as the current repositories have kernel source which already breaks the nikal.c compile.  Centos 6.4 uses the 2.6.32 kernel and both NIKAL23 and DAQmx802 installed successfully without drama.

0 Kudos
Message 3 of 4
(4,037 Views)

Please check this page, and make sure all your software are compatible. Also what type of hardware are you using?

http://digital.ni.com/public.nsf/allkb/4857A755082E9E228625778900709661

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(4,008 Views)