cinquepalmi at planetek.it
Mon Jul 30 13:23:24 UTC 2012
Jiri, I exactly did what you have just suggested me. My target is leon2
so I did
../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=leon2 \
--enable-tests=samples --disable-posix --prefix=/opt/rtems-4.11
and everything went ok
Supposing that I have a simple hello.c rtems file, could you please
indicate me the complete command line to compile it?
Maybe i miss some options... Thank you again.
Il 30/07/2012 13.24, Jiri Freyvald ha scritto:
> I installed RTEMS for sparc and arm targets and both worked out of the
> box (the same version as you have).
> I would recomend you to leave Eclipse for that moment and build from
> command line only.
> The easiest way to make your application working is to follow those
> Have you built this: ?
> cd rtems
> export PATH=/opt/rtems-4.11/bin:$PATH
> cd ..
> mkdir b-sis
> cd b-sis
> ../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=sis \
> --enable-tests=samples --disable-posix
> Everything went ok?
> If yes, you will have a few examples in the build tree, you can run them.
> Next step which I did and I recomend you too is:
> which will completely build a lot of examples and you can then use
> some of them as a framework for your application.
> The key thing you have to do is to properly set environment *PATH* for
> your toolchain and *RTEMS_MAKEFILE_PATH*,
> then you can run your application located out of the build tree.
> You can very easily use its makefile, modify it and it will work for
> you (even from Eclipse if you use a Makefile project)
> I hope it will help
> On 07/30/12 11:49, Luca Cinquepalmi wrote:
>> Hi Jiri, thank you for your suggestion.
>> I've tryed it, but nothing happened. I tell you my source version:
>> - rtems 4.11
>> - binutils 2.22
>> - gcc 4.7.1
>> - newlib 1.20.0
>> I really don't understand what kind of error I generate. RTEMS
>> compilation and installation
>> (as indicated in RTEMS Quick Start) has been performed withou any
>> kind of errors.
>> Do you have any other suggestion form me?
>> Thanks a lot
>> Il 27/07/2012 16.37, Jiri Freyvald ha scritto:
>>> Have you added -c option to sparc-rtems4.11-gcc command line parameters?
>>> (to ONLY compile and assemble single C file, but do not link)
>>> because that error message seems to me as result of linking process
>>> On 07/27/12 10:38, Luca Cinquepalmi wrote:
>>>> I'm using sparc-rtems4.11-gcc to compyle a rtems C source file.
>>>> I compiled allthing as indicatedin web Quick start without any
>>>> When I try to compile a simplke rtems C source code the following
>>>> errors appears:
>>>> *- In function `bsp_get_work_area':/../../...../ undefined
>>>> reference to `rdb_start'
>>>> - In function `_Thread_Handler':/../../......./ undefined reference
>>>> to `_init'*
>>>> Has anybody seen these kind of errors before? I'm not able to solve
>>>> Here my compilation options:
>>>> *sparc-rtems4.11-gcc -B/opt/rtems-4.11/sparc-rtems4.11/leon2/lib \
>>>> /opt/rtems-4.11/sparc-rtems4.11/leon2/lib/bsp_specs \
>>>> -mcpu=v8 -qrtems
>>>> PS: I'm using Eclipse as IDE.
>>>> Thanks a lot!
>>>> rtems-users mailing list
>>>> rtems-users at rtems.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users