操作系统真象还原中bochs的bochsrc.disk配置bochs2.6.9

最近重新学习os,在配置bochs2.6.9时百度了许久没有结果,最终发现问题,bochs目录不对,我先贴出我的目录

#Bochs运行中使用的内存,设置为32M
megs: 32

#设置真实机器的BIOS和VGA BIOS
#修改成你们对应的地址
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest

#设置Bochs所使用的磁盘
#设置启动盘符
boot: disk

#设置日志文件的输出
log: bochs.out

#开启或关闭某些功能,修改成你们对应的地址
mouse: enabled=0
keyboard:keymap=/usr/local/share/bochs/keymaps/x11-pc-us.map

#硬盘设置
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="hd60M.img", mode=flat, cylinders=121, heads=16, spt=63

#增加bochs对gdb的支持,我们在这里不使用,所以注释掉了
#gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0

我是which bochs搜索到自己的安装目录,确定安装目录后其他的就简单了

你可能感兴趣的:(os,初学者)