Bochs is exiting with the following message:
[ ] bochsrc.bxrc:1: a bochsrc option needs at least one parameter
错误原因:
- 文件的编码,从 UTF-8 换成 ANSI 就好了
- 不过之后换回 UTF-8 也可以运行了...
bochs 配置文件 内容如下
#how much memory the emulated machine will have
megs:32
#filename of ROM images
romimage:file=BIOS-bochs-latest,address=Oxf0000
vgaromimage:file=VGABIOS-lgpl-latest
#what disk images will be used
floppya:1_44=a.img,status=inserted
#Choose the boot disk
boot:a
#where do we send log messages?
log:bochsout.txt
-
配置文件内容正确,a.img 也在 bochs 目录里,使用cmd 在这个目录下输入 bochs -q -f bochsrc.txt,然而报错?
-
提示好像在说至少要设置一个参数,可是我里面明明设置了那么多参数
-
所以我认为可能是 bochs 没有读懂我的 配置文件,所以 我修改了编码,成功debug