Unable to install kvaser drivers on orin

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Issue Description

was trying to install kvaser drivers I have followed the steps provided by the Kvaser for linux installation
ihave downloaded the linuxcan_5_47_912.tar.gz.
extracted it and run the command
sudo apt-get install build-essential
which gave me out
adas_coe@tegra-ubuntu:~/Downloads/linuxcan$ sudo apt-get install build-essential
[sudo] password for adas_coe:
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.8ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 157 not upgraded.

further I tried to use the make command in the respective directory

adas_coe@tegra-ubuntu:~/Downloads/kvaser-linuxcan-master$ make
Start building linuxcan v5.39.94
User : adas_coe
System : Linux tegra-ubuntu 5.15.122-rt-tegra #1 SMP PREEMPT_RT Tue Apr 23 18:51:49 PDT 2024 aarch64 aarch64 aarch64 GNU/Linux
CC : cc
CC ver. : 9.4.0
KDIR : /lib/modules/5.15.122-rt-tegra/build
Kernel : 5.15.122-rt-tegra

make -C canlib
make[1]: Entering directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/canlib’
make -C examples KV_DEBUG_ON=0 sub
make[2]: Entering directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/canlib/examples’

Built examples

make[2]: Leaving directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/canlib/examples’
make[1]: Leaving directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/canlib’
make -C linlib
make[1]: Entering directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/linlib’
make[1]: Nothing to be done for ‘all’.
make[1]: Leaving directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/linlib’
make[1]: Entering directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/common’

building kvcommon
Kernel src: /lib/modules/5.15.122-rt-tegra/build
make -C /lib/modules/uname -r/build M=/home/adas_coe/Downloads/kvaser-linuxcan-master/common modules
make[2]: Entering directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/common’
make[2]: *** /lib/modules/5.15.122-rt-tegra/build: No such file or directory. Stop.
make[2]: Leaving directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/common’
make[1]: *** [/home/adas_coe/Downloads/kvaser-linuxcan-master/common/…/config.mak:172: kv_module] Error 2
make[1]: Leaving directory ‘/home/adas_coe/Downloads/kvaser-linuxcan-master/common’
make: *** [Makefile:147: common] Error 2

Dear @j.bhargav
Made the post visible per your communication via private message.
May I know the DRIVE OS release details.

Does directory gets created with make? or you need to set kernel source? If so, please see Compiling the Kernel (Kernel 5.15) | NVIDIA Docs helps?

when we run the make command build directory is not created.
What does it mean to set the kernel source. if I follow the steps what would be the implications?

Does using sudo make works?

No @SivaRamaKrishnaNV

Can you please provide update on this @SivaRamaKrishnaNV

@SivaRamaKrishnaNV could you please provide further update on the issue.

Is Cannot file Kernel Header Package for 5.15.122-rt-tegra related to same task?

Dear @arpit.agarkar,
Do you have any update on this issue?

The issue is resolved @SivaRamaKrishnaNV

1 Like

Dear @arpit.agarkar ,
Could you please share the followed steps to benefit others in community.

I basically copied the kernel folder from the container to the Target and then linked the same so that the kvaser driver compilation will take that kernel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.