[U-Boot] CAN console

Wolfgang Grandegger wg at grandegger.com
Mon Oct 26 13:28:17 CET 2009


Mike Frysinger wrote:
> On Monday 26 October 2009 07:09:03 Matthias Weißer wrote:
>> Mike Frysinger schrieb:
>>> On Monday 26 October 2009 04:20:02 Matthias Weißer wrote:
>>>> I have a device here which has only a CAN interface to the
>>>> outside world. I am currently thinking about implementing
>>>> a "serial" driver using the CAN controller.
>>>>
>>>> Is there any chance to get this accepted in the public u-boot
>>>> tree?
>>> someone just posted a port of the Linux CAN framework.  if your driver
>>> used that to implement a serial layer, i dont see why it wouldnt be
>>> accepted.
>> Well, that means that I have to implement a full functional CAN driver
>> and then additionally add a serial driver using the (completely new) CAN
>> framework. My idea was that I just add a serial_ccan.c to drivers/serial.
> 
> you would rather write a driver that is specific to one CAN hardware ?  
> writing it to a common framework would allow every one with a CAN driver to 
> use it ...

There are many simple USB CAN devices which are operated through the tty
interface. See

  http://prdownload.berlios.de/socketcan/SLCAN-API.pdf


Wolfgang.


More information about the U-Boot mailing list