QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1854|回复: 2

新手请教一个模拟s3c2410+LInux遇到的问题。

[复制链接]
发表于 2013-2-4 10:57:51 | 显示全部楼层 |阅读模式
用testsuit进行模拟Linux时候碰到这个问题
输入start后就得到下面的信息
(skyeye) start
In create_uart_console
mmap failed
: Cannot allocate memory

用的是1.3.5版本? 有人知道如何解决么?
发表于 2013-2-5 15:04:23 | 显示全部楼层
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给我看下。
回复

使用道具 举报

 楼主| 发表于 2013-2-14 01:08:17 | 显示全部楼层

不好意思,前几天春节没上来看。

我用的是ubuntu10.04
skyeye 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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 18:18 , Processed in 0.081942 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表