All of lore.kernel.org
 help / color / mirror / Atom feed
* imx6 flexcan
@ 2024-01-19 17:33 Cédric Chépied
  2024-01-22 13:26 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Cédric Chépied @ 2024-01-19 17:33 UTC (permalink / raw)
  To: xenomai

Hi,

I'm running linux-evl on my imx6ul and it seems to run fine so far.

Now I want to send can data in an oob thread. I added the SOCK_OOB flag to my
socket and tried to run oob_write. It returns -1 so I think flexcan driver has
no oob capabilities.

How much work would it take to give OOB capabilities to the driver? What level
of support can I expect?

Thanks,
-- 
Cédric Chépied
<cedric.chepied@drotek.com>

<http://events.drotek.com/>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: imx6 flexcan
  2024-01-19 17:33 imx6 flexcan Cédric Chépied
@ 2024-01-22 13:26 ` Philippe Gerum
  2024-01-23 14:20   ` Cédric Chépied
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2024-01-22 13:26 UTC (permalink / raw)
  To: Cédric Chépied; +Cc: xenomai


Cédric Chépied <cedric.chepied@drotek.com> writes:

> Hi,
>
> I'm running linux-evl on my imx6ul and it seems to run fine so far.
>
> Now I want to send can data in an oob thread. I added the SOCK_OOB flag to my
> socket and tried to run oob_write. It returns -1 so I think flexcan driver has
> no oob capabilities.
>
> How much work would it take to give OOB capabilities to the driver? What level
> of support can I expect?
>
> Thanks,

Real-time driver support with EVL is documented here:
https://evlproject.org/core/oob-drivers/

There is more than just enabling an oob path for the flexcan driver,
such path should be enabled in the generic CAN stack as well for this to
work, as this was done for the generic DMA engine, the generic SPI core,
and the generic GPIO layer.

-- 
Philippe.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: imx6 flexcan
  2024-01-22 13:26 ` Philippe Gerum
@ 2024-01-23 14:20   ` Cédric Chépied
  2024-01-23 14:29     ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Cédric Chépied @ 2024-01-23 14:20 UTC (permalink / raw)
  To: xenomai

Philippe Gerum wrote:
> Real-time driver support with EVL is documented here:
> https://evlproject.org/core/oob-drivers/

Socket Interface is under construction.

> There is more than just enabling an oob path for the flexcan driver,
> such path should be enabled in the generic CAN stack as well for this to
> work, as this was done for the generic DMA engine, the generic SPI core,
> and the generic GPIO layer.

Sounds like a lot of work. Perhaps I should consider switching to Xenomai 3.

-- 
Cédric Chépied
<cedric.chepied@drotek.com>

<http://events.drotek.com/>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: imx6 flexcan
  2024-01-23 14:20   ` Cédric Chépied
@ 2024-01-23 14:29     ` Philippe Gerum
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2024-01-23 14:29 UTC (permalink / raw)
  To: Cédric Chépied; +Cc: xenomai


Cédric Chépied <cedric.chepied@drotek.com> writes:

> Philippe Gerum wrote:
>> Real-time driver support with EVL is documented here:
>> https://evlproject.org/core/oob-drivers/
>
> Socket Interface is under construction.
>

Socket is an interface, an access point. The real meat is the stack underneath.

>> There is more than just enabling an oob path for the flexcan driver,
>> such path should be enabled in the generic CAN stack as well for this to
>> work, as this was done for the generic DMA engine, the generic SPI core,
>> and the generic GPIO layer.
>
> Sounds like a lot of work. Perhaps I should consider switching to Xenomai 3.

It is a lot of work.

-- 
Philippe.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-23 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-19 17:33 imx6 flexcan Cédric Chépied
2024-01-22 13:26 ` Philippe Gerum
2024-01-23 14:20   ` Cédric Chépied
2024-01-23 14:29     ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.