Skip to contentSkip to conversation

imx6 flexcan

DISCUSSION Cédric Chépied 2 participants 4 messages Jan 19, 2024 – Jan 23, 2024

lore
Share & tools
lore
#0 lore raw

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,

Signature · 4 lines
Cédric Chépied
<[email protected]>

<http://events.drotek.com/>
#1 lore raw
Quoted 4 lines · Cédric Chépied

Hi,

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

Quoted 8 lines

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.

Signature · 1 line
Philippe.
#2 lore raw
Quoted 2 lines · Philippe Gerum

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

Socket Interface is under construction.

Quoted 4 lines

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.

Signature · 4 lines
Cédric Chépied
<[email protected]>

<http://events.drotek.com/>
#3 lore raw
Quoted 6 lines · Cédric Chépied
Quoted 2 lines · Philippe Gerum

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.

Quoted 6 lines
Quoted 4 lines

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.

Signature · 1 line
Philippe.