linux-0.11调试教程,Bochs-2.1.1配置文件,精简版可拷贝,及img文件制作过程

说明1:BIOS-bochs-latest文件和VGABIOS-elpin-2.40文件都在bochs安装目录下,既C:\Program Files\Bochs-2.1.1

说明2:bootimage-0.11-hddiskb.imghdc-0.11.img都是用户自己制作或下载的别人制作好的文件。

下面是bochsrc-hd.bxrc文件的内容

romimage: file=$BXSHARE\BIOS-bochs-latest, address=0xf0000

megs: 16
vgaromimage: $BXSHARE\VGABIOS-elpin-2.40
floppya: 1_44="bootimage-0.11-hd", status=inserted
floppyb: 1_44=diskb.img, status=inserted
ata0-master: type=disk, path="hdc-0.11.img", mode=flat, cylinders=121, heads=16, spt=63
boot: a
log: bochsout.txt
parport1: enable=0
vga_update_interval: 300000
keyboard_serial_delay: 200
keyboard_paste_delay: 100000
floppy_command_delay: 50000
ips: 4000000
mouse: enabled=0
private_colormap: enabled=0
fullscreen: enabled=0

screenmode: name="sample"



到C:\Program Files\Bochs-2.1.1\目录下运行bximage.exe文件,也可到开始菜单->程序->Bochs2.1.1->下的Disk Image Creation Tool运行之,一路回车即可,制作的是10M的img硬盘映像文件,当然可以在[10]后面输入64即可制作64M的img文件。

========================================================================
                                bximage
                  Disk Image Creation Tool for Bochs
        $Id: bximage.c,v 1.19 2003/08/01 01:20:00 cbothamy Exp $
========================================================================

Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd]

What kind of image should I create?
Please type flat, sparse or growing. [flat]

Enter the hard disk size in megabytes, between 1 and 32255
[10]

I will create a 'flat' hard disk image with
  cyl=20
  heads=16
  sectors per track=63
  total sectors=20160
  total size=9.84 megabytes

What should I name the image?
[c.img]

Writing: [] Done.

I wrote 10321920 bytes to (null).

The following line should appear in your bochsrc:
  ata0-master: type=disk, path="c.img", mode=flat,cylinders=20, heads=16, spt=63

Press any key to continue


说明1:这个刚刚制作的img文件应该对应你的bochs配置文件yourname.bxrc里面的这一行:

ata0-master: type=disk, path="c.img", mode=flat,cylinders=20, heads=16, spt=63

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值