2012-04-06 62 views
3

我正在開發一個名爲pintos的OS編程項目。它是在Bochs的命令pintos run nameOfProcess在bochs上運行操作系統返回錯誤

在這裏,下面年代的錯誤信息來看,我得到

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/stdout 

Bochs的從源代碼構建與在我的Ubuntu的額外配置11.04

回答

2

安裝qemu代替bosch:

sudo apt-get install qemu 

如果QEMU的版本是最近的,那麼你需要從「QEMU系統-I386」到「QEMU」

sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu 

創建simbolyc鏈接如果QEMU的版本是未成年人1.0你不需要這樣做。現在,您可以用QEMU,例如運行Pintos:

pintos --qemu -- run alarm-multiple 
+0

是的。這就是我所做的,但問題不會消失,對吧? – manuzhang 2012-09-27 00:54:28

4

我有同樣的問題,我問一個question on OSDev forum。 我使用file = $ BXSHARE/BIOS-bochs-legacy,因爲我需要64K BIOS。它沒有工作與:

ROMIMAGE:文件= $ BXSHARE/BIOS-bochs的遺留,地址= 0xf0000

在.bochsrc文件。它沒有「address = 0xf0000」部分。

嘗試刪除此BIOS的起始地址:

ROMIMAGE:文件= $ BXSHARE/BIOS-bochs的,最新的,地址= 0xe0000

剛剛離開:

romimage:file = $ BXSHARE/BIOS-bochs-latest

在你的bochsrc.txt中

相關問題