rt_modprobe equivalent for RTAI 3.0?

Philippe Gerum rpm at xenomai.org
Wed Jan 28 12:59:58 CET 2004


On Tue, 2004-01-27 at 11:56, Barbara Hughes wrote:
> Hi,
> 
> Just wondering is there an equivalent to /scripts/rt_modprobe available with
> RTAI 3.0 release?

It's called rtai-load. This is a shell script which uses an external
(text) file describing the modules to load and other actions to take for
running a RTAI application. The format of this file is documented in
rtai-doc/maintainers/runinfo.txt.

This boils down to writing a file called ".runinfo" in the directory
from which you would like to run the app. You could put this file
elsewhere or rename it, but "./.runinfo" is the default location used by
rtai-load to find the load directives.

For a simple kernel-based app called mymodule.o which needs semaphores
and fifos, you would write something like the following line to the
runinfo file:

myapp:ksched+fifos+sem:push mymodule;klog;popall:control_c

Which means: "myapp depends on rtai_ksched.o, rtai_fifos.o and
rtai_sem.o, and then needs mymodule.o to be insmod'ed. Then, let's
display Linux's syslog, and wait for the user to hit ^C before unloading
everything I've pushed on exit".

For a user-space (LXRT) app composed of 2 execs now, one for real-time
operations producing data, the other collecting those data through a
fifo:

myapp:lxrt+fifos:!./rtcruncher &;sleep 1;./display;popall:control_c

Which means: "myapp needs rtai_lxrt.o and rtai_fifos.o to be insmod'ed.
Then run a LXRT-based exec called "rtcrunch" with root privileges [!]
(if available to you through sudo) in the background [&], sleep for a
while, and finally start the "display" executable. Wait for the user to
hit ^C (thus interrupting "display") before unloading the modules."

You should be able to find your way using the documentation snippet, and
looking at the .runinfo files available for all examples from the
testsuite (e.g. /usr/realtime/testsuite/kern/latency/.runinfo).

> 
> thanks,
> Barbara
> 
> 
> _______________________________________________
> RTAI mailing list
> RTAI at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
-- 

Philippe.





More information about the Rtai mailing list