All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai FAILED to register object
@ 2010-02-09 13:43 Alexandre Coffignal
  2010-02-09 13:46 ` Gilles Chanteperdrix
  2010-02-09 13:47 ` Philippe Gerum
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Coffignal @ 2010-02-09 13:43 UTC (permalink / raw)
  To: xenomai

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


-- 
Alexandre COFFIGNAL, Chef de Projet
Email: alexandre.coffignal@domain.hid
<mailto:alexandre.coffignal@domain.hid>
------------------------------------
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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] Xenomai FAILED to register object
  2010-02-09 13:43 [Xenomai-help] Xenomai FAILED to register object Alexandre Coffignal
@ 2010-02-09 13:46 ` Gilles Chanteperdrix
  2010-02-09 13:51   ` Alexandre Coffignal
  2010-02-09 13:47 ` Philippe Gerum
  1 sibling, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-02-09 13:46 UTC (permalink / raw)
  To: Alexandre Coffignal; +Cc: xenomai

Alexandre Coffignal wrote:
> 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

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

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] Xenomai FAILED to register object
  2010-02-09 13:43 [Xenomai-help] Xenomai FAILED to register object Alexandre Coffignal
  2010-02-09 13:46 ` Gilles Chanteperdrix
@ 2010-02-09 13:47 ` Philippe Gerum
  2010-02-09 13:53   ` Gilles Chanteperdrix
  1 sibling, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2010-02-09 13:47 UTC (permalink / raw)
  To: Alexandre Coffignal; +Cc: xenomai

On Tue, 2010-02-09 at 14:43 +0100, Alexandre Coffignal wrote:
> 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

Don't call both of them "MAIN".

> 
> Thank in advance
> 
> 


-- 
Philippe.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] Xenomai FAILED to register object
  2010-02-09 13:46 ` Gilles Chanteperdrix
@ 2010-02-09 13:51   ` Alexandre Coffignal
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Coffignal @ 2010-02-09 13:51 UTC (permalink / raw)
  To: xenomai

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

Gilles Chanteperdrix a écrit :
> Alexandre Coffignal wrote:
>   
>> 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
>>     
>
> Because the main thread is already shadowed by the posix skin. It is
> already a xenomai task.
>
>   


-- 
Alexandre COFFIGNAL, Chef de Projet
Email: alexandre.coffignal@domain.hid
<mailto:alexandre.coffignal@domain.hid>
------------------------------------
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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] Xenomai FAILED to register object
  2010-02-09 13:47 ` Philippe Gerum
@ 2010-02-09 13:53   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2010-02-09 13:53 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
> On Tue, 2010-02-09 at 14:43 +0100, Alexandre Coffignal wrote:
>> 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
> 
> 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.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-09 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 13:43 [Xenomai-help] Xenomai FAILED to register object Alexandre Coffignal
2010-02-09 13:46 ` Gilles Chanteperdrix
2010-02-09 13:51   ` Alexandre Coffignal
2010-02-09 13:47 ` Philippe Gerum
2010-02-09 13:53   ` Gilles Chanteperdrix

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.