Skip to contentSkip to conversation

problem with installation

Xenomai-help Nicola Pezzotti 5 participants 16 messages Aug 16, 2006 – Aug 17, 2006

lore
Share & tools
lore
#0 lore raw

Hi all.

I'm trying to install Xenomai on my pc.
To do that I'm following this guide http://www.captain.at/xenomai-2.1-installation.php

I'm using Kubuntu 6.6, linux-2.6.17 kernel and xenomai-2.2.0

I have runned the script prepare-kernel.sh with the correct option as in README.INSTALL

Everything go well untill I reboot the system, then I have those errors

Uncompressing Linux... ok, booting the kernel
MP-BIOS bug 8254 timer not connected to IO-APIC
Xenomai: incompatible timer mode(aperiodic found, need aperiodic)
Xenomai: VxWorks skin init failed code -16
Kernel Panic - not syncing: VFS Unable to mount root fs on unknow -block(0,0)

Someone can give me an help? where I can found an official installation guide

(Sorry for my bad english)
Thanks

#1 lore raw

I had similar problems installing xenomai when I had seperate / and /boot partitions. When I configured the system with no /boot partition, it work fine.
-Brandt

Quoted 34 lines

Hi all.

I'm trying to install Xenomai on my pc.
To do that I'm following this guide
http://www.captain.at/xenomai-2.1-installation.php

I'm using Kubuntu 6.6, linux-2.6.17 kernel and xenomai-2.2.0

I have runned the script prepare-kernel.sh with the correct option as in README.INSTALL

Everything go well untill I reboot the system, then I have those errors

Uncompressing Linux... ok, booting the kernel
MP-BIOS bug 8254 timer not connected to IO-APIC
Xenomai: incompatible timer mode(aperiodic found, need aperiodic)
Xenomai: VxWorks skin init failed code -16
Kernel Panic - not syncing: VFS Unable to mount root fs on unknow
-block(0,0)

Someone can give me an help? where I can found an official installation guide

(Sorry for my bad english)
Thanks

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#4 lore raw
In reply to Nicola Pezzotti
Quoted 10 lines · Nicola Pezzotti

Hi all.
I'm trying to install Xenomai on my pc.
To do that I'm following this guide
http://www.captain.at/xenomai-2.1-installation.php
I'm using Kubuntu 6.6, linux-2.6.17 kernel and xenomai-2.2.0 I have runned the script prepare-kernel.sh with the correct option as in README.INSTALL
Everything go well untill I reboot the system, then I have those errors

Quoted 3 lines

Uncompressing Linux... ok, booting the kernel
MP-BIOS bug 8254 timer not connected to IO-APIC
Xenomai: incompatible timer mode(aperiodic found, need aperiodic)

                                                         ^^^^^^^^^

I guess this this is a typo, isn't it? I would expect "periodic" here.

Quoted 3 lines

Xenomai: VxWorks skin init failed code -16
Kernel Panic - not syncing: VFS Unable to mount root fs on unknow -block(0,0)

The VxWorks skin requires periodic timer mode. If you don't plan to use it, drop it from the kernel config . If you do want it, either set CONFIG_XENO_OPT_TIMING_PERIOD to some reasonable value (see also the related kernel-config help), or turn the nucleus into a module and pass the period via the module parameter "tick_arg" when insmod'ing xeno_nucleus later.

Quoted 5 lines

Someone can give me an help? where I can found an official installation guide
(Sorry for my bad english)
Thanks

README.INSTALL and TROUBLESHOOTING are the official guides. For the
rest: you are already on the right list. ;)

Jan

#2 lore raw
In reply to Brandt Erickson
Quoted 3 lines · Brandt Erickson

I had similar problems installing xenomai when I had seperate / and /boot partitions. When I configured the system with no /boot partition, it work fine.

Good that someone read the real error...

Was this issues related to Xenomai or the Adeos patch? Or were there just some drivers missing in the kernel directly or initfs?

It is typically fine to derive the Xenomai kernel .config from an existing one (e.g. that your your distro), just switching of the features listed as problematic.

Jan

Quoted 43 lines

-Brandt

Quoted 26 lines

Hi all.

I'm trying to install Xenomai on my pc.
To do that I'm following this guide
http://www.captain.at/xenomai-2.1-installation.php

I'm using Kubuntu 6.6, linux-2.6.17 kernel and xenomai-2.2.0

I have runned the script prepare-kernel.sh with the correct option as in README.INSTALL

Everything go well untill I reboot the system, then I have those errors

Uncompressing Linux... ok, booting the kernel
MP-BIOS bug 8254 timer not connected to IO-APIC
Xenomai: incompatible timer mode(aperiodic found, need aperiodic)
Xenomai: VxWorks skin init failed code -16
Kernel Panic - not syncing: VFS Unable to mount root fs on unknow
-block(0,0)

Someone can give me an help? where I can found an official installation guide

Quoted 8 lines

(Sorry for my bad english)
Thanks

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#5 lore raw
In reply to Jan Kiszka

