[etherlab-users] How to install and use Etherlab for a Xenomaitarget

Graeme Foot GraemeF at touchcut.com
Thu Jun 20 00:42:55 CEST 2013


Hi,

 

We are using a Beckhoff CX2020 computer.  We are running it as a non-gui
controller with:

 

Linux 2.6.32.11

RTAI 3.8.1

EtherLabs 1.5.2

 

The CX2020 has two e1000e NICs for the office network.  The EtherCAT NIC
is part of the CX2100-0004 power module but this is specialised hardware
and we needed to write our own driver for it (submitted to the etherlab
forum a while ago).

 

We are building our Linux environment using Buildroot so that it is very
small.

 

 

Linux 2.6.32 does not support the graphics card for this PC but we are
running it headless so not a problem for us.  In the future we are
intending to integrate our gui onto the same PC but we are waiting on
RTAI and a few other things to come together first.

 

 

Regards,

 

Graeme Foot

 

________________________________

From: Steffen Dalgard [mailto:steffen.sint at gmail.com] 
Sent: Thursday, 20 June 2013 00:42
To: Graeme Foot
Subject: Re: [etherlab-users] How to install and use Etherlab for a
Xenomaitarget

 

Hi,

Thank you for your feedback,

We have tried to find a release supporting newer HW that has support for
Ehterlab, Ubuntu and Xenomai.

It seems to be hard ot find, maybe a dead end.

  We found working Xenomai using Ubuntu 12.04 with a patched 3.5 kernel,
but it is not supported by Etherlab

 

We do need a kernel with RT support but not necessarily Xenomai...

 

You wrote that you were using Etherlab master via RTDM, but using RTAI.

Can you share which releases / kernels that you are using?

 

Best regards

Steffen Dalgard

SINTEF ICT

Norway

 

On Thu, May 16, 2013 at 1:11 AM, Graeme Foot <GraemeF at touchcut.com>
wrote:

Boxbe <https://www.boxbe.com/overview> Graeme Foot
(GraemeF at touchcut.com) is not on your Guest List
<https://www.boxbe.com/approved-list?tc_serial=14152444570&tc_rand=26641
7122&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=
001&token=Hjk5w06MCHsim%2BkE%2BXEMZbTtwqA%2BTXXMJ7spABspVmqlfWvM7lNh80hl
UB%2F00a8M&key=eJnd8Q%2BeCThkw7PVpCigMAaxHAX%2BsHy%2FiQ0MxxEI0Ik%3D>  |
Approve sender
<https://www.boxbe.com/anno?tc_serial=14152444570&tc_rand=266417122&utm_
source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&token
=Hjk5w06MCHsim%2BkE%2BXEMZbTtwqA%2BTXXMJ7spABspVmqlfWvM7lNh80hlUB%2F00a8
M&key=eJnd8Q%2BeCThkw7PVpCigMAaxHAX%2BsHy%2FiQ0MxxEI0Ik%3D>  | Approve
domain
<https://www.boxbe.com/anno?tc_serial=14152444570&tc_rand=266417122&utm_
source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&dom&t
oken=Hjk5w06MCHsim%2BkE%2BXEMZbTtwqA%2BTXXMJ7spABspVmqlfWvM7lNh80hlUB%2F
00a8M&key=eJnd8Q%2BeCThkw7PVpCigMAaxHAX%2BsHy%2FiQ0MxxEI0Ik%3D>  

 

Hi,

 

I have a user space application connecting to the Etherlab master via
RTDM, but using RTAI.  In theory xenomai should be pretty similar.

 

If you are using the latest 1.5.2 Etherlab master you won't need a
patch.  The patch was to give partial RTDM support before it was fully
supported.

 

 

To get RTDM working you will need to specify the correct flags when
compiling the master:

  --with-xenomai-dir=<xenomai directory>

  --enable-rtdm

 

All going well you should get a library: /usr/lib/libethercat_rtdm.so

 

When compiling your application link to the library using:
-lethercat_rtdm

 

 

With RTAI you can check your application is using RTDM by calling 'cat
/proc/rtai/scheduler'.  The syscalls value should remain zero.

 

 

Regards,

Graeme Foot.

 

________________________________

From: etherlab-users-bounces at etherlab.org
[mailto:etherlab-users-bounces at etherlab.org] On Behalf Of Steffen
Dalgard
Sent: Wednesday, 15 May 2013 21:50
To: etherlab-users at etherlab.org
Subject: [etherlab-users] How to install and use Etherlab for a
Xenomaitarget

 

Hi,

We are trying to install Etherlab on a Xenomai target together with ROS
and OROCOS.

The plan is to have a user space rt-application calling the Igh master.

 

Does it exist a procedure for how to get this working?

 

I have tried to read through the mail archive and the examples, but have
only found piecewise information.

   I have found mails mentioning patching of driver connecting Etherlab
master to user space

   It seems to be special lib libetherkat_rtdm.so

 

Hope someone can help :-)

 

Best regards

Steffen Dalgard

SINTEF ICT

Norway

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20130620/465c2649/attachment-0003.htm>


More information about the Etherlab-users mailing list