gpt4 book ai didi

bochs - 在 bochs 上运行操作系统返回错误

转载 作者:行者123 更新时间:2023-12-01 11:01:38 26 4
gpt4 key购买 nike

我正在从事一个名为 pintos 的操作系统编程项目。它按照命令 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 上使用额外配置从源代码构建的

最佳答案

我有同样的问题,我问了question on OSDev forum .我使用 file=$BXSHARE/BIOS-bochs-legacy 因为我需要 64K BIOS。它不适用于:

romimage: file=$BXSHARE/BIOS-bochs-legacy, address=0xf0000

在 .bochsrc 文件中。它在没有“address=0xf0000”部分的情况下工作。

这里尝试删除BIOS的起始地址:

romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xe0000

就这样离开吧

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

在你的 bochsrc.txt 中

关于bochs - 在 bochs 上运行操作系统返回错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10050524/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com