11-04-2019 06:13 PM - edited 11-04-2019 06:15 PM
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")
Solved! Go to Solution.
11-05-2019 04:17 PM
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
11-05-2019 04:22 PM
Thanks Charlie!
That resolved the issue.