NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating NI Driver versions after kernel recompile on PXIe-8880

Solved!
Go to solution

Hi,

 

I needed to add iptables_nat module to the kernel on PXIe-8880 so I followed the steps in the following tutorial to add that module to the kernel. More specifically here's a list of commands I used: (i was recompiling the kernel on the PXIe-8880 (10.0.36.19) itself and I already installed squashfs4.4.tar.gz on the machine)

 

opkg update
opkg install packagegroup-core-sdk-dev

git clone https://github.com/ni/linux.git
cd linux
git checkout nilrt/19.0/4.14
export ARCH=x86_64

make nati_x86_64_defconfig

make -j6 ni-pkg
cd ~/kernel/linux/ni-install/x86_64
scp boot/bzImage admin@10.0.36.19:/boot/runmode/
tar czf - lib/ | ssh admin@10.0.36.19 "tar xzvf - -C /"
scp headers/module-versioning-image.squashfs admin@10.0.36.19:/usr/local/natinst/tools/

 

ssh admin@10.0.36.19


source /usr/local/natinst/tools/versioning_utils.sh
setup_versioning_env

versioning_call /usr/local/natinst/nikal/bin/updateNIDrivers $(kernel_version)

 

I ran into an issue on the very last command. "updateNIDrivers" application wasn't found on the PXIe-8880, so naturally when i rebooted the controller none of the NI Drivers were recognizing the new kernel. Does anyone know if there's a way to install that utility on PXIe-8880? (I've installed all possible software i could through MAX on the PXIe-8880, but it doesn't seem to update NI-KAL which I think is the package that has "updateNIDrivers")

Sev K.
Senior Systems R&D Engineer | Wireless | CLA
National Instruments
0 Kudos
Message 1 of 3
(2,545 Views)
Solution
Accepted by Sev_K

For Linux Real-Time *.ipk-based installations of NI Software (such as PXI Linux Real-Time) we no longer use updateNIDrivers. Instead, DKMS is used. I *think* DKMS is supposed to rebuild the modules automatically after a kernel upgrade but you can manually try to do so via:

dkms autoinstall
Charlie J.
National Instruments
0 Kudos
Message 2 of 3
(2,440 Views)

Thanks Charlie! 

That resolved the issue.

Sev K.
Senior Systems R&D Engineer | Wireless | CLA
National Instruments
0 Kudos
Message 3 of 3
(2,435 Views)