nbykcu 2023-01-16 16:04 采纳率: 100%
浏览 53
已结题

bochs为什么找不到配置文件

我在学习bochs的时候在bochs读取配置文件的时候bochs未能读取配置文件,显示错误如下

Please choose one: [2] 

What is the configuration file name?
To cancel, type 'none'. [none] bochsrc.disk
00000000000i[      ] reading configuration from bochsrc.disk
00000000000p[      ] >>PANIC<< reading from bochsrc.disk failed
========================================================================
Event type: PANIC
Device: [      ]
Message: reading from bochsrc.disk failed

A PANIC has occurred.  Do you want to:
  cont       - continue execution
  alwayscont - continue execution, and don't ask again.
               This affects only PANIC events from device [      ]
  die        - stop execution now
  abort      - dump core 
  debug      - continue and return to bochs debugger
Choose one of the actions above: [die] 

我不知道为什么会出现这种情况,我的配置文件内容如下

###############################################################  
# Configuration file for Bochs 
 ############################################################### 
 
# how much memory the emulated machine will have 
megs: 32 
 
# filename of ROM images 
romimage: file=/home/centos/bochs/bochs/share/bochs/BIOS-bochs-latest 
vgaromimage: file=/home/centos/bochs/bochs/share/bochs/VGABIOS-lgpl-latest 

# what disk images will be used 
#floppya: 1_44=a.img, status=inserted 
 
# choose the boot disk. 
#boot: floppy 
boot: disk
 
# where do we send log messages? 
log: bochsout.txt 
 
# disable the mouse
mouse: enabled=0 
keyboard_mapping: enable=1,
map=/home/centos/bochs/bochs/share/bochs/keymaps/x11-pc-us.map
 
# enable key mapping, using US layout as default. 
keyboard: keymap=/home/centos/bochs/bochs/share/bochs/keymaps/x11-pc-us.map

# Hard disk Settings
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14

#gdb support
gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0

###########################################################################

我用的是bochs2.6.9的版本,Linux的版本为centos7,我的bochs文件linux里显示是只读模式。配置文件放在了bin的文件目录下。
我想知道为什么bochs找不到配置文件,我用了很多方法都无法解决,希望大家能帮忙解决。

  • 写回答

2条回答 默认 最新

  • m0_54204465 2023-01-16 16:10
    关注

    这个错误可能是由于配置文件路径不正确导致的。请确保您在启动 bochs 时使用了正确的配置文件路径。另外,请确保 bochs 对配置文件所在目录有读取权限。如果您使用的是 Linux 系统,请检查 bochs 所在目录的权限设置。
    如果配置文件在正确的目录中,并且 bochs 有读取权限,但还是出现了这个问题,建议检查一下配置文件内容是否输入正确。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 1月25日
  • 已采纳回答 1月17日
  • 创建了问题 1月16日

悬赏问题

  • ¥15 用三极管设计—个共射极放大电路
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示