Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Install ni-serial driver to ubuntu 22.04.03

Hi,

 

I try to install the ni-serial driver on my Ubuntu 22.04.03.

On my OS I have two kernel: linuz-6.2.0-26 and linuz-6.5.0-25.

On boot/grub I choice the 6.2.0-26 kernel and try to install the driver.

 

1) download from the NI site the ni-serial "NILinux2023Q4DeviceDriver.zip" and install it (without problem).

2) sudo apt update

3) sudo apt install build-essential

4) sudo apt install linux-headers-$(uname -r)

5) sudo apt install ni-serial

 

on last step (5) I had this issue (cat /var/lib/dkms/nikal/23.8.0f102/build/make.log):

 

Making nikal.ko
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/nikal/23.8.0f102/build/nikal.o
MODPOST /var/lib/dkms/nikal/23.8.0f102/build/Module.symvers
ERROR: modpost: "__pte_offset_map" [/var/lib/dkms/nikal/23.8.0f102/build/nikal.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:144: /var/lib/dkms/nikal/23.8.0f102/build/Module.symvers] Error 1

 

Do you have any idea?

Thank you

 

 

 

0 Kudos
Message 1 of 2
(610 Views)

Please use the 2024Q1 driver stack.  It has been updated for more recent kernels.

0 Kudos
Message 2 of 2
(607 Views)