On Tue, Jan 17, 2012 at 6:22 AM, Franck JULLIEN
<[email protected]> wrote:
> 2012/1/16 Stefan Kristiansson <[email protected]>:
>> On Sun, Jan 15, 2012 at 10:58:00PM +0100, Franck JULLIEN wrote:
>>> Hi,
>>>
>>> I'm trying to build a BSP from libgloss. I'm using 
>>> newlib-1.18.0-or32-1.0rc1.
>>>
>>> I did compile libgloss/or32 with my board definitions (and manually
>>> replacing included config file in ctr0.s, _exit.c, uart.c and
>>> write.c).
>>> I get a libor32uart.a and libor32.a files.
>>>
>>> I created a folder
>>> /opt/crosstool/or32/or32-elf-1.0rc1/or32-elf/lib/boards/de1 where I
>>> put libboard.a copied from libor32uart.a created before.
>>>
>>
>> libboard.a should only contain a handful of globals which
>> defines clock speed, uart base address etc. Creating a libboard.a
>> with those defines and putting it in the path you mentioned above,
>> is the only needed change for an orpsoc based board.
>> Take a look at unisrc/libgloss/or32/ml501.S for example.
>>
>> Stefan
>
> Oops,
>
> I was using newlib-1.18.0-or32-1.0rc1.tar.bz2 which I got in the
> download section. In this archive, libgloss doesn't have any *.S
> file......
> I downloaded gnu-src from svn and now I can see *.S files.

Yes, I would work from the version in the repository.

See the wiki page for details about the symbols in those files.

http://opencores.org/or1k/Newlib#Board_support_details

A TODO on that wiki entry is to add an example of the commands to run
the assembler on that code and then archive the object code into
libboard.a

Cheers

    Julius
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to