1. 安装arm-rtems-binutils和arm-rtems-gcc
cd
/
usr
/
ports
/
devel
/
arm-rtems-gcc
make install clean
2. 安skyeye
cd
/
usr
/
ports
/
emulators
/
skyeye
make install clean
3. 下载解压和编译RTEMS
4. 进入RTEMS的目录例子并编辑skyeye.conf
cd
arm-rtems
/
c
/
edb7312
/
testsuites
/
samples
/
hello
skyeye.conf
#
# skyeye.conf
#
cpu
:
arm720t
mach
:
ep7312
mem_bank
:
map
=
I
,
type
=
RW
,
addr
=
0x80000000
,
size
=
0x00010000
mem_bank
:
map
=
M
,
type
=
RW
,
addr
=
0x00000000
,
size
=
0x01000000
log
:
logon
=
1
,
logfile
=
skyeye
.
log
,
start
=
2000000
,
end
=
3000000
5. 运行skyeye
skyeye -e hello.exe
arch
:
arm
cpu info
:
armv4
,
arm720t
,
41807200
,
ffffff00
,
1
mach info
:
name ep7312
,
mach_init addr
0x8065350
log_info
:
log
is on
.
log_info
:
log
file is skyeye
.
log
,
fd is
0x28d57138
log_info
:
log
start clock
2000000
log_info
:
log
end clock
3000000
SKYEYE
:
use
arm7100 mmu ops
exec
file
"
hello.exe
"'
s format is elf32-i386-freebsd.
not load section .base: addr = 0x00000000 size = 0x00000120 .
load section .init: addr = 0x00000120 size = 0x00000020.
load section .text: addr = 0x00000140 size = 0x0000f210.
load section .fini: addr = 0x0000f350 size = 0x0000001c.
load section .data: addr = 0x0000f36c size = 0x00000c8c.
load section .eh_frame: addr = 0x0000fff8 size = 0x00000004.
load section .rodata: addr = 0x0000fffc size = 0x00000858.
not load section .bss: addr = 0x00010860 size = 0x00003fa0 .
not load section .comment: addr = 0x00000000 size = 0x00000da4 .
not load section .debug_aranges: addr = 0x00000000 size = 0x000014c0 .
not load section .debug_pubnames: addr = 0x00000000 size = 0x000038a0 .
not load section .debug_info: addr = 0x00000000 size = 0x000a796b .
not load section .debug_abbrev: addr = 0x00000000 size = 0x00014334 .
not load section .debug_line: addr = 0x00000000 size = 0x00019303 .
not load section .debug_frame: addr = 0x00000000 size = 0x00002bc4 .
not load section .debug_str: addr = 0x00000000 size = 0x0000ad65 .
not load section .debug_loc: addr = 0x00000000 size = 0x0000a8db .
not load section .debug_ranges: addr = 0x00000000 size = 0x00001b98 .
start addr is set to 0x00000140 by exec file.
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
*** HELLO WORLD TEST ***
Hello World
*** END OF HELLO WORLD TEST ***
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
EXECUTIVE SHUTDOWN! Any key to reboot...