linux bochs 网卡,Bochs 在Windows和Linux下配置对比

Bochs是一个x86硬件平台的开源模拟器。它可以模拟各种硬件的配置。Bochs模拟的是整个PC平台,包括I/O设备、内存和BIOS。更为有趣的是,甚至可以不使用PC硬件来运行Bochs。事实上,它可以在任何编译运行Bochs的平台上模拟x86硬件。通过改变配置,可以指定使用的CPU(386、486或者586),以及内存大小等。一句话,Bochs是电脑里的“PC”。根据需要,Bochs还可以模拟多台PC,此外,它甚至还有自己的电源按钮。

Windows下bochs的配置文件说明

###############################################################

# bochsrc.txt file for zieckey's first OS boot disk image.

###############################################################

# how much memory the emulated machine will have  对内存的设置

megs: 32

# filename of ROM images   配置ROM的选项,也即BIOS的设置,一个是ROM一个是显存ROM,注意路径问题

romimage: file=../BIOS-bochs-latest, address=0xf0000

vgaromimage: file=../VGABIOS-lgpl-latest

# what disk images will be used   配置软盘镜像

floppya: 1_44=boot.img, status=inserted

#floppyb: 1_44=floppyb.img, status=inserted

# hard disk   配置硬盘镜像,也即软盘存在于硬盘上的位置

ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14

#ata0-master: type=disk, path="hd10meg.img", cylinders=306, heads=4, spt=17 这是dlxlinux的实例

# choose the boot disk. 配置启动目录,从软盘启动

boot: floppy

# default config interface is textconfig.

#config_interface: textconfig

#config_interface: wx

#display_library: x

# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga

# where do we send log messages?  配置bochs的日志文件

log: bochsout.log

# disable the mouse, since DLX is text only  配置鼠标,不要使用键盘的配置项

mouse: enabled=0

Linux下bochs的配置文件说明

基本同Windows的配置项

###############################################################

# Configuration file for Bochs

###############################################################

# how much memory the emulated machine will have

megs: 32

# filename of ROM images

romimage: file=/usr/share/bochs/BIOS-bochs-latest

vgaromimage: /usr/share/vgabios/vgabios.bin  注意路径与windows下使用的文件的区分

# what disk images will be used

floppya: 1_44=freedos.img, status=inserted

floppyb: 1_44=pm.img, status=inserted

# choose the boot disk.

boot: a

# 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/share/bochs/keymaps/x11-pc-us.map  注意路径问题0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值