Note: This document is now archived and is no longer being updated. The new documentation can be found at https://nilrt-docs.ni.com/
Overview
With the release of NI Linux Real-Time for PXI and further improvements to the NI Linux Real-Time platform, NI recommends using DKMS (Dynamic Kernel Module Support) to distribute kernel modules for the NI Linux Real-Time platform. These modules should be distributed in *.ipk form using the opkg package manager that ships with NI Linux Real-Time.
Description
The attached tutorial covers:
- Creation of a simple "Hello, World!" kernel module
- Configuring and building the kernel module with DKMS
- Packaging the kernel module for distribution with the opkg package manager
Note: NI Support does not officially support the usage of out-of-tree kernel modules. If issues are encountered due to a specific module, NI recommends posting to NI Linux Real-Time community forums for assistance from other NI Linux Real-Time users.
Hardware and Software Requirements
- NI Linux Real-Time System with one of the following
- NI Linux Real-Time 8.0.0 or newer
- This can be checked in either NI MAX under System Information or in the
output of the uname -r command on the Linux Real-Time device.
- Access to the online NI Repositories or an offline version of the repo copied from the
online NI Repositories
- Source for a Linux Kernel Module
- NI recommends using the attached “Hello, World!” kernel module for this tutorial. The
attached file contains two directories:
- module_source – source files for a DKMS loadable kernel module
- hello – the same module and required files formatted for *.ipk creation
Charlie J.
National Instruments