Alle 21:18, mercoledì 16 agosto 2006, Jan Kiszka ha scritto:

Quoted 11 lines
Quoted 10 lines · Nicola Pezzotti

Hi all.
I'm trying to install Xenomai on my pc.
To do that I'm following this guide
http://www.captain.at/xenomai-2.1-installation.php
I'm using Kubuntu 6.6, linux-2.6.17 kernel and xenomai-2.2.0 I have runned the script prepare-kernel.sh with the correct option as in README.INSTALL
Everything go well untill I reboot the system, then I have those errors

Quoted 6 lines
Quoted 3 lines

Uncompressing Linux... ok, booting the kernel
MP-BIOS bug 8254 timer not connected to IO-APIC
Xenomai: incompatible timer mode(aperiodic found, need aperiodic)

                                                         ^^^^^^^^^

I guess this this is a typo, isn't it? I would expect "periodic" here.

Sorry
Xenomai: incompatible timer mode(aperiodic found, need periodic)

Quoted 11 lines
Quoted 3 lines

Xenomai: VxWorks skin init failed code -16
Kernel Panic - not syncing: VFS Unable to mount root fs on unknow -block(0,0)

The VxWorks skin requires periodic timer mode. If you don't plan to use it, drop it from the kernel config . If you do want it, either set CONFIG_XENO_OPT_TIMING_PERIOD to some reasonable value (see also the related kernel-config help), or turn the nucleus into a module and pass the period via the module parameter "tick_arg" when insmod'ing xeno_nucleus later.

I need VxWorks skin... can you give me an hint abount this configuration? in what part of installation I must this flag?

Sorry but I'm newbie in this procedure

Quoted 9 lines
Quoted 4 lines

Someone can give me an help? where I can found an official installation guide
(Sorry for my bad english)
Thanks

README.INSTALL and TROUBLESHOOTING are the official guides. For the
rest: you are already on the right list. ;)

Jan

very very very thanks for the help

#6 lore raw
Quoted 33 lines · Nicola Pezzotti

Alle 21:18, mercoledì 16 agosto 2006, Jan Kiszka ha scritto:

Quoted 11 lines
Quoted 10 lines · Nicola Pezzotti

Hi all.
I'm trying to install Xenomai on my pc.
To do that I'm following this guide
http://www.captain.at/xenomai-2.1-installation.php
I'm using Kubuntu 6.6, linux-2.6.17 kernel and xenomai-2.2.0 I have runned the script prepare-kernel.sh with the correct option as in README.INSTALL
Everything go well untill I reboot the system, then I have those errors

Quoted 5 lines
Quoted 3 lines

Uncompressing Linux... ok, booting the kernel
MP-BIOS bug 8254 timer not connected to IO-APIC
Xenomai: incompatible timer mode(aperiodic found, need aperiodic)

                                                         ^^^^^^^^^

I guess this this is a typo, isn't it? I would expect "periodic" here.

Sorry
Xenomai: incompatible timer mode(aperiodic found, need periodic)

Quoted 10 lines
Quoted 3 lines

Xenomai: VxWorks skin init failed code -16
Kernel Panic - not syncing: VFS Unable to mount root fs on unknow -block(0,0)

The VxWorks skin requires periodic timer mode. If you don't plan to use it, drop it from the kernel config . If you do want it, either set CONFIG_XENO_OPT_TIMING_PERIOD to some reasonable value (see also the related kernel-config help), or turn the nucleus into a module and pass the period via the module parameter "tick_arg" when insmod'ing xeno_nucleus later.

Quoted 2 lines

I need VxWorks skin... can you give me an hint abount this configuration? in what part of installation I must this flag?

When you configure your kernel, watch out for Xenomai->Timing->"Use periodic timer hardware" and "Time period". However, I guess this will not solve the other issue.

Jan

#3 lore raw
In reply to Jan Kiszka
Quoted 10 lines

Good that someone read the real error...

Was this issues related to Xenomai or the Adeos patch? Or were there just some drivers missing in the kernel directly or initfs?

It is typically fine to derive the Xenomai kernel .config from an existing one (e.g. that your your distro), just switching of the features listed as problematic.

Jan

The setup I'm using is ubuntu 6.06 on an Athlon XP 2100+. As to whether it was adeos or xenomai that causes/caused the error I can't say. I compiled the kernel using the ubuntu kernel configuration as a base and enabling periodic timer support. When the system had grub installed on a separate boot partition, I got that same error when trying to boot from the xenomai version of the kernel. However, when there was no boot partition, the system booted just fine. I used the same .deb in both cases, so that was the only difference in setup.

Consequently, when the system had a separate boot partition but period timer support was not enabled, it also booted just fine. However, I need the timer for my work so that wasn't particularly useful for me. -Brandt

#7 lore raw
In reply to Jan Kiszka

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.

#8 lore raw
Quoted 17 lines · Brandt Erickson

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
Quoted 5 lines

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.

Are you sure the attached config matches the real system? It has the timer tick set to 1 ns(!), so your box should rather lock up on boot.

Jan

