blob: ab952927869cad4af59c8ba4309964c3fbc3229f (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
====================
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
m32r:
One can choose different cflags in wscript for m32r to see what happens.
configure --rtems=/opt/rtems-4.11 --rtems-tools=/opt/rtems-4.11 --rtems-archs=m32r
Simulator:
m32rsim-gdb build/m32r-rtems4.11-m32rsim/rtld
M68K:
Use the following two patchs and patch them to qemu-0.11.0-rc1
http://lists.nongnu.org/archive/html/qemu-devel/2009-09/msg00811.html
http://lists.nongnu.org/archive/html/qemu-devel/2009-09/msg00353.html
http://www.rtems.org/pipermail/rtems-users/2009-September/005941.html shows how
to compile and run.
Simulator:
qemu-system-m68k -M uc5282 -nographic -kernel build/m68k-rtems4.11-uC5282/rtld
|