[Rtai] Howto integrate RTAI within IDE

Rafael Vidal Aroca rafaelaroca at uol.com.br
Tue May 27 22:59:50 CEST 2008


Hi,

this is quite simple in KDevelop using a shell script with signal handler.

Create a project, and use a makefile. When you click compile in
Kdevelop, it will call makefile and compile your RTAI module.

If you are creating a kernel module, create a shell script with the name
of the project. When you click in run, the shell script will insmod your
module and show the kernel output in the kdevelop window. When you click
stop, the shell script will rmmod the module.

The script is like that:


#!/bin/sh
MODULE=”test1”

# Trap Handl e r - s e e below
tr_handler ( ) {
rmmod $MODULE
echo ”Ended $MODULE”
e x i t 0
}

#Handles s i g n a l s 1 (HANGUP) 2 ( INTERRUPT) and 15 (TERMINATE)
trap ” tr_handler ” 1 2 15

#Loads t h e LKM
echo ” Loading $MODULE”
insmod $MODULE. ko

#Shows t h e k e r n e l o u t p u t i n KDevelop mes sages window
tail -f /var/log/messages


If you wish, you can check the complete description of the integration i
made to build a live CD with RTAI and KDevelop for undergraduate
students at http://www.lisha.ufsc.br/wso/wso2007/papers/arq0081.pdf

regards

Rafael


prakash srinivasan wrote:
>
>
> Hello all,
> I have installed RTAI in my Ubuntu Linux.I would like to develop my 
> programs from IDE environment. How can I integrate RTAI in IDE like 
> Eclipse, Kdevelop, Anjuta... Give me some tutorials, materials for 
> integrating RTAI with IDE.
>
> -Regards,
> Prakash.
>
> -- 
> visit http://electronica.org.in is a Open source site for 
> learners,beginners and job seekers.
>
> ==============
> With Regards,
> Prakash.A.S,
> ==============
>
> AIT 
> <http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/1050715198@Middle5/2131986_2124424/2132146/1?PARTNER=3&OAS_QUERY=null> 
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rtai mailing list
> Rtai at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>   



More information about the Rtai mailing list