All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [Xenomai-help] Questions porting existing rtai-24.1.12 app toxenomai
@ 2006-04-04  8:32 Fillod Stephane
  2006-04-04 14:24 ` [Xenomai-help] Questions porting existing rtai-24.1.12 app to xenomai (PART II) Randy Smith
  2006-04-06  3:38 ` [Xenomai-help] question about the latency test running on Blackfin adam li
  0 siblings, 2 replies; 18+ messages in thread
From: Fillod Stephane @ 2006-04-04  8:32 UTC (permalink / raw)
  To: Philippe Gerum, Randy Smith; +Cc: xenomai

Philippe Gerum wrote:
>Randy Smith wrote:
>> I have inherited some linux 2.4.25 kernel module code for a powerpc
that 
>> uses rtai-24.1.12.  In my xenomai enabled kernel, I have disabled
native 
>> support and enabled the RTAI emulator.  This works as far as I know.
I 
>> can insmod it at least but to test it, I need some user mode code and

>> that is where I am running into problems.
>> 
>> The kernel module runs as a periodic task and uses kernel mode shared

>> memory to communicate with the user mode application.  The user mode 
>> application uses rtai_malloc to allocate the shared memory that the 
>> kernel module created with rtai_kmalloc.  My application fails to
link 
>> since librtai.so cannot resolve the call to rtai_malloc.  What should
I 
>> migrate the rtai_malloc call to in order to use the rtai skin with 
>> xenomai??
>
>The thing is that the RTAI emulator provided currently covers a minimal

>set of kernel-space only RTAI services, and does not provide any 
>user-space interface to these calls. The librtai.so library that would 
>contain the user-space interface mimicking LXRT is actually empty, and 
>basically a placeholder, waiting for someone to be motivated enough to 
>extend the existing support and flesh it. (hint, hint...).

Ok, got the hint ;-)

> Can I not communicate kernel to user via shared memory in that skin?
> 

RTAI shared memory access from user space works here. Just let me some
time
to make up the patch and post it to GNA. I have a RT-fifo patch also
that 
removes the I/O size limitation (reader<write) that will make Philippe 
scream.

>In fact, it's just that the RTAI emulator over Xenomai currently 
>provides only a small subset of the > 300 routines the original RTAI
API 
>exports, and solely in kernel space. The reason for that is likely that

>people porting from the RTAI API to Xeno usually switch to Xeno's
native 
>API directly.

Indeed, switching directly to Xeno native is worth the advice (sigh).

-- 
Stephane



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

end of thread, other threads:[~2006-04-12 17:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04  8:32 [Xenomai-help] Questions porting existing rtai-24.1.12 app toxenomai Fillod Stephane
2006-04-04 14:24 ` [Xenomai-help] Questions porting existing rtai-24.1.12 app to xenomai (PART II) Randy Smith
2006-04-04 14:15   ` Philippe Gerum
2006-04-04 15:32     ` Randy Smith
2006-04-04 16:21       ` Philippe Gerum
2006-04-05 15:02         ` Randy Smith
2006-04-05 16:45           ` Philippe Gerum
2006-04-05 20:54             ` Randy Smith
2006-04-05 22:02               ` Philippe Gerum
2006-04-12 16:11               ` Randy Smith
2006-04-06  3:38 ` [Xenomai-help] question about the latency test running on Blackfin adam li
2006-04-06  7:05   ` Philippe Gerum
2006-04-07 12:27     ` adam li
2006-04-07 12:37       ` Philippe Gerum
2006-04-12  2:42         ` Li Yi
2006-04-12  7:46           ` Jan Kiszka
2006-04-12 12:28             ` adam li
2006-04-12 17:38               ` Jan Kiszka

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.