主题 : 用QEMU来模拟MINI2440,跟着教程还是有问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 68178
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
综合积分: 20 分
注册时间: 2012-04-19
最后登录: 2012-09-02
楼主  发表于: 2012-04-30 22:39

 用QEMU来模拟MINI2440,跟着教程还是有问题

本人还是学生,买不起硬件,想先模拟一下mini2440,照着教程做了,看了修正版的,还要再找其他帖子来看,终于要运行qemu了,就在这里又出错了。代码如下,求高人指点

Starting in mini2440
mini2440/../arm-softmmu/qemu-system-arm -M mini2440 -serial stdio -mtdblock

mini2440/mini2440_nand128.bin -show-cursor -usb -usbdevice keyboard -usbdevice mouse -net

nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup,downscript=./qemu-ifdown -monitor

telnet::5555,server,nowait
TUNSETIFF: Device or resource busy
mini2440_init: Boot mode: NAND
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
QEMU: ee24c08_init
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
QEMU mini2440_reset: loaded default u-boot from NAND
QEMU mini2440_reset: loaded override u-boot (size 3ea00)
mini2440/mini2440_start.sh: line 33:  4856 浮点数例外         $cmd
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-04-30 23:54
你在什么系统上用的qemu? 我想这个qemu只在Ubuntu或Debian上验证过。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 68178
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
综合积分: 20 分
注册时间: 2012-04-19
最后登录: 2012-09-02
2楼  发表于: 2012-05-01 08:03
因为学习需要,所以用的是Fedora11
现在在装ubuntu了,再试试
级别: 新手上路
UID: 68178
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
综合积分: 20 分
注册时间: 2012-04-19
最后登录: 2012-09-02
3楼  发表于: 2012-05-02 19:15
在ubuntu10.10上编译顺利了些,但是还是提示“浮点数例外”,怎么办呢

TUNSETIFF: Device or resource busy
mini2440_init: Boot mode: NAND
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
QEMU: ee24c08_init
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
QEMU mini2440_reset: loaded default u-boot from NAND
QEMU mini2440_reset: loaded override u-boot (size 3a800)
QEMU mini2440_reset: loaded ./mini2440/uImage (size 1f0200)
Floating point exception
[ 此帖被猎狩人间在2012-05-02 22:25重新编辑 ]
星星之火,可以燎原
级别: 骑士
UID: 42844
精华: 2
发帖: 140
金钱: 805 两
威望: 161 点
综合积分: 320 分
注册时间: 2011-04-11
最后登录: 2016-05-23
4楼  发表于: 2012-06-05 11:14

 回 3楼(猎狩人间) 的帖子

唉,对于这个问题,我也很郁闷的,这个现象的出现次数是很随机的,有时候出现,有时候又很正常,特别是我离开电脑一段时间,再回来实验又好了,但是有时候连重启机器,都不管用!
星星之火,可以燎原!
星星之火,可以燎原
级别: 骑士
UID: 42844
精华: 2
发帖: 140
金钱: 805 两
威望: 161 点
综合积分: 320 分
注册时间: 2011-04-11
最后登录: 2016-05-23
5楼  发表于: 2012-06-05 11:28
哈哈哈!!!我终于解决这个问题啦!我在http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/5.8_Technical_Notes/kvm.html这里面看到一段话:


During the boot process inside the qemu-kvm utility, the screen was resized to the height of 1. A mouse click at this point caused a division by zero (the SIGFPE signal was sent) when calculating the absolute position of the pointer from the pixel. As a consequence, qemu-kvm terminated with the "Floating point exception" error. With this update, mouse click coordinates are forced to return values from the middle of the screen, so that qemu-kvm no longer terminates in the described scenario.


它的意思是说,终端命令行的屏幕太小了,需要把它放大一些,才可以用,所以当我把终端放大到全屏的时候,这个问题瞬间就被解决了,大家可以好好的试一试,反正我这边利用这种方法,暂时是没有问题的!
星星之火,可以燎原!