Dear Romeo, On Thursday 29 of October 2020 08:02:08 Romeo Sansaet wrote: > I would like to ask a few questions regarding your project "QEMU CAN > Controller Emulation with Connection to a Host System CAN Bus." > > Is this project limited to Kvaser PCI only? > Can I use another PCI instead of Kvaser? If yes, can you give me some main > points on how I can achieve this? > > I am new to this concept and I would really appreciate your answers. > Reference: > http://rtime.felk.cvut.cz/publications/public/rtlws2015-qemu-can.pdf
The project is now mainlined in QEMU. Documentation there https://git.qemu.org/?p=qemu.git;a=blob;f=docs/can.txt as for the RTIME reference, it is dead link and even whole site from my point of view owned by IIG/IIRC Industrial Research Center now, I was only one who invested time to the CAN QEMU project there, found funding (GSoC, Volkswagen, only other member contribution was review of referenced article by doctor Sojka). They reference results even after actions to eliminate my influence to studnets they take. But they people have minimal knowledge in the area. So direct your questions to QEMU devel and for our faculty projects look at http://canbus.pages.fel.cvut.cz/ As for the project, actual version supports multiple SJA1000 based PCI cards, actual setup of QEMU parameters differs from the old presentation and article, complete QEMU object model has been introduced thanks to help of Paolo Bonzini and other QEMU core developers. The Kvaser is good target, because it is supported by mainline Linux kernel for many years and I have lot of experience with it, SocketCAN driver is based on my LinCAN work https://elixir.bootlin.com/linux/latest/source/drivers/net/can/sja1000/kvaser_pci.c Addition of more SJA1000 based PCI cards is relatively easy. There already PCM-3680I, MIOe-3680 supported. Addition of platform bus (device tree) based integration of SJA1000 is for small (ideally funded or some studnet work) project. Emulation of another controller is a bigger project. I think I would find students if there is some funding available. We have added support for CTU CAN FD core recently. So it is another alternative, it provides full CAN FD support in addition and it is model of our fully open-source/open-hardware CAN FD controller design. There s well tested driver available even as DKMS. Unfortunately, it is not supported by mainline Linux kernel yet, review process takes time and responsible maintainer have not found time yet so we do our best to update patches on base of others reviews and friends comments. Best wishes, Pavel Pisa e-mail: [email protected] Department of Control Engineering FEE CVUT Karlovo namesti 13, 121 35, Prague 2 university: http://dce.fel.cvut.cz/ personal: http://cmp.felk.cvut.cz/~pisa projects: https://www.openhub.net/accounts/ppisa CAN related:http://canbus.pages.fel.cvut.cz/
