bochsrc配置文件

Orange'S一个操作系统的实现,原书第二版。

ubuntu22.04环境下。

第二章Bochs的使用,关于bochsrc配置文件,更新为下列代码,修改了第9,10行和第27行。

###############################################################
# Configuration file for Bochs
###############################################################

# how much memory the emulated machine will have
megs: 32

# filename of ROM images
romimage: file=$BXSHARE/BIOS-bochs-legacy
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
#romimage: file=/usr/share/bochs/BIOS-bochs-latest
#vgaromimage: file=/usr/share/vgabios/VGABIOS-lgpl-latest

# what disk images will be used 
floppya: 1_44=a.img, status=inserted

# choose the boot disk.
boot: floppy

# where do we send log messages?
log: bochsout.txt

# disable the mouse
mouse: enabled=0

# enable key mapping, using US layout as default.
keyboard:keymap=/usr/share/bochs/keymaps/x11-pc-us.map

即可成功运行。

参考链接:https://bochs.sourceforge.io/doc/docbook/user/bochsrc.html

posted @ 2023-12-08 16:34  Littline  阅读(165)  评论(0)    收藏  举报