I use Linux but I donât have that âlinux from scratchâ skill. So can anyone advise what is my option to get more latest changes for this particular module?
and replace it with the new built kvaser_usb.ko file. Then reboot.
This driver does not recognize the device automatically if checking on ifconfig -a, so I had to bring up the driver with:
A few commands to check ifconfig -a & lsmod | grep kvaser to see if any CAN device or kvaser driver is loaded.
To have the device show in ifconfig, you need to set up the device with baudrate. For example 500K:
sudo ip link set can0 type can bitrate 5000000
sudo ip link set up can0
If you got complain from the set up step that can0 does not exist and lsmod command did not return back with any loaded kvaser module, that means your system does not recognize the Kasver Light yet as a CAN device. My suspicion for that is because the tegra kernel for TX2 that you currently use does not have kvaser_can driver automatically loaded. So there are two other options from here.
Option 1: You said you successfully compiled the Kvaser Linux driver provided by Kvaser website. You should go ahead running some sample scripts that they provide to see if that works.
Option 2: Build the kvaser_usb module if it does not exist, but you need to remove the Kvaser driver from Kvaser website first since they may conflict to each other.
When I did this and still do now, option 2 was my only option to use with TX2 because I ran into major compiling error with the Kvaser Linux driver from Kvaser website.
yes ,it doesnât exist can0ïŒ Iâm a beginner, can you help explain how to remove kvaser driver, and how to build kvaser_usb modle. which commands and location can be used?
thanks very muchïŒ
Depends on how you installed the package, if you did âsudo make installâ for the entire driver package, Iâm not quite sure how to reverse that process easilyâŠmaybe trying âmake uninstallâ or âsudo make uninstallâ. If you installed only the driver that you need, for example âleafâ, check in the leaf folder there is a âuninstall.shâ script that you can use.
Then you can try to follow the tips here to install the kvaser_usb driver: