All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] problem with installation
Date: Thu, 17 Aug 2006 13:31:25 +0200	[thread overview]
Message-ID: <1155814285.4366.22.camel@domain.hid> (raw)
In-Reply-To: <44E42BE3.1060709@domain.hid>

On Thu, 2006-08-17 at 10:42 +0200, Jan Kiszka wrote:
> Philippe Gerum wrote:
> > On Wed, 2006-08-16 at 16:37 -0600, Brandt Erickson wrote:
> >> So, perhaps I spoke too soon.  The system does boot, but I just looked in
> >> the syslog and found this:
> >>
> >> 16 16:08:49 dewback kernel: [4294670.201000] I-pipe: Domain Xenomai
> >> registered.
> >> Aug 16 16:08:49 dewback kernel: [4294670.201000] Xenomai: hal/x86 started.
> >> Aug 16 16:08:49 dewback kernel: [4294670.231000] Xenomai: real-time
> >> nucleus v2.2 (Engines Of Creation) loaded.
> >> Aug 16 16:08:49 dewback kernel: [4294670.232000] Xenomai: starting native
> >> API services.
> >> Aug 16 16:08:49 dewback kernel: [4294670.232000] Xenomai: starting POSIX
> >> services.
> >> Aug 16 16:08:49 dewback kernel: [4294670.232000] Xenomai: starting RTDM
> >> services.
> >> Aug 16 16:08:49 dewback kernel: [4294670.232000] Xenomai: incompatible
> >> timer mode (aperiodic found, need periodic).
> >> Aug 16 16:08:49 dewback kernel: [4294670.232000] Xenomai: VxWorks skin
> >> init failed, code -16.
> >>
> >> my .config is attached.  As far as I can tell, my timer is periodic and
> >> not aperiodic.  My kernel is 2.6.16 patched with xenomai-2.2.0 from the
> >> download page and not the trunk.
> > 
> > You need to build the native and POSIX skins as modules, so that they do
> > not override the timing mode (they both request aperiodic mode to the
> > nucleus, which conflicts with the VxWorks skin initializing after them).
> > 
> 
> Mmh, not on my test setup: once you set a reasonable period, all skins
> boot into periodic mode.

That is the point: all skins are going to use the periodic mode, but not
all applications are able to handle this. E.g. the latency test will
force the timing to oneshot using rt_timer_setmode(), but the cyclic
test won't, so you end up with funky results such as multi-ms latencies
with the latter, albeit the real figure - would the timing mode be
aperiodic as assumed - should be a handful of us. In the same vein,
running the latency test first, then VxWorks's satch demo on your config
would break the box, since the latter does not force the timing mode
back to periodic (actually, there is even no interface to do so, except
linking the VxWorks app against the native lib to get rt_timer_setmode).

Having all skins as modules (RTDM included) is the way to go whenever
using oneshot and periodic modes alternately depending on the loaded
application is required. This way, the timer is shut off upon skin
unloading, which prevents any conflict and makes sure that the next skin
will obtain the required mode. I'm not saying that such approach is
intuitive though, but only that it voids a fair number of potential
issues.

Of course, if only VxWorks is needed, then one just needs to disable the
other skins, which would also solve the issue the eager way.

-- 
Philippe.




  reply	other threads:[~2006-08-17 11:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-16 19:05 [Xenomai-help] problem with installation Nicola Pezzotti
2006-08-16 19:17 ` Brandt Erickson
2006-08-16 19:33   ` Jan Kiszka
2006-08-16 20:22     ` Brandt Erickson
2006-08-16 19:18 ` Jan Kiszka
2006-08-16 19:37   ` Nicola Pezzotti
2006-08-16 19:55     ` Jan Kiszka
2006-08-16 22:37       ` Brandt Erickson
2006-08-17  7:36         ` Jan Kiszka
2006-08-17  8:25         ` Philippe Gerum
2006-08-17  8:42           ` Jan Kiszka
2006-08-17 11:31             ` Philippe Gerum [this message]
2006-08-17 11:43               ` Jan Kiszka
2006-08-17 12:32                 ` Philippe Gerum
2006-08-17 13:10                   ` Jan Kiszka
2006-08-17 18:05                   ` Gilles Chanteperdrix

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=1155814285.4366.22.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --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.