Bochs-2.6配置文件

配置文件描述你模拟的计算机是什么样子的。

可以用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配置成功。下来就是制作软盘启动磁盘。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值