Bochs-2.6配置文件

来源:互联网 发布:手机工作计划软件 编辑:程序博客网 时间:2024/05/16 01:28
配置文件描述你模拟的计算机是什么样子的。

可以用man bochs查看。bochs的默认安装目录为/usr/local/bin/bochs

/usr/local/lib/bochs。

其有用的ROM镜像文件等安装在/usr/local/share/bochs/下
配置例子文件在/usr/local/share/doc/bochs/bochs-example.txt

在bochs中运行一个系统,最少需要以下资源:bochs执行文件,bios映像文件
(BIOS-bochs-latest),vga bios映像文件(VGABIOS-lgp1-latest),引导启动磁盘
映像文件(软盘、硬盘或CDROM的映像文件)。

首先,用man bochs查看相关信息, 在OPTIONS描述中可知Debian下安装的bochs-2.6中,
提示启动bochs时,在“当前目录下查找.bochsrc文件,找不到,则去家目录查找”。


所以,我把配置文件.bochsrc放在当前目录中。


简单的配置文件如下:

################################################
#configure file for Bochs
################################################

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

# filename of Rom images, 注意下边要根据你安装目录来调整
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/local/share/bochs/vgabios/vgabios.bin

#what disk images will be used
floppya: 1_44=a.image, 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_mapping: enabled=1, map=/usr/local/share/bochs/keymaps/x11-pc-us.map

启动bochs,提示找不到软盘,OK配置成功。下来就是制作软盘启动磁盘。