Skip to contentSkip to conversation

Xenomai FAILED to register object

Xenomai-help Alexandre Coffignal 3 participants 5 messages Feb 9, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

I use xenomai to port PSOS application, so I am using xenomai PSOS skin, but i want to use xenomai pthread.

My question is do you know if i can use psos skin and posix skin in the same time?

I already test it without success : when I load my prog, I have this message :
Xenomai pSOS skin init: t_shadow() failed, status -17

and this message in dmess
Xenomai: FAILED to register object MAIN (unknown type), status -17

Thank in advance

Signature · 21 lines
Alexandre COFFIGNAL, Chef de Projet
Email: [email protected]
<mailto:[email protected]>
------------------------------------
CénoSYS <http://www.cenosys.com>
10, Rue Xavier Bichat
F-72000 Le MANS
Tel: +33(0) 243 511 797
web : http://www.cenosys.com
------------------------------------
CONFIDENTIALITE : Ce message électronique et tous les fichiers attachés
qu'il contient sont confidentiels et destinés exclusivement à l'usage de
la personne à laquelle ils sont adressés. Si vous avez reçu ce message
par erreur, merci de le retourner immédiatement a son émetteur sans en
conserver de copie.

CONFIDENTIALITY : This e-mail and any attachments are confidential and
may also be privileged. If you are not the named recipient, please
notify the sender immediately and do not disclose the contents to an
other person, use it for any purpose, or store or copy the information
in any medium.
#1 lore raw
Quoted 8 lines · Alexandre Coffignal

Hi all,

I use xenomai to port PSOS application, so I am using xenomai PSOS skin, but i want to use xenomai pthread.

My question is do you know if i can use psos skin and posix skin in the same time?

Quoted 6 lines

I already test it without success : when I load my prog, I have this message :
Xenomai pSOS skin init: t_shadow() failed, status -17

and this message in dmess
Xenomai: FAILED to register object MAIN (unknown type), status -17

Because the main thread is already shadowed by the posix skin. It is already a xenomai task.

Signature · 4 lines
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

Thank
I just realized my mistake, I must be very tired

Quoted 22 lines · Gilles Chanteperdrix
Quoted 8 lines · Alexandre Coffignal

Hi all,

I use xenomai to port PSOS application, so I am using xenomai PSOS skin, but i want to use xenomai pthread.

My question is do you know if i can use psos skin and posix skin in the same time?

Quoted 7 lines

I already test it without success : when I load my prog, I have this message :
Xenomai pSOS skin init: t_shadow() failed, status -17

and this message in dmess
Xenomai: FAILED to register object MAIN (unknown type), status -17

Because the main thread is already shadowed by the posix skin. It is already a xenomai task.

Signature · 21 lines
Alexandre COFFIGNAL, Chef de Projet
Email: [email protected]
<mailto:[email protected]>
------------------------------------
CénoSYS <http://www.cenosys.com>
10, Rue Xavier Bichat
F-72000 Le MANS
Tel: +33(0) 243 511 797
web : http://www.cenosys.com
------------------------------------
CONFIDENTIALITE : Ce message électronique et tous les fichiers attachés
qu'il contient sont confidentiels et destinés exclusivement à l'usage de
la personne à laquelle ils sont adressés. Si vous avez reçu ce message
par erreur, merci de le retourner immédiatement a son émetteur sans en
conserver de copie.

CONFIDENTIALITY : This e-mail and any attachments are confidential and
may also be privileged. If you are not the named recipient, please
notify the sender immediately and do not disclose the contents to an
other person, use it for any purpose, or store or copy the information
in any medium.
#3 lore raw
In reply to Alexandre Coffignal
Quoted 8 lines · Alexandre Coffignal

Hi all,

I use xenomai to port PSOS application, so I am using xenomai PSOS skin, but i want to use xenomai pthread.

My question is do you know if i can use psos skin and posix skin in the same time?

Quoted 6 lines

I already test it without success : when I load my prog, I have this message :
Xenomai pSOS skin init: t_shadow() failed, status -17

and this message in dmess
Xenomai: FAILED to register object MAIN (unknown type), status -17

Don't call both of them "MAIN".

Quoted 4 lines

Thank in advance

Signature · 1 line
Philippe.
#4 lore raw
Quoted 9 lines · Philippe Gerum
Quoted 8 lines · Alexandre Coffignal

Hi all,

I use xenomai to port PSOS application, so I am using xenomai PSOS skin, but i want to use xenomai pthread.

My question is do you know if i can use psos skin and posix skin in the same time?

Quoted 8 lines
Quoted 6 lines

I already test it without success : when I load my prog, I have this message :
Xenomai pSOS skin init: t_shadow() failed, status -17

and this message in dmess
Xenomai: FAILED to register object MAIN (unknown type), status -17

Don't call both of them "MAIN".

I think the problem is that both skins try to shadow the main thread. This can be disabled for the posix skin by passing --enable-dlopen-skins on configure command line.

Signature · 4 lines
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com