Discussion:
[etherlab-users] Xenomai 3 and RTDM's Net drivers.
Edouard Tisserant
2018-10-07 16:05:00 UTC
Permalink
Hello EtherLab users !

EtherLab's EtherCAT master is being ported to Xenomai 3, and this is now
getting ready :

https://hg.beremiz.org/etherlabmaster/

I also added a new device : devices/rtdmnet.c. It is really similar to
devices/generic.c, but it uses RTDM's Net drivers instead of Linux
drivers. This new device still needs fixing, and only works in idle mode
for now - working on a fix right now.

Pre-existing devices/*.c haven't been tested. My current test bench is a
freescale imx6, with xenomai 3.0.7, using RTDM's FEC driver. Feedback
from other targets/devices would be welcome.

@Florian : keeping compatibility with Xenomai2's RTDM wasn't a priority,
and I only focused on porting to Xenomai 3. Maybe is it still possible
to be compatible using #ifdefs. If this or anything else prevents you to
merge, please tell.

Best regards,

Edouard Tisserant
Edouard Tisserant
2018-10-08 21:53:21 UTC
Permalink
Post by Edouard Tisserant
I also added a new device : devices/rtdmnet.c. It is really similar to
devices/generic.c, but it uses RTDM's Net drivers instead of Linux
drivers. This new device still needs fixing, and only works in idle mode
for now - working on a fix right now.
Now fixed.

EtherLab master over real-time Ethernet drivers from Xenomai 3 just works !

For the record, and in case anyone would want to reproduce the
experiment on I.mx6 with real-time FEC driver, patches for Xenomai
3.0.7 to enable and fix FEC driver are attached. Tested with Linux
4.9.51.

Best regards

Edouard Tisserant
Joonyoung Shim
2018-11-14 03:05:40 UTC
Permalink
Hi Edouard,
Post by Edouard Tisserant
Hello EtherLab users !
EtherLab's EtherCAT master is being ported to Xenomai 3, and this is now
https://hg.beremiz.org/etherlabmaster/
I also added a new device : devices/rtdmnet.c. It is really similar to
devices/generic.c, but it uses RTDM's Net drivers instead of Linux
drivers. This new device still needs fixing, and only works in idle mode
for now - working on a fix right now.
Pre-existing devices/*.c haven't been tested. My current test bench is a
freescale imx6, with xenomai 3.0.7, using RTDM's FEC driver. Feedback
from other targets/devices would be welcome.
@Florian : keeping compatibility with Xenomai2's RTDM wasn't a priority,
and I only focused on porting to Xenomai 3. Maybe is it still possible
to be compatible using #ifdefs. If this or anything else prevents you to
merge, please tell.
I tried also to support RTDM of Xenomai3 and to keep compatibility with
Xenomai2. I have tested on xenomai 3.0.5 over it is working well. You
can refer my patch attached. It is based on the unofficial patchset to
version 20180622 of Gavin.

Thanks.
Edouard Tisserant
2018-11-14 20:52:42 UTC
Permalink
Hi Joonyoung

That's a pitty. I didn't know about your pre-existing Xenomai 3 support
patch. I should have insisted on googling "EtherLAB + Xenomai 3".

Our two implementations differ in many ways, and are based on different
branches. Not sure there is a merge possible.

Is Gavin's patchset supposed to merge in upstream at some point ?

Regards,

Edouard
Post by Joonyoung Shim
Hi Edouard,
Post by Edouard Tisserant
Hello EtherLab users !
EtherLab's EtherCAT master is being ported to Xenomai 3, and this is now
https://hg.beremiz.org/etherlabmaster/
I also added a new device : devices/rtdmnet.c. It is really similar to
devices/generic.c, but it uses RTDM's Net drivers instead of Linux
drivers. This new device still needs fixing, and only works in idle mode
for now - working on a fix right now.
Pre-existing devices/*.c haven't been tested. My current test bench is a
freescale imx6, with xenomai 3.0.7, using RTDM's FEC driver. Feedback
from other targets/devices would be welcome.
@Florian : keeping compatibility with Xenomai2's RTDM wasn't a priority,
and I only focused on porting to Xenomai 3. Maybe is it still possible
to be compatible using #ifdefs. If this or anything else prevents you to
merge, please tell.
I tried also to support RTDM of Xenomai3 and to keep compatibility with
Xenomai2. I have tested on xenomai 3.0.5 over it is working well. You
can refer my patch attached. It is based on the unofficial patchset to
version 20180622 of Gavin.
Thanks.
Joonyoung Shim
2018-11-15 01:02:54 UTC
Permalink
Post by Edouard Tisserant
Hi Joonyoung
That's a pitty. I didn't know about your pre-existing Xenomai 3 support
patch. I should have insisted on googling "EtherLAB + Xenomai 3".
Sorry for that, i missed out to post the patch on ML.

I also could not find try to support Xenomai 3 except below mails,

http://lists.etherlab.org/pipermail/etherlab-dev/2016/000529.html
http://lists.etherlab.org/pipermail/etherlab-dev/2016/000531.html
Post by Edouard Tisserant
Our two implementations differ in many ways, and are based on different
branches. Not sure there is a merge possible.
Is Gavin's patchset supposed to merge in upstream at some point ?
I'm not sure, does anyone know about development and maintenance policy
of etherlab master?

Thanks.
Post by Edouard Tisserant
Regards,
Edouard
Post by Joonyoung Shim
Hi Edouard,
Post by Edouard Tisserant
Hello EtherLab users !
EtherLab's EtherCAT master is being ported to Xenomai 3, and this is now
https://hg.beremiz.org/etherlabmaster/
I also added a new device : devices/rtdmnet.c. It is really similar to
devices/generic.c, but it uses RTDM's Net drivers instead of Linux
drivers. This new device still needs fixing, and only works in idle mode
for now - working on a fix right now.
Pre-existing devices/*.c haven't been tested. My current test bench is a
freescale imx6, with xenomai 3.0.7, using RTDM's FEC driver. Feedback
from other targets/devices would be welcome.
@Florian : keeping compatibility with Xenomai2's RTDM wasn't a priority,
and I only focused on porting to Xenomai 3. Maybe is it still possible
to be compatible using #ifdefs. If this or anything else prevents you to
merge, please tell.
I tried also to support RTDM of Xenomai3 and to keep compatibility with
Xenomai2. I have tested on xenomai 3.0.5 over it is working well. You
can refer my patch attached. It is based on the unofficial patchset to
version 20180622 of Gavin.
Thanks.
Loading...