Running RTEMS on a LEON2 from ROM

Jiri Gaisler jiri at gaisler.se
Mon Jul 31 12:22:43 UTC 2017



On 07/31/2017 10:47 AM, Mike Looijmans wrote:
> On 31-07-17 09:57, Jiri Gaisler wrote:
>>
>>
>> On 07/31/2017 09:38 AM, Mike Looijmans wrote:
>>> On 27-07-17 13:07, Jiri Gaisler wrote:
>>>> ... Meanwhile, I will fix the VMA/LVA problem in sis -
>>>> thanks for spotting this...
>>>
>>> Concerning that, did you make any progress there?
>>>
>>> As a workaround, is it possible to detect (runtime) whether we're
>>> running in the sis simulator? I could adapt the code to skip the
>>> routine that copies the .data segment into RAM to workaround this.
>>>
>>> Currently I patch the elf file using objcopy and set the VMA address
>>> equal to the LMA (which the debugger probably doesn't like much).
>>
>> I have fixed this, it was *very* simple .. :-). I posted a patch to RSB
>> on the list yesterday. You can apply that and just rebuild RSB fully. If
>> you want to build gdb separately, there are updated patches for gdb-7.12
>> and 8.0 here:
>>
>> https://gaisler.org/gdb/gdb-7.12.1-sis-leon2-leon3.diff
>>
>> https://gaisler.org/gdb/gdb-8.0-sis-leon2-leon3.diff
>
> I couldn't find anything resembling a patch for sis on the devel mail
> list, nor in Git. I only found your last commits moving gdb from 7.11
> to 7.12 but that's a lot more than just the address fix.

I have attached the patch to this mail.

>
> I'm actually looking for something that I can apply to the 4.11 RTEMS
> because that's what we're stuck with...

Gdb is does not really depend on the tools chain, so I would just
download gdb-7.12, apply the patch and build it separately.

How do you build your tool-chain and gdb now ...?

Jiri.

>
>
> Kind regards,
>
> Mike Looijmans
> System Expert
>
> TOPIC Products
> Materiaalweg 4, NL-5681 RJ Best
> Postbus 440, NL-5680 AK Best
> Telefoon: +31 (0) 499 33 69 79
> E-mail: mike.looijmans at topicproducts.com
> Website: www.topicproducts.com
>
> Please consider the environment before printing this e-mail
>
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-gdb-7.12-config-to-pull-in-latest-sis-patches.patch
Type: text/x-patch
Size: 1456 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20170731/6cfb8c7b/attachment-0002.bin>


More information about the users mailing list