#9 lore raw
In reply to Brandt Erickson
Quoted 17 lines · Brandt Erickson

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
Quoted 5 lines

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).

Quoted 4 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#10 lore raw
Quoted 20 lines · Philippe Gerum
Quoted 19 lines · Brandt Erickson

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.

Quoted 8 lines
Quoted 3 lines

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.

Jan

#11 lore raw
Quoted 25 lines · Jan Kiszka
Quoted 24 lines · Philippe Gerum
Quoted 22 lines · Brandt Erickson

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.

Quoted 7 lines
Quoted 4 lines

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.

Signature · 1 line
Philippe.
#12 lore raw
Quoted 51 lines · Philippe Gerum
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Brandt Erickson

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.

Quoted 6 lines
Quoted 4 lines

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.

Quoted 3 lines

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.

That all sounds a bit fragile configuration-wise, also given that native and posix skins are on by default and that you can enable vxworks without having to switch on periodic timer support (BTW, are the other legacy RTOS skins with this dependency?).

I would suggest to enforce the later and maybe enhance the timer initialisation interface in a way that a user/skin can request to lock the mode if it only supports one. Than the latency test should fail to start, thus indicating a wrong usage. Or we "hack" periodic support over aperiodic mode, but that's a different topic.

Jan

#13 lore raw
Quoted 52 lines · Jan Kiszka
Quoted 51 lines · Philippe Gerum
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Brandt Erickson

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.

Quoted 6 lines
Quoted 4 lines

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.

Quoted 9 lines
Quoted 3 lines

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.

That all sounds a bit fragile configuration-wise, also given that native and posix skins are on by default and that you can enable vxworks without having to switch on periodic timer support (BTW, are the other legacy RTOS skins with this dependency?).

Yes. Most of traditional RTOSes deal with periodic ticks.

Quoted 3 lines

I would suggest to enforce the later and maybe enhance the timer initialisation interface in a way that a user/skin can request to lock the mode if it only supports one.

This is a LART, not a fix.

Quoted 4 lines

Than the latency test should fail to
start, thus indicating a wrong usage. Or we "hack" periodic support over aperiodic mode, but that's a different topic.

This would not be a hack, but the real fix. Keeping the periodic timing handled as a separate hw-dependent mode is the real problem and the source of fragility, which does not buy us anything now that we have a scalable aperiodic timer management code.

Quoted 2 lines

Jan

Signature · 1 line
Philippe.
#14 lore raw
Quoted 61 lines · Philippe Gerum
Quoted 51 lines · Jan Kiszka
Quoted 50 lines · Philippe Gerum
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 22 lines · Brandt Erickson

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.

Quoted 6 lines
Quoted 4 lines

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.

Quoted 8 lines
Quoted 3 lines

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.

That all sounds a bit fragile configuration-wise, also given that native and posix skins are on by default and that you can enable vxworks without having to switch on periodic timer support (BTW, are the other legacy RTOS skins with this dependency?).

Quoted 7 lines

Yes. Most of traditional RTOSes deal with periodic ticks.

Quoted 3 lines

I would suggest to enforce the later and maybe enhance the timer initialisation interface in a way that a user/skin can request to lock the mode if it only supports one.

This is a LART, not a fix.

... which need not mean it's a bad idea. Basically, it is one property of the Kconfig system. Granted, a modification of xnpod_start_timer may be skipped if we go the way below.

Quoted 11 lines
Quoted 5 lines

Than the latency test should fail to
start, thus indicating a wrong usage. Or we "hack" periodic support over aperiodic mode, but that's a different topic.

This would not be a hack, but the real fix. Keeping the periodic timing handled as a separate hw-dependent mode is the real problem and the source of fragility, which does not buy us anything now that we have a scalable aperiodic timer management code.

That requires some more thoughts I guess. I think I'll start a thread on xenomai-core.

Jan

#15 lore raw
In reply to Philippe Gerum
Quoted 19 lines · Philippe Gerum
Quoted 5 lines

That all sounds a bit fragile configuration-wise, also given that native and posix skins are on by default and that you can enable vxworks without having to switch on periodic timer support (BTW, are the other legacy RTOS skins with this dependency?).

Yes. Most of traditional RTOSes deal with periodic ticks.

Quoted 3 lines

I would suggest to enforce the later and maybe enhance the timer initialisation interface in a way that a user/skin can request to lock the mode if it only supports one.

This is a LART, not a fix.

Quoted 4 lines

Than the latency test should fail to
start, thus indicating a wrong usage. Or we "hack" periodic support over aperiodic mode, but that's a different topic.

Quoted 4 lines

This would not be a hack, but the real fix. Keeping the periodic timing handled as a separate hw-dependent mode is the real problem and the source of fragility, which does not buy us anything now that we have a scalable aperiodic timer management code.

It sounds a bit complicated. vxworks emulator can run over aperiodic mode directly: the only requirement is to use tickRateGet() instead of assuming that this function always returns 100. I guess the same goes for other emulators.

Signature · 1 line
					    Gilles Chanteperdrix.