[PATCH] Rework psim device tree

Joel Sherrill joel at rtems.org
Thu Mar 5 23:56:28 UTC 2020


This is actually a series of two patches but one is from RTEMS for
the BSP and this one is for rtems-tools to fix the device tree in
the RTEMS Tester. With this device tree, I can run gdb by hand but
I couldn't seem to get the tester working. Hopefully it was just a
command line issue on my part and someone can show the RTEMS Tester
working with psim and these modifications. 

Here is the gdb run to show this is consistent:

==============================
$ powerpc-rtems5-gdb ./powerpc-rtems5/c/psim/testsuites/samples/hello.exe
GNU gdb (GDB) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=powerpc-rtems5".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./powerpc-rtems5/c/psim/testsuites/samples/hello.exe...
(gdb) tar sim -f /home/joel/rtems-work/rtems-tools/tester/rtems/testing/bsps/psim-device-tree
Connected to the simulator.
(gdb) load
(gdb) run
Starting program: /home/joel/rtems-work/b-psim/powerpc-rtems5/c/psim/testsuites/samples/hello.exe 
OpenPIC Version 1.2 (2 CPUs and 17 IRQ sources) at 0x4229103616
OpenPIC Vendor 0 (Unknown), Device 0 (Unknown), Stepping 0
Overriding NumSources (17) from configuration with 16
OpenPIC timer frequency is 1 Hz
BATs must not overlap; area 0x08000000..0x09000000 hits DBAT 0


*** BEGIN OF TEST HELLO WORLD ***
*** TEST VERSION: 5.0.0.4bfe280a1233aca997f65c1bbfa2e99b95682e15-modified
*** TEST STATE: EXPECTED_PASS
*** TEST BUILD: RTEMS_POSIX_API
*** TEST TOOLS: 7.5.0 20191114 (RTEMS 5, RSB 5 (e228eccbd198), Newlib fbaa096)
Hello World

*** END OF TEST HELLO WORLD ***


*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x00000000)
RTEMS version: 5.0.0.4bfe280a1233aca997f65c1bbfa2e99b95682e15-modified
RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB 5 (e228eccbd198), Newlib fbaa096)
executing thread ID: 0x08a010001
executing thread name: UI1 
[Inferior 1 (process 42000) exited with code 075]
(gdb) 

==============================


Joel Sherrill (1):
  psim-device-tree: Rework so devices do not conflict with 256MB RAM

 tester/rtems/testing/bsps/psim-device-tree | 36 +++++++++++++++---------------
 1 file changed, 18 insertions(+), 18 deletions(-)

-- 
1.8.3.1



More information about the devel mailing list