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.
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: