All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Michael Haberler <mail17@mah.priv.at>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] universal application binary: how to auto-detect	Xenomai/RT-PREEMPT/vanilla kernel
Date: Mon, 14 Jan 2013 15:07:50 +0100	[thread overview]
Message-ID: <50F41136.3070200@xenomai.org> (raw)
In-Reply-To: <3F8DFF0B-6F81-48E1-9D64-83B08DA6A599@mah.priv.at>

On 01/14/2013 01:05 PM, Michael Haberler wrote:
> Gilles,
>
> Am 14.01.2013 um 12:57 schrieb Gilles Chanteperdrix:
>
>> On 01/14/2013 09:29 AM, Michael Haberler wrote:
>>
>>> Hi,
>>
>>
>> Hi,
>>
>>>
>>> thanks to patience on this list we were able to build linuxcnc such
>>> that it runs on Xenomai, besides RT-PREEMPT, vanilla kernels (in a
>>> simulator/non-RT mode) and RTAI
>>>
>>>
>>> I'm planning to adapt linuxcnc such that a universal binary can be
>>> built which runs under Xenomai, RT-PREEMPT and vanilla kernels as
>>> this will simplify logistics quite a bit; what I'd like have is
>>> reliable auto-detection of the kernel type and 'do the right thing'
>>> (RTAI will remain a separate build).
>>
>>
>> I have no idea about preempt_rt, however, in order to detect xenomai,
>> you can check for /dev/rtheap. If it does not exist, xenomai programs
>> will not start anyway. Also, I guess for a universal binary, you would
>> dlopen xenomai libraries (native or posix, depending on the one you want
>> to use), if you want to do that, you have to pass --enable-dlopen-skins
>> to xenomai configure script.
>
> thanks, that is a good idea to verify the libraries are in place; I had to use --enable-dlopen-skins anyway to make Python imports happy.
>
> I'll muddle my way through some string matching to find rt-preempt running; https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO#Checking_the_Kernel gives some hints
>
> Is there any chance somebody runs Xenomai AND RT_PREEMPT patches applied? I heard a rumor but havent actually seen that

Yes, this works. The current target is ppc 85xx, but I don't see any 
showstopper for running such combo on other archs, provided the I-pipe 
patch is adapted to a -rt kernel. This requires Xenomai 2.6.1+, stock.

-- 
Philippe.


  reply	other threads:[~2013-01-14 14:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14  8:29 [Xenomai] universal application binary: how to auto-detect Xenomai/RT-PREEMPT/vanilla kernel Michael Haberler
2013-01-14 11:57 ` Gilles Chanteperdrix
2013-01-14 12:05   ` Michael Haberler
2013-01-14 14:07     ` Philippe Gerum [this message]
2013-01-16  6:55       ` John Morris
2013-01-16  8:13         ` Jan Kiszka
2013-01-16  8:19           ` Gilles Chanteperdrix
2013-01-16 10:21             ` Paul
2013-01-14 12:06 ` Jan Kiszka
2013-01-14 12:16   ` Michael Haberler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50F41136.3070200@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=mail17@mah.priv.at \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.