All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Xenomai 3 - no skin detected in program
@ 2015-02-04  8:55 Huy Cong Vu
  2015-02-04  9:13 ` Philippe Gerum
  0 siblings, 1 reply; 11+ messages in thread
From: Huy Cong Vu @ 2015-02-04  8:55 UTC (permalink / raw)
  To: xenomai

Hello everyone, 
I recently try to run an application compiled in native skin of Xenomai 3. When trying to run the binary, these line appeared: 
WARNING: [main] no skin detected in program 
BUG: [main] initialization failed, EINVAL 
I know that this is a cooperplate_init() warning when trying to initialize native skin, but I don't understand the reason why: 
if (pvlist_empty(&skins)){ 
warning("no skin detected in program"); 
ret = -EINVAL; 
goto fail; 
} 
In my main(), there are still native API calls: 
rt_print_auto_init(1); 
rt_task_spawn(...); 
rt_task_join(...); 
rt_task_delete(...); 
with mlockall also just to make sure, even I know that is pre-initialize since Xenomai 2.6. 
I have xenomai-3-next patched on linux-3.14.17, here are my compilation flags: 
cflags: 
xeno-config --alchemy --cflags 
xeno-config --rtdm --cflags 
ldflags: 
xeno-config --alchemy --ldflags 
xeno-config --rtdm --ldflags 

This issue is not reproduced with posix skin, I know that there are a mechanism change in the way Xenomai invoke function calls other than POSIX (alchemy, vxworks...): 
https://xenomai.org//migrating-from-xenomai-2-x-to-3-x/#Copperplate_auto-initialization 
Is this related with my issue? Is there anything I should add to my initialization process that I didn't know about? 
Thanks for your time, 
-- 

Huy Cong 
Wandercraft SAS 

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

end of thread, other threads:[~2015-02-05 15:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04  8:55 [Xenomai] Xenomai 3 - no skin detected in program Huy Cong Vu
2015-02-04  9:13 ` Philippe Gerum
2015-02-04 11:07   ` Huy Cong Vu
2015-02-04 11:40     ` Huy Cong Vu
2015-02-04 13:21       ` Philippe Gerum
2015-02-05 14:05         ` Huy Cong Vu
2015-02-05 14:42           ` Philippe Gerum
2015-02-05 15:29             ` Huy Cong Vu
2015-02-05 15:48               ` Philippe Gerum
2015-02-05 15:53               ` Philippe Gerum
2015-02-04 13:16     ` Philippe Gerum

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.