Due to the limit of can channels on xavier, I need to use kvaser on xavier. My kvaser type is “Kvaser USBcan Light 4xHS”, which is not in kernel_src/kernel/kernel-4.4/drivers/net/can/usb/Kconfig. So I followed the below link to update kvsaser_usb.ko.
When I ran “make”, it said “No rule to make target ‘modules’”. Looks like it is due to miss the kernel header files. My kernel version is 4.14.102-rt53-tegra. Can anyone tell me how to address this issue?
Here is my make file:
obj-m += kvaser_usb.o
make -C /lib/modules/(shell uname -r)/build M=(PWD) modules
make -C /lib/modules/(shell uname -r)/build M=(PWD) clean