Bochs 总结篇

制作 img 映像文件

不管是硬盘hd还是软盘fd,统一使用如下步骤:

1、在 当前目录 打开 cmd

2、执行 bximage 命令

3、然后按它的步骤创建

4、最后会在当前目录下生成的 img 文件

 

硬盘映像配置文件示例

文件名及后缀名:bochsrc.bxrc 

megs: 32

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

# hard disk
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="hd1.img", cylinders=1040, heads=16, spt=63
# choose the boot disk.
boot: disk

log: bochsout.txt

mouse: enabled=0

cpu: ips=15000000
clock: sync=both

keyboard: keymap=$BXSHARE/keymaps/x11-pc-us.map

软盘映像配置文件示例

文件名及后缀名:bochsrc.bxrc


megs: 32

# filename of ROM images
romimage: file=$BXSHARE/BIOS-bochs-latest
vgaromimage: file=$BXSHARE/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, since DLX is text only
mouse: enabled=0

# set up IPS value and clock sync
cpu: ips=15000000
clock: sync=both

keyboard: keymap=$BXSHARE/keymaps/x11-pc-us.map

 

开机运行

bochs -f bochsrc

如果你输入一个不带任何参数的Bochs并执行之,那么Bochs将在当前目录顺序寻找以下文件作为默认配置文件:
.bochsrc
bochsrc
bochsrc.txt
bochsrc.bxrc(仅对Windows有效)

所以 “-f bochsrc” 参数其实是可以省略的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值