新手请教一个模拟s3c2410+LInux遇到的问题。
用testsuit进行模拟Linux时候碰到这个问题输入start后就得到下面的信息
(skyeye) start
In create_uart_console
mmap failed
: Cannot allocate memory
用的是1.3.5版本? 有人知道如何解决么? skyeye s3c2410一共4个linux的测试用例,我分别尝试了一下,注意的是:s3c2410中有网卡外设,所以需要 root权限运行skyeye,经过测试,均没有出现楼主的错误。
第一个:
linux-jmxq:/home/david/WorkSpace/testsuite/skyeye-testsuite/linux/s3c2410/2.4.18 # /opt/skyeye/bin/skyeye -e vmlinux
SkyEye 1.3.5
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye) start
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
lcd_mod:1
mmap DRAM, size=0x2000000, return 0xc0000000
1 core is initialized.
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
(skyeye)
第二个:
linux-jmxq:/home/david/WorkSpace/testsuite/skyeye-testsuite/linux/s3c2410/cs8900a # /opt/skyeye/bin/skyeye -e vmlinux
SkyEye 1.3.5
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye) start
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
lcd_mod:1
mmap DRAM, size=0x2000000, return 0x30000000
1 core is initialized.
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
第三个:
linux-jmxq:/home/david/WorkSpace/testsuite/skyeye-testsuite/linux/s3c2410/s3c2410x-2.6.14 # /opt/skyeye/bin/skyeye -e vmlinux
SkyEye 1.3.5
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye) start
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
lcd_mod:1
mmap DRAM, size=0x2000000, return 0xc0000000
1 core is initialized.
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
(skyeye)
第四个:
linux-jmxq:/home/david/WorkSpace/testsuite/skyeye-testsuite/linux/s3c2410/s3c2410x-2.6.36 # /opt/skyeye/bin/skyeye -e vmlinux
SkyEye 1.3.5
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye) start
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
lcd_mod:1
mmap DRAM, size=0x2000000, return 0x30000000
1 core is initialized.
In epprom_reset(io->ieee_addr) mac addr=0:4:3:2:1:f
In epprom_reset(net->macaddr) mac addr=0:4:3:2:1:f
(skyeye)
你描述一下你具体使用的哪个测试用例以及你的运行环境?把skyeye.conf给我看下。
不好意思,前几天春节没上来看。
我用的是ubuntu10.04skyeye 1.3.5 版本 用1.3.4的testsuit
测试S3C2410的2.6.14内核版本
直接利用testsuit里的skyeye.conf是得到上面的错误提示的
文件内容是下面这个
# skyeye config file for S3C2410X
arch:arm
cpu: arm920t
mach: s3c2410x
# physical memory
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x02000000
# all peripherals I/O mapping area
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
uart:mod=stdio
#dbct:state=on
load_file: filename=./initrd.img, start=0xc0800000
后来将它修改成下面的skyeye.conf文件可以成功运行起来
cpu: arm920t
mach: s3c2410x
#physical memory
mem_bank: map=M, type=RW, addr=0x00000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0x30000000, size=0x04000000
mem_bank: map=M, type=RW, addr=0xC0000000, size=0x00800000, file=vmlinux
mem_bank: map=M, type=RW, addr=0xC0800000, size=0x00800000, 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
uart: mod=term
页:
[1]