Running ARM or PPC RTEMS simulations on x64 hardware

Matthew Clark linux.matthew at gmail.com
Fri Feb 26 22:11:56 UTC 2016


I've successfully built/run the sparc sim (sis) test examples as described
in

https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start

My target hardware is a Zedboard, Raspberry Pi2 and a basic ML405
(Virtex4), but when I try to re-create the above for the various bsps,
including supposed qemu plaftorms like qemuppc, I get all manner of errors,
such as

$powerpc-rtems4.11-run ./qemuppc/testsuites/samples/hello/hello.exe
./qemuppc/testsuites/samples/hello/hello.exe: Caught signal 11 at address
0xffc00014

I get nothing for ARM:

$arm-rtems4.11-run ./xilinx_zynq_a9_qemu/testsuites/samples/hello/hello.exe
$

though if I tried to run the hello.exe through ARM's GDB, I get a different
error:

$ arm-rtems4.11-gdb ./xilinx_zynq_a9_qemu/testsuites/samples/hello/hello.exe
GNU gdb (GDB) 7.9
...
This GDB was configured as "--host=x86_64-linux-gnu
--target=arm-rtems4.11".Type "show configuration" for configuration details.
...
Reading symbols from
./xilinx_zynq_a9_qemu/testsuites/samples/hello/hello.exe... done.
(gdb) tar sim
Connected to the simulator.
(gdb) load
Loading section .start, size 0x6d8 vma 0x0
Loading section .text, size 0x2071c vma 0x700
Loading section .init, size 0xc vma 0x20e1c
Loading section .fini, size 0xc vma 0x20e28
Loading section .rodata, size 0x1150 vma 0x20e38
Loading section .ARM.exidx, size 0x8 vma 0x21f88
Loading section .eh_frame, size 0x74 vma 0x21f90
Loading section .init_array, size 0x4 vma 0x22004
Loading section .fini_array, size 0x4 vma 0x22008
Loading section .jcr, size 0x4 vma 0x2200c
Loading section .data, size 0x6d0 vma 0x101400
Start address 0x40
Transfer rate: 1127840 bits in <1 sec.
(gdb) r
Starting program: xilinx_zynq_a9_qemu/testsuites/samples/hello/hello.exe
[Inferior 1 (process 42000) exited with code 060]

I don't always have access to the target hardware and I wanted to run
simple tests in a simulator environment.   Am I doing something wrong?  If
so, what?

Thanks,

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160226/4faf9760/attachment.html>


More information about the users mailing list