Hello Nicolas,

Yes you can open a driver in LXRT, but not when the task that
opens the driver is running in Hardrealtime mode. LXRT has
two purposes, one it lets you use RTAI functions in normal
linux programs so you can synchronize RTAI-kernel tasks with
normal linux processes, this you can use to open your driver
and have it controlled by a RTAI-Task, of course as soon as
you enter linux space you loos hardrealtime behavior.
A second thing LXRT make possible it to use a normal userspace
program a hardrealtime task, so you just can "run" it and not have to
"insmod" it. When you make your user process hardrealtime it has
the same limitation as a kernel-RTAI task, it is not allowed to touch
kernel structures. 

I hope this makes it a bit clearer, you can also try
the RTAI mailing list where other ppl (that probably can help
you better than i can) hang out, you can find it under 
www.rtai.org (i think).

- Erwin




Nicolas FLORIAN wrote:
> 
> Hi Erwin,
> 
> I don't understand. You mean that I cannot open a device file in user space
> with lxrt ? That's why I installed RTAI on my computer ! Several people on
> the mailing list told me it was the only solution to use my board with the
> driver.
> 
> Erwin Rol a ecrit :
> 
> > Hello Nicolas,
> >
> > I think this was a know problem with older LXRT versions
> > and Pierre fixed it in CVS. But i do not understand how
> > you want to use LXRT to access your driver. LXRT hardrealtime
> > mode can not use Linux system calls, so a normal linux driver is
> > of no use. (i don't have your other post, so i don't really rember what
> > you wanted to do)
> >
> > - Erwin
> >
> > Nicolas FLORIAN wrote:
> > >
> > > Hi all,
> > >
> > > I've just installed RTAI 1.6 on my computer (kernel 2.2.16). I need lxrt
> > > it to use a driver (maybe you can remember the problem I had with my CAN
> > > Board, two weeks ago ?) in user space in real time mode.
> > >
> > > I tried the examples which are in the directory /lxrt . I had no problem
> > > with that. Then I tried to compile an example ("threads") with Kdevelop.
> > > These are the flags I used :
> > >
> > > -I/usr/src/linux/include -I(RTAI dir)/include -Wall -Wstrict-prototypes
> > > -O2 -fomit-frame-pointer -lpthread
> > >
> > > The compilation worked well. Then I run the program (as root) and it
> > > worked. However, just after the execution of the last line of the code,
> > > I've got a segmentation fault message.
> > >
> > > What could it be ? How can I solve this problem ?
> > >
> > >     - Nicolas
> > >
> > > ---snip---
> > > vcard deleted....PLEAS NO VCARDS TO THE MAILIN LIST ...
> > >
> > > thx !
> > > hofrat
> > > -- [rtl] ---
> > > To unsubscribe:
> > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> > > --
> > > For more information on Real-Time Linux see:
> > > http://www.rtlinux.org/rtlinux/
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> > --
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/rtlinux/
> 
> ------snip----------
> 
> -- Content-Description: Carte pour Nicolas FLORIAN
> -- Content-Disposition: attachment;
> --  filename="nfi.grme-est.vcf"
> 
> I think that it should be clear by now that no VCARDS should be sent to the
> mailing list, sorry for being a pest - but I get a regular beating from
> sendmails/virusscanners etc. if this goes out - so again pleas NO VCARDS.
> 
> thx !
> hofrat
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to