We recommend that you install the drivers first, then the Kvaser CANlibSDK, and last install the hardware.
The latest versions of documentation, software and drivers can be downloaded for free at www.kvaser.com/download.
System requirements:
In Ubuntu e.g. installing header files is accomplished by issuing the command:
On some systems you may need to install the Linux headers using something like:
To download and unpack the latest drivers you may use:
Option 1. Manually build and install drivers
To build (compile) all drivers use:
sudo make uninstall
before replacing the installed drivers.To install all drivers, canlib and linlib use:
To install and load, virtual and PCI drivers:
sudo make load
will also cause the virtual and PCI drivers to be loaded at boot time. This might be bad if experimenting with the device drivers.Option 2. Build and install drivers using DKMS
Alternatively, drivers can be installed using DKMS which automatically recompiles and reinstalles the CANlib drivers after a kernel upgrade. In order to use DKMS, the same version of Linux kernel package as your kernel version needs to be installed. On Ubuntu, the correct kernel header version can be installed by:
To install DKMS on Ubuntu:
To build a DKMS tarball, use:
To add and install all drivers, canlib and linlib using DKMS:
To list all managed DKMS modules, versions and kernels within the tree as well as whether they have been added, built or installed, use:
The example output is taken from a computer running Ubuntu 16.04.7 LTS.
More information can be found in the included README file.
The driver named "virtualcan" controls the Virtual Devices. The number of channels each Virtual Device has, and the total number of Virtual Devices, is controlled by editing define statements in linuxcan\virtualcan\virtualcan.h.
Option 1. Removing manually installed driver
To unload and uninstall all drivers, canlib and linlib:
Alternatively, if there are multiple versions of the drivers installed, all of them can be removed using:
Option 2. Removing drivers installed using DKMS
To remove the installed CANlib DKMS module for all kernel versions, along with canlib and linlub, use:
System requirements:
To download and unpack the latest version of Linux SDK library use:
To build everything, run
To run self-tests, run
To install everything, run
To uninstall everything, run