Thanks for your help Chris, unfortunatly seems that I need a little more
bit... I tried many things, but I don't really understand what's going
on...
First I just put header files needed for my example (it is the "timer",
one of the rtai examples avalaible on the ts-CD
ftp://ftp.embeddedarm.com/ts-arm-linux-cd/sources/rtai-examples-src.tar.\
gz ), it means rtai.h + rtai_leds.h + rtai_fifos.h + linux/module.h +
linux/kernel.h, in the folder of the rtai timer example. I tried to
compile, but I had tons of strange errors and warning in gcc files.
For examples :
/home/julien/Compilo/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2\
.3.2/arm-linux/sys-include/asm-generic/local.h:86: error: invalid type
argument of `->'
Or also :
/home/julien/Compilo/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2\
.3.2/arm-linux/sys-include/asm/semaphore.h:66: error: dereferencing
pointer to incomplete type
/home/julien/Compilo/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2\
.3.2/arm-linux/sys-include/linux/cpumask.h:275: error: `buf' undeclared
(first use in this function)
Then I tried with all rtai header included to arm-linux-gcc lib folder
(it means all rtai_XXX.h of the rtai developper tarball
ftp://ftp.embeddedarm.com/rt/arm-ts8/ts7200_rtfiles_obf_dev.tar.gz )...
and I just get ten more errors than in my previous test.
I surely didn't understand something... Do you have any idea ?
Thanks for your answer.
Best regards.
Julien
--- In Christopher Friedt <> wrote:
>
> When building toolchains from scratch, the glibc for a cross toolchain
> rquires kernel headers for your target.
>
> If your target has an rt kernel the glibc you would need to link
> against, and the header files you would need to include at x-compile
> time (arm-linux-gcc) would need to have the library and kernel
> information for RTAI extensions.
>
> Recent kernels > 2.6.18
>
> http://www.linuxdevices.com/news/NS9566944929.html
>
> ~/Chris
>
> Julien wrote:
> > Hello all.
> >
> > I have some questions about compilation.
> > Indeed, my PC is running with a classical Linux, and my TS-7200
board is
> > now with a RT kernel, and also RTAI.
> >
> > Is it possible to create program on my PC, compile it (with
> > arm-linux-gcc of course), and send it to the board in order to run
it ?
> > Will it work even if my Linux is running without any RT extension ?
> >
> > Or do I have to compile the code on my board in order to obtain a
proper
> > "RT" program, that will run correctly with the RT kernel and RTAI
linux
> > of my TS-7200 board ?
> >
> > Thanks for your answer.
> >
> > Best regards.
> >
> > Julien
> >
> >
> >
> >
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|