当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : skyeye无法正常运行testsuite2.3中的linux部分的模拟
帖子发表于 : 2010-04-04 10:02 
头像

注册: 2008-05-05 13:08
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
已经确定交叉编译器arm-linux-gcc/arm-elf-gcc可以正常编译自已的程序。skyeye的安装应该也没问题。
~$ skyeye

**************************** WARNING **********************************
If you want to run ELF image, you should use -e option to indicate
your elf-format image filename. Or you only want to run binary image,
you need to set the filename of the image and its entry in skyeye.conf.
***********************************************************************

Your elf file is little endian.
Failed to open skyeye config file skyeye.conf in the same directory
error: No such file or directory
SkyEye 1.2.5
Bug report: skyeye-developer@lists.gro.clinux.org
Usage: skyeye [options] -e program [program args]
Default mode is STANDALONE mode
------------------------------------------------------------------
Options:
-e exec-file the (ELF executable format)kernel file name.
-l load_address,load_address_mask
Load ELF file to another address, not its entry.
-b specify the data type is big endian when non "-e" option.
-d in GDB Server mode (can be connected by GDB).
-c config-file the skyeye configure file name.
-h The SkyEye command options, and ARCHs and CPUs simulated.
------------------------------------------------------------------
----------- Architectures and CPUs simulated by SkyEye-------------
-------- ARM architectures ---------
at91
lpc
s3c4510b
s3c44b0x
s3c44b0
s3c3410x
ep7312
lh79520
ep9312
cs89712
sa1100
pxa_lubbock
pxa_mainstone
at91rm92
s3c2410x
s3c2440
sharp_lh7a400
ns9750
-------- BlackFin architectures ----
bf533
bf537
上面是运行skyeye之后的响应,skyeye可以正常模拟testsuite-2.3/uClinux/at91/linux-2.6.x。但是一旦运行testsuite-2.3/linux/s3c2410/2.4.18就会出现问题。
skyeye.conf的配置如下:
#skyeye config file sample

cpu: arm920t
mach: s3c2410x

#physical memory
#mem_bank: map=M, type=RW, addr=0x20000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xc1000000, size=0x00600000, file=./initrd.img
mem_bank: map=M, type=RW, addr=0xc1600000, size=0x00a00000
#all peripherals I/O mapping area
#mem_bank: map=I, type=RW, addr=0xfefa0000, size=0x00060000
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
lcd:type=s3c2410x,mod=gtk
#dbct:state=on
一直搞不明白是哪个地方出了问题。testsuite-2.3里的文件都是默认的,执行 skyeye -e vmlinux -c skyeye.conf 后就出来:
Your elf file is little endian.
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
-----------------------------------------------------------
NOTICE: you should be root at first !!!
NOTICE: you should inmod linux kernel net driver tun.o!!!
NOTICE: if you don't make device node, you should do commands:
NOTICE: mkdir /dev/net; mknod /dev/net/tun c 10 200
NOTICE: now the net simulation function can not support!!!
NOTICE: Please read SkyEye.README and try again!!!
-----------------------------------------------------------
uart_mod:0, desc_in:, desc_out:, converter:
Loaded RAM ./initrd.img
exec file "vmlinux"'s format is elf32-little.
load section .init: addr = 0xc0008000 size = 0x0000f0Your elf file is little endian.
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
-----------------------------------------------------------
NOTICE: you should be root at first !!!
NOTICE: you should inmod linux kernel net driver tun.o!!!
NOTICE: if you don't make device node, you should do commands:
NOTICE: mkdir /dev/net; mknod /dev/net/tun c 10 200
NOTICE: now the net simulation function can not support!!!
NOTICE: Please read SkyEye.README and try again!!!
-----------------------------------------------------------
uart_mod:0, desc_in:, desc_out:, converter:
Loaded RAM ./initrd.img
exec file "vmlinux"'s format is elf32-little.
load section .init: addr = 0xc0008000 size = 0x0000f000.
load section .text: addr = 0xc0017000 size = 0x000e246c.
load section __ex_table: addr = 0xc00f9470 size = 0x00000978.
not load section __ksymtab: addr = 0xc00f9de8 size = 0x00000000 .
load section .data: addr = 0xc00fa000 size = 0x0000e3e3.
not load section .bss: addr = 0xc0108400 size = 0x00027f90 .
not load section .stab: addr = 0x00000000 size = 0x00326154 .
not load section .stabstr: addr = 0x00000000 size = 0x000e23f0 .
not load section .comment: addr = 0x00000000 size = 0x0000258e .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.00.
load section .text: addr = 0xc0017000 size = 0x000e246c.
load section __ex_table: addr = 0xc00f9470 size = 0x00000978.
not load section __ksymtab: addr = 0xc00f9de8 size = 0x00000000 .
load section .data: addr = 0xc00fa000 size = 0x0000e3e3.
not load section .bss: addr = 0xc0108400 size = 0x00027f90 .
not load section .stab: addr = 0x00000000 size = 0x00326154 .
not load section .stabstr: addr = 0x00000000 size = 0x000e23f0 .
not load section .comment: addr = 0x00000000 size = 0x0000258e .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
之后就一直是:
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 62208, mem_read_word addr = 3cc08 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 62208, mem_read_word addr = 3cc0c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 62208, mem_read_word addr = 3cc10 no bank
:em20 一直在找原因,好像也没啥不对的,都能模拟uclinux了,skyeye的安装应该也不会有啥问题。谁遇见过?help me.Thank you.


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译