我正在做一个叫做pintos的操作系统编程项目。它在boch上运行,命令是pintos run nameOfProcess
下面是我得到的错误信息
Writing command line to /tmp/eKW3NMXoGT.dsk...
squish-pty bochs -q
========================================================================
Bochs x86 Emulator 2.5.1.svn
Built from SVN snapshot, after release 2.5.1
Compiled on Apr 6 2012 at 19:37:19
========================================================================
00000000000i[ ] reading configuration from bochsrc.txt
00000000000i[ ] installing x module as the Bochs GUI
00000000000i[ ] using log file bochsout.txt
Next at t=0
Writing command line to /tmp/eKW3NMXoGT.dsk...
squish-pty bochs -q
========================================================================
Bochs x86 Emulator 2.5.1.svn
Built from SVN snapshot, after release 2.5.1
Compiled on Apr 6 2012 at 19:37:19
========================================================================
00000000000i[ ] reading configuration from bochsrc.txt
00000000000i[ ] installing x module as the Bochs GUI
00000000000i[ ] using log file bochsout.txt
Next at t=0
(0) [0x00000000fffffff0] f000:fff0 (unk. ctxt): (invalid) ; ffff
<bochs:1> fgets() returned ERROR.
debugger interrupt request was 0
(0).[0] [0x00000000fffffff0] f000:fff0 (unk. ctxt): (invalid) ; ffff
(0) [0x00000000fffffff0] f000:fff0 (unk. ctxt): (invalid) ; ffff
<bochs:1> fgets() returned ERROR.
debugger interrupt request was 0
(0).[0] [0x00000000fffffff0] f000:fff0 (unk. ctxt): (invalid) ; ffff还有我的bochsrc.txt
romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xe0000
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
boot: disk
cpu: ips=1000000
megs: 4
log: bochsout.txt
panic: action=fatal
clock: sync=none, time0=0
ata0-master: type=disk, path=/tmp/eKW3NMXoGT.dsk, mode=flat, cylinders=1, heads=16, spt=63, translation=none
com1: enabled=1, mode=term, dev=/dev/stdoutBochs是在我的Ubuntu11.04上通过额外的配置从源代码构建的
发布于 2013-09-29 18:11:45
我也有同样的问题,我问了一个question on OSDev forum。我使用file=$BXSHARE/ BIOS -bochs-legacy,因为我需要64K的BIOS。它不适用于:
旧版romimage:
=$BXSHARE/BIOS-bochs-旧版,address=0xf0000
在.bochsrc文件中。而且它没有"address=0xf0000“部分就可以工作。
尝试在此处删除BIOS的起始地址:
最新镜像:
=$BXSHARE/BIOS-bochs- address=0xe0000
只需离开:
romimage: file=$BXSHARE/BIOS-bochs-latest
在你的bochsrc.txt中
发布于 2012-09-27 03:01:54
安装qemu,而不是bosch:
sudo apt-get install qemu如果qemu的版本是最近的,那么您需要创建一个从"qemu-system-i386“到"qemu”的simbolyc链接。
sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu如果qemu的版本低于1.0,则不需要执行此操作。现在,您可以使用qemu运行Pintos,例如:
pintos --qemu -- run alarm-multiplehttps://stackoverflow.com/questions/10050524
复制相似问题