summaryrefslogtreecommitdiff
path: root/testcase/Readme
blob: 364b163627f6eb7876d6e5e08e271eaae89dad00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
====================
arm:
  Simulator:
  qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 -m 256M -kernel build/arm-rtems4.11-realview_pbx_a9_qemu/rtld
  add "-S -s" option and you can use gdbserver to debug rtld
  use "halt" to exit qemu.

  Configuration:
  waf configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=arm  --rtems-bsps=arm/realview_pbx_a9_qemu

  In the wscript, you can use different cflags to test.

powerpc:
  Simulator:
  psim -i build/powerpc-rtems4.11-psim/rtld

  Configuration:
  waf configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=powerpc  --rtems-bsps=powerpc/psim
  "-fno-common" are add to cflags to avoid common section problem.

bfin:
  Because the simulator does not respond to the input keys, use the automatic shell-init to load test.rap
  Also you should modify the
            rtems_linkflags = ['--base', 'rtld.prelink',
                               '--entry', '_my_main'],
  "-mlong-calls" can generate fewer reloc types. One can use this option to see what it affects.
  Simulator:
    bf537Stamp-gdb build/bfin-rtems4.11-bf537Stamp/rtld
  Note: if use gdb to run rtl, add 'rap ld './test.rap'' into shell-init

h8300:
 configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=h8300 --rtems-bsps=h8300/h8sim
 configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=h8300 --rtems-bsps=h8300/h8sxsim
 You should change '-B ${RTEMS_ARCH}' to '-B h8300h' for h8sim and '-B h8300sx' for h8sxsim

 Simulator:
   h8sim -i build/h8300-rtems4.11-h8sim/rtld

lm32:
 configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=lm32 --rtems-bsps=lm32/lm32_evr

 Simulator:
    lm32_evr-gdb build/lm32-rtems4.11-lm32_evr/rtld
    qemu-system-lm32  -M lm32-evr -nographic -global lm32,sys.enabled=1 -kernel build/lm32-rtems4.11-lm32_evr/rtld

v850:
 Because the v850sim only has 1MB ram, the memory allocation should be considered carefully.
 Otherwise, error will be incured.

 configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=v850 --rtems-bsps=v850/v850sim

 Simulator:
    v850sim-gdb build/v850-rtems4.11-v850sim/rtld