11-29-2010 09:37 AM
It works with two USB-6501 and one USB-6008 with a kernel: 2.6.32-5-686
Reference:
http://decibel.ni.com/content/docs/DOC-6742
http://decibel.ni.com/content/docs/DOC-13584
http://decibel.ni.com/content/docs/DOC-11652
#Minimum dependency:
rm -rf /tmp/linux-headers
#must be done because it will not work with dash
sudo ln -vfs /bin/bash /bin/sh
# Define commands
CMD='dpkg'
OPTS='-i'
NIDAQMX_VERSION=3.4.0-f2_i386
LINUX_VERSION=`uname -r`
LINUX_VERSION_S=`uname -r| xargs -d "-" |awk '{print $1}'`
#kernel compiled with gcc-4.3
ln -vfs /usr/bin/gcc-4.3 /usr/bin/gcc
#Prepare linux src
cd /usr/src/linux
make oldconfig
make modules_prepare
ln -vfs /usr/src/linux-source-$LINUX_VERSION_S /usr/src/linux
ln -vfs /usr/src/linux-source-$LINUX_VERSION_S /lib/modules/$LINUX_VERSION/source
ln -vfs /usr/src/linux /lib/modules/$LINUX_VERSION/build
ln -vfs /usr/src/linux/include/asm/asm-offsets.h /usr/src/linux/include/asm/asm_offsets.h
#save original file
if [ ! -e /usr/src/linux/include/linux/utsrelease.h.SAVE ]; then
cp -v /usr/src/linux/include/linux/utsrelease.h /usr/src/linux/include/linux/utsrelease.h.SAVE
fi
#copy the patch attached (#define UTS_RELEASE from "2.6.32" to "2.6.32-5-686")
cp -v [downloaded attached file]/utsrelease.h /usr/src/linux/include/linux/utsrelease.h
$CMD $OPTS $VISA_DIR/nikali_2.0.0-f0_all.deb
. /usr/local/natinst/nikal/bin/nikaliInstallerUtility.sh
nikaliPostInstall
cp -vr /lib/modules/$LINUX_VERSION_S/kernel/natinst/nikal /lib/modules/$LINUX_VERSION/kernel/natinst/
modprobe nikal
$CMD $OPTS $NIDAQBASE/labview-2010-rte_10.0.0-1_i386.deb
$CMD $OPTS $NIDAQBASE/nidaqmxbase-board-support_$NIDAQMX_VERSION.deb
$CMD $OPTS $NIDAQBASE/nidaqmxbase-common_$NIDAQMX_VERSION.deb
$CMD $OPTS $NIDAQBASE/nidaqmxbase-cinterface_$NIDAQMX_VERSION.deb
$CMD $OPTS $NIDAQBASE/nidaqmxbase-usb-support_$NIDAQMX_VERSION.deb
$CMD $OPTS --force-overwrite $VISA_DIR/nimdnsresponder_1.1.0-f3_i386.deb
$CMD $OPTS $VISA_DIR/nipali_2.5.4-f0_i386.deb
. /usr/local/natinst/nipal/bin/nipaliInstallerUtility.sh
nipaliPostInstall
$CMD $OPTS $VISA_DIR/nipalki_2.5.4-f0_i386.deb
. /usr/local/natinst/nipal/bin/nipalkiInstallerUtility.sh
nipalkiPostInstall
$CMD $OPTS --force-overwrite $VISA_DIR/niorbi_1.9.3-f0_i386.deb
. /usr/local/natinst/.nicore/bin/niorbiInstallerUtility.sh
niorbiPostInstall
$CMD $OPTS --force-overwrite $VISA_DIR/nirpci_4.2.0-f0_i386.deb
. /usr/local/natinst/.nicore/bin/nirpciInstallerUtility.sh
nirpciPostInstall
$CMD $OPTS $VISA_DIR/nivisa_5.0.0-f0_i386.deb
. /usr/local/vxipnp/bin/nivisaInstallerUtility.sh
nivisaPostInstall
$CMD $OPTS $VISA_DIR/nivisak_5.0.0-f0_i386.deb
. /usr/local/vxipnp/bin/nivisakInstallerUtility.sh
nivisakPostInstall
#back to original gcc
ln -vfs /usr/bin/gcc-4.4 /usr/bin/gcc
cp -v /usr/src/linux/include/linux/utsrelease.h.SAVE /usr/src/linux/include/linux/utsrelease.h
cp -v $NI_PATCHS/updateNIDrivers /usr/local/bin/updateNIDrivers
updateNIDrivers
#back
sudo ln -vfs /bin/dash /bin/sh
reboot
11-29-2010 11:37 AM
Sweet! Thanks for posting your instructions. It is always awesome to see people share.
12-17-2010 07:42 AM
Thanks!
Just did this on ubuntu 10.10 and it worked with a few modifications (I didn't write this down while I did it, so I don't remeber exactly when I did the different steps)
When it complains about not finding nipal.dir:
cp -r /etc/natinst/nipal/etc/* /etc/natinst/nipal/
Before running nipalkiPostInstall:
KERNELTARGET=`uname -r`
ln -s /usr/src/linux-headers-2.6.35-23-generic/include/generated/autoconf.h /usr/src/linux-headers-2.6.35-23-generic/include/linux/ (replace 2.6.35-23 with your kernel version)
I quickly ran into the issue described here: http://decibel.ni.com/content/docs/DOC-13862
The solution:
aptitude remove labview-2010-rte nidaqmxbase-cinterface nidaqmxbase-common
Download NI-DAQmx Base 3.3: http://joule.ni.com/nidu/cds/view/p/id/1342/lang/en
Mount the iso and convert labview82-rte-8.2.1-2.i386.rpm, nidaqmxbase-cinterface-3.3.0-f0.i386.rpm and nidaqmxbase-common-3.3.0-f0.i386.rpm to deb and install as previously described.
02-07-2013 04:17 AM
Sadly, I have not been so lucky....
I'm running Debian Squeeze on an amd64 machine so I needed to modify the script where appropriate to reflect the sources I have on the machine. It went well up to the point where the nikaliPostInstall step occurs. Tracing though this, (it at first wanted root privaledges) it gets to the updateNIDrivers step then gives the following error message:
Unloading NI-KAL (nikal): done
02-07-2013 04:39 AM
I haven't followed this whole Debian thread but just off the bat, I don't know that 64-bit anything will run this software. Try an i686/32-bit kernel? Again, maybe I'm missing something here
02-07-2013 06:28 AM
It's alleged that the 32bit drivers will run on 64bit machines, but as yet I can't attest to that as I can't yet get the driver installed. I've invoked some stronger medicine in the form of a more astude linux boffin, to see if he can figure out where the error is!
02-07-2013 06:32 AM
Actually, the kernel I have is the amd64 kernel, the processor is actually an Intel XEON quad core...
I just need to study the scripts in more detail to try to figure out what the error actually is, maybe a misplaced file or something like that....
02-07-2013 10:47 AM
From the OS point of view, 64bit kernel will need 64bit kernel drivers. 64bit kernels can run 32bit user mode process, but typically some manual steps to install the 32bit library is needed. Usually on Linux, 64bit installation doesn't come with 32bit installed by default.
02-15-2013 02:37 PM
I try install NIdaqmxBase on Debian squeeze 32bit with your script.
Installation success, but when I get "lsdaq", my card PCI6010 is not detect.
When I get lspci -v, I see this card.