Bochs 总结篇

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/for_cxc/article/details/89391075

制作 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有效)

扫描二维码关注公众号,回复: 6054202 查看本文章

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

猜你喜欢

转载自blog.csdn.net/for_cxc/article/details/89391075