LEON3 (GR712RC) Building RTEMS for SMP

Leonard Bise leonard.bise at syderal.ch
Thu May 26 13:33:53 UTC 2016


We didn't realise we had to use a makefile similar to the one provided by
RTEMS...
Doing the following we managed to build:

-------------------------------------------------------------
Compiling DEBUG - rtems.c - c file
/opt/rtems-4.12/bin/sparc-rtems4.12-gcc -c -I../../shared/SRC -I.  -g3
-D__DEBUG__ -B/opt/rtems-4.12/sparc-rtems4.12/leon3/lib  -specs bsp_specs
-qrtems -Wall -ffunction-sections -fdata-sections -mcpu=leon3 -msoft-float
-Werror -o debug/rtems.o rtems.c
-------------------------------------------------------------
Creating executable ASW.exe in debug
/opt/rtems-4.12/bin/sparc-rtems4.12-gcc
-B/opt/rtems-4.12/sparc-rtems4.12/leon3/lib  -specs bsp_specs -qrtems -Wall
-ffunction-sections -fdata-sections -mcpu=leon3 -msoft-float  -o
debug/ASW.exe  debug/rtems.o -L../../shared/SRC/debug -lShared


*Léonard Bise*
Software Design Engineer
Direct Line +41 (0)32 338 9902

*SYDERAL SA*
Neuenburgstrasse 7
CH-3238 Gals (Switzerland)
Desk Line +41 (0)32 338 9800
Web Site http://www.syderal.ch

2016-05-26 13:29 GMT+02:00 Leonard Bise <leonard.bise at syderal.ch>:

> So we managed to compile RTEMS but now if we try to build a simple test
> application, sparc-rtems4.12-gcc can't find system headers (bsp.h etc...)
> However, when comparing to rtems4.10 we have already installed and
> working, we find the file in the same directory :
> /opt/rtems-4.12/src/rtems-4.12/c/src/lib/libbsp/sparc/leon3/include
> /opt/rtems-4.10/src/rtems-4.10/c/src/lib/libbsp/sparc/leon3/include
>
> The rtems 4.10 we use is the one built by Gaisler so maybe we are missing
> something?
>
> After this I tried executing the hello.exe that is built in the
> testsuites/samples folder and it executed just fine on the GR712RC board,
> so I guess the toolset is correct.
> However if I try to manually build the init.c file I get a missing header
> error.
>
>  /opt/rtems-4.12/bin/sparc-rtems4.12-gcc init.c -o out
> init.c:14:24: fatal error: rtems/test.h: No such file or directory
>  #include <rtems/test.h>
>                         ^
> compilation terminated.
>
> I don't understand why gcc can't find those system header files?
> Is our install botched or are we missing something?
>
>
> *Léonard Bise*
> Software Design Engineer
> Direct Line +41 (0)32 338 9902
>
> *SYDERAL SA*
> Neuenburgstrasse 7
> CH-3238 Gals (Switzerland)
> Desk Line +41 (0)32 338 9800
> Web Site http://www.syderal.ch
>
> 2016-05-26 9:53 GMT+02:00 Chris Johns <chrisj at rtems.org>:
>
>> On 26/05/2016 17:41, Leonard Bise wrote:
>>
>>> Thanks a lot Chris, the problem is fixed.
>>>
>>
>> Excellent.
>>
>> I'd like to ask also, would it be possible to have a quick status of the
>>> current state of the SMP functionality for GR712 in RTEMS?
>>> Is it mostly working, or still under active development?
>>>
>>
>> I am not sure about the specific state of the hardware you are talking
>> about and I am sure Sebastian will chime in when he is able.
>>
>> SMP should be working on SPARC architectures. Sebastian is working to
>> remove the giant lock and to improve the performance. As a result there is
>> a great of activity. The end result of his work will be awesome.
>>
>> Added to this I am working on improving the user experience with libbsd
>> and making a start at documenting something, the getting started guide is
>> first. This is resulting in some changes like the one that broke your build.
>>
>> Thanks a lot for your help anyway.
>>>
>>
>> Pleasure.
>>
>> Chris
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160526/e4ef6bc2/attachment-0002.html>


More information about the users mailing list