Discussion:
Kvaser USB CAN II support in Linux Kernel
Olivier Sobrie
2014-08-26 12:19:55 UTC
Permalink
Hi Jeremy,
Hello gentlemen,
=20
I've been working on a project recently with an embedded linux device=
that
needs to interface with a J1939/N2K bus. =A0For initial bring-up, I'm=
using a
Kvaser USB CAN II device. =A0I recently found this thread (http://
comments.gmane.org/gmane.network.socketcan.user/1445) that was very h=
elpful to
get the kernel to recognize the device and properly create the can0/1=
devices.
=A0Where can I join the discussion/mailing list as it seems to have b=
een shutdown
or moved recently? =A0I also may be able to help contribute to the di=
scussion and
/or help with additional work on this driver as I have a vested inter=
est in
getting this all running.
The linux-can mailing list (linux-***@vger.kernel.org) is the right pla=
ce
to discuss such things.

Concerning the support for your device, as Pierre stated in the thread,
there are two families of Kvaser devices: "leaf" and "usbII".
Currently only the "leaf" family is supported by the driver in the kern=
el.
Pierre did a copy of kvaser_usb.c and adapted it to make it work with w=
ork
_only_ "usbII" devices. He sent the adapted driver as an attachment
(kvaser_usb2.c).

If you compare the two drivers (kvaser_usb2.c and kvaser_usb.c), you wi=
ll
see that there are not a lot of differences between the two. I think
the best would be to adapt kvaser_usb.c to support both "leaf" and "usb=
II"
devices.
I've one such device at home but I have not had the time yet to have a =
look
at this... So if you want to adapt the driver, you're welcome :-)

Kind regards,

--=20
Olivier
--
To unsubscribe from this list: send the line "unsubscribe linux-can" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...