How to import Kvase_usb (USB Pro 2)

Which Khadas SBC do you use?


Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu Bionic 18.04 (kernel khadas-vims-4.9.y) - eMMC

Which version of system do you use? Khadas official images, self built images, or others?

Built image

Please describe your issue below:

When I build kernel via link, there are no Kvaser USBcan Pro 2xHS v2, Kvaser USBcan Pro 5xHS and other Kvaser driver.

In fenix/build/linux/drivers/net/can/usb/, I added kvaser_usb directory from tovals/linux, but it’s not working. The build fails with a message saying recipe for target failed .

Is there any to add new version of kvaser source code and compile it?

Thank you.

I found the solution myself.

Just copied kvaser_usb/ from 4.19 kernel version, pasted it in fenix/build/linux/drivers/net/can/usb/

and modified fenix/build/linux/drivers/net/can/Makefile