[Rtai] [RTAI] rt_task_init_schmod() fails

Jaryn Sepesi jaryn.sepesi at gmail.com
Thu Jan 21 16:10:56 CET 2010


Hi everyone!

I've been trying to get RTAI up and running, but there's still one annoying
problem. I patched and compiled the kernel, then compiled and installed
RTAI. All kernel-space examples in testsuite directory seem to work ok. But
I'm unable to run any user-space example containing rt_task_init_schmod().
This function keeps returning NULL all the time, so e.g. latency test fails
with "CANNOT INIT MASTER TASK". I found on the internet, that
rt_task_init_schmod() fails only if there's:

-lack of memory
-identificator name conflict
-no more space in the table of registered objects

Because it fails even for the first run, I don't think these things are an
issue here...

My configuration:
Ubuntu 9.10
vanilla kernel 2.6.29.4 x86_64 smp
RTAI 3.7.1

My kernel .config and part of dmesg (produced with "dmesg -c; ./run; dmesg >
dmesg.txt") are attached to this message. Any help much appreciated! Thank
you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.rtai.org/pipermail/rtai/attachments/20100121/f809ced0/attachment-0001.htm>
-------------- next part --------------
[ 8335.838824] I-pipe: Domain RTAI registered.
[ 8335.838832] RTAI[hal]: <3.7.1> mounted over IPIPE-NOTHREADS 2.4-01.
[ 8335.838833] RTAI[hal]: compiled with gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) .
[ 8335.838907] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 8335.838908] PIPELINE layers:
[ 8335.838913] ffffffffa08c1e80 9ac15d93 RTAI 200
[ 8335.838914] ffffffff809db700 0 Linux 100
[ 8335.933359] RTAI[malloc]: global heap size = 8388608 bytes, <BSD>.
[ 8335.933675] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <without RTAI OWN KTASKs>, kstacks pool size = 2097152 bytes.
[ 8335.933679] RTAI[sched]: hard timer type/freq = APIC/20781021(Hz); default timing: periodic; linear timed lists.
[ 8335.933681] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2660019000 hz.
[ 8335.933683] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 8338.094069] SCHED releases registered named MBX  LATMBX
[ 8338.094071] SCHED releases registered named TASK LATCHK
[ 8338.243031] RTAI[malloc]: unloaded.
[ 8338.342012] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 8338.346650] I-pipe: Domain RTAI unregistered.
[ 8338.346737] RTAI[hal]: unmounted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 83584 bytes
Desc: not available
URL: <http://mail.rtai.org/pipermail/rtai/attachments/20100121/f809ced0/attachment-0001.obj>


More information about the Rtai mailing list