FreeBSD 下 skyeye 运行 rtems

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

fetch http://www.rtems.org/ftp/pub/rtems/4.7.1/rtems-4.7.1.tar.bz2
tar jxf rtems-4.7.1.tar.bz2
mkdir build
cd build
../rtems-4.7.1/configure --target=arm-rtems --disable-posix --disable-itron --disable-networking --disable-cxx --prefix=$HOME/local/arm-rtems
gmake RTEMS_BSP="edb7312"

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.


*** HELLO WORLD TEST ***
Hello World
*** END OF HELLO WORLD TEST ***


EXECUTIVE SHUTDOWN! Any key to reboot...
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值