{"id":29049321,"url":"https://github.com/astuff/kvaser-linuxcan","last_synced_at":"2025-06-26T19:08:29.301Z","repository":{"id":41274580,"uuid":"186718603","full_name":"astuff/kvaser-linuxcan","owner":"astuff","description":"Copy of Kvaser Linux Drivers and SDK from https://kvaser.com/download/","archived":false,"fork":false,"pushed_at":"2023-01-09T15:27:58.000Z","size":7344,"stargazers_count":6,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-12-11T23:00:48.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astuff.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-15T00:09:56.000Z","updated_at":"2023-09-22T09:41:28.000Z","dependencies_parsed_at":"2023-02-08T12:30:30.377Z","dependency_job_id":null,"html_url":"https://github.com/astuff/kvaser-linuxcan","commit_stats":null,"previous_names":[],"tags_count":29,"template":null,"template_full_name":null,"purl":"pkg:github/astuff/kvaser-linuxcan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astuff%2Fkvaser-linuxcan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astuff%2Fkvaser-linuxcan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astuff%2Fkvaser-linuxcan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astuff%2Fkvaser-linuxcan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astuff","download_url":"https://codeload.github.com/astuff/kvaser-linuxcan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astuff%2Fkvaser-linuxcan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262128872,"owners_count":23263350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T19:08:25.848Z","updated_at":"2025-06-26T19:08:29.290Z","avatar_url":"https://github.com/astuff.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"/*\n**             Copyright 2017 by Kvaser AB, Molndal, Sweden\n**                         http://www.kvaser.com\n**\n** This software is dual licensed under the following two licenses:\n** BSD-new and GPLv2. You may use either one. See the included\n** COPYING file for details.\n**\n** License: BSD-new\n** ==============================================================================\n** Redistribution and use in source and binary forms, with or without\n** modification, are permitted provided that the following conditions are met:\n**     * Redistributions of source code must retain the above copyright\n**       notice, this list of conditions and the following disclaimer.\n**     * Redistributions in binary form must reproduce the above copyright\n**       notice, this list of conditions and the following disclaimer in the\n**       documentation and/or other materials provided with the distribution.\n**     * Neither the name of the \u003corganization\u003e nor the\n**       names of its contributors may be used to endorse or promote products\n**       derived from this software without specific prior written permission.\n**\n** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n** BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER\n** IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n** POSSIBILITY OF SUCH DAMAGE.\n**\n**\n** License: GPLv2\n** ==============================================================================\n** This program is free software; you can redistribute it and/or modify\n** it under the terms of the GNU General Public License as published by\n** the Free Software Foundation; either version 2 of the License, or\n** (at your option) any later version.\n**\n** This program is distributed in the hope that it will be useful,\n** but WITHOUT ANY WARRANTY; without even the implied warranty of\n** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n** GNU General Public License for more details.\n**\n** You should have received a copy of the GNU General Public License\n** along with this program; if not, write to the Free Software\n** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\n**\n**\n** IMPORTANT NOTICE:\n** ==============================================================================\n** This source code is made available for free, as an open license, by Kvaser AB,\n** for use with its applications. Kvaser AB does not accept any liability\n** whatsoever for any third party patent or other immaterial property rights\n** violations that may result from any usage of this source code, regardless of\n** the combination of source code and various applications that it can be used\n** in, or with.\n**\n** -----------------------------------------------------------------------------\n*/\n\n\n- Linux drivers for Kvaser PCIeFD, PCIcan, PCIcanII, USBcanII,\n  Leaf and Mhydra -\n\n  Interface   Product                  Driver Name\n -----------+------------------------+-------------\n  USB         Leaf Light               leaf\n              Leaf Light v2\n              Leaf SemiPro\n              Leaf Professional\n              Memorator Professional\n              BlackBird\n -----------+------------------------+-------------\n  miniPCIe    Mini PCI Express HS      leaf\n              Mini PCI Express 2xHS\n -----------+------------------------+-------------\n  miniPCIe    Mini PCI Express HS v2   pciefd\n              Mini PCI Express 2xHS v2\n -----------+------------------------+-------------\n  USB         Eagle                    mhydra\n              BlackBird v2\n              BlackBird Pro HS v2\n              Hybrid 2xCAN/LIN\n              Hybrid CAN/LIN\n              Hybrid Pro 2xCAN/LIN\n              Hybrid Pro CAN/LIN\n              Leaf Pro HS v2\n              Memorator 2xHS v2\n              Memorator Light HS v2\n              Memorator Pro 2xHS v2\n              Memorator Pro 5xHS\n              USBcan Light 4xHS\n              USBcan Pro 2xHS v2\n              USBcan Pro 4xHS\n              USBcan Pro 5xHS\n              U100\n              U100P\n              U100S\n -----------+------------------------+-------------\n  USB         USBcanII                 usbcanII\n              Memorator\n -----------+------------------------+-------------\n  PCI         PCIcan                   pcican\n              PCIcanx\n -----------+------------------------+-------------\n  PCIe        PCIEcan HS               pcican\n              PCIEcan HS/HS\n -----------+------------------------+-------------\n  PCIe        PCIEcan HS v2            pciefd\n              PCIEcan 2xHS v2\n              PCIEcan 4xHS\n -----------+------------------------+-------------\n  PCI         PC104                    pcicanII\n              PC104+\n              PCIcan II\n              PCIcanx II\n -----------+------------------------+-------------\n\n\nSystem requirements:\n\n* Linux 2.6.29 or later\n* Header files and compiler for kernel compilation.\n  In Ubuntu 14.04 e.g. this is accomplished by issuing the command:\n\n    \"sudo apt-get install build-essential\"\n\n  On some systems you may also need to issue:\n\n    \"sudo apt-get install linux-headers-`uname -r`\"\n\n  NOTE! Having versions of the linux headers installed other than that of\n        the currently running kernel may cause conflicts and faulty drivers.\n\n* DKMS if you want to the drivers to be built whenever the kernel is upgraded.\n  To install dkms on Ubuntu:\n\n    \"sudo apt-get install dkms\"\n\n\nCompilation:\n\n  NOTE! Choose a path that doesn't contain any spaces for CANlib to build properly.\n\n* To build all drivers:\n\n    \"make\"\n\n  To install all drivers:\n\n    \"sudo make install\"\n\n  Note: it is advised to call \"sudo make uninstall\" before replacing installed\n        drivers.\n\n  To unload and uninstall all drivers:\n    \"sudo make uninstall\"\n\n  To install and load, virtual and PCI drivers:\n    \"sudo make load\"\n\n  Note: running \"sudo make load\" will also cause the virtual and PCI drivers to\n        be loaded at boot time. This might be bad if experimenting with the\n        device drivers.\n\n  Note: it is never required to manually install or load any modules, create or\n        edit files. This is taken care of the Makefile, in the root of the\n        linuxcan directory.\n\n  Note: if there are multiple versions of linuxcan installed for different linux\n        headers, it is possible to remove them all by calling \"sudo make purge\".\n\n  Another way to install CANlib is by using DKMS which automatically recompiles\n  and reinstalls the CANlib drivers after a kernel upgrade.\n\n  To build and install CANlib and all drivers using DKMS:\n\n    \"make dkms\"\n\n    \"sudo make dkms_install\"\n\n  Note: this requires you to have dkms installed.\n\n  To uninstall CANlib and to unload and uninstall all linuxcan DKMS modules:\n\n    \"sudo make dkms_uninstall\"\n\n* To build just a single driver, go to the corresponding subdirectory:\n\n    \"make\"\n    \"sudo ./installscript.sh\"\n\n  Note: All device drivers use the kvcommon driver. If you want to build and\n        install only particular device drivers, you will first need to build and\n        install the kvcommon driver from the linuxcan/common directory using the\n        method above.\n\n* To build and load just a single driver (virtual or PCI), go to the\n  corresponding subdirectory:\n\n    \"make\"\n    \"sudo ./installscript.sh load\"\n\n  Note: See the note above, regarding the kvcommon driver.\n\n* To build with debug printouts, and include gdb debug information on generated binaries:\n\n    \"make KV_DEBUG_ON=1\"\n\nDebug levels and some other settings may be changed in config.mak.\n\n\nUsage:\n\n* USBcanII, Leaf and Mhydra will load/unload when inserting/removing the device\n* For PCI-drivers (pciefd, pcican, and pcicanII), use modprobe to load and\n  unload the drivers, e.g.:\n    \"modprobe pcican\" to load pcican driver, and\n    \"modprobe -r pcican\" unload pcican driver.\n* Try examples in /usr/doc/canlib/examples/\n\nNOTE! Please read ReleaseNotes before using the driver.\n\n\nTroubleshooting:\n\n* See doc/faq\n\n\nInstalled Files:\n\n* Driver modules\n----------------------------------\n/lib/modules/`uname -r`/kernel/drivers/char/kvpciefd.ko     (PCIEcan)\n/lib/modules/`uname -r`/kernel/drivers/char/kvpcican.ko     (PCIcan)\n/lib/modules/`uname -r`/kernel/drivers/char/kvpcicanII.ko   (PCIcanII)\n/lib/modules/`uname -r`/kernel/drivers/char/kvvirtualcan.ko (Virtualcan)\n/lib/modules/`uname -r`/kernel/drivers/usb/misc/usbcanII.ko (USBcanII)\n/lib/modules/`uname -r`/kernel/drivers/usb/misc/leaf.ko     (Leaf)\n/lib/modules/`uname -r`/kernel/drivers/usb/misc/mhydra.ko   (Mhydra)\n\n* Module setup\n----------------------------------\nOn CentOS, RedHat, RHEL, Fedora and simlar systems, the following lines are\nadded to /etc/modprobe.conf, on Debian, Ubuntu, Trisquel and similar systems\nthey are added to /etc/modprobe.d/kvaser.conf.\n\nfor PCIEcan:\n\n    alias pciefd kvpciefd\n    install kvpciefd /usr/sbin/pciefd.sh start\n    remove kvpciefd /usr/sbin/pciefd.sh stop\n\nfor PCIcan:\n\n    alias pcican kvpcican\n    install kvpcican /usr/sbin/pcican.sh start\n    remove kvpcican /usr/sbin/pcican.sh stop\n\nfor PCIcan II:\n\n    alias pcicanII kvpcicanII\n    install kvpcicanII /usr/sbin/pcicanII.sh start\n    remove kvpcicanII /usr/sbin/pcicanII.sh stop\n\nfor Virtualcan:\n\n    alias virtualcan kvvirtualcan\n    install kvvirtualcan /usr/sbin/virtualcan.sh start\n    remove kvvirtualcan /usr/sbin/virtualcan.sh stop\n\nIn the same files, the following lines are added to blacklist SocketCAN:\n\n    blacklist kvaser_usb\n    blacklist kvaser_pci\n    blacklist kvaser_pciefd\n\n* Module loading\n----------------------------------\n/usr/sbin/pciefd.sh      (start/stop pciefd driver;      by modprobe or manually)\n/usr/sbin/pcican.sh      (start/stop pcican driver;      by modprobe or manually)\n/usr/sbin/pcicanII.sh    (start/stop pcicanII driver;    by modprobe or manually)\n/usr/sbin/virtualcan.sh  (start/stop virtualcan driver;  by modprobe or manually)\n/usr/sbin/usbcanII.sh    (start/stop usbcanII driver;    by udev or manually)\n/usr/sbin/leaf.sh        (start/stop leaf driver;        by udev or manually)\n/usr/sbin/mhydra.sh      (start/stop mhydra driver;      by udev or manually)\n\n* Module loading at boot\n----------------------------------\nIf the modules are installed with \"sudo make load\", the virtual and the PCI\ndrivers are added to /etc/modules-load.d/kvaser.conf. This will cause the\nmodules to be loaded at boot time.\n\n* udev rules\n----------------------------------\n/etc/udev/rules.d/10-kvaser.rules\n\n* Include files for canlib library\n----------------------------------\n/usr/include/canlib.h\n/usr/include/canstat.h\n\n* Canlib library and links\n----------------------------------\n/usr/lib/libcanlib.so\n/usr/lib/libcanlib.so.1.1.0\n/usr/lib/libcanlib.so.1\n\n* Canlib documentation\n----------------------------------\n/usr/doc/canlib/HTMLhelp\n\n* Canlib examples\n----------------------------------\n/usr/doc/canlib/examples\n\n* Canlib Makefile template\n----------------------------------\n/usr/doc/canlib/examples/Makefile\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastuff%2Fkvaser-linuxcan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastuff%2Fkvaser-linuxcan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastuff%2Fkvaser-linuxcan/lists"}