Summary Bochs bochsrc.bxrc Configure File


PLUGIN_CTRL:
控制PC設備插入哪些硬件選件。
#plugin_ctrl: unmapped=0, e1000=1 # unload 'unmapped' and load 'e1000'
CONFIG_INTERFACE:
控制Bochs軟件的控制界面。
#config_interface: textconfig
#config_interface: win32config
#config_interface: wx
DISPLAY_LIBRARY:
控制顯示器的模式。
#display_library: amigaos
#display_library: carbon
#display_library: macintosh
#display_library: nogui
#display_library: rfb
#display_library: sdl, options="fullscreen" # startup in fullscreen mode
#display_library: sdl2, options="fullscreen" # startup in fullscreen mode
#display_library: term
#display_library: vncsrv
#display_library: win32
#display_library: wx
#display_library: x
CPU:
CPU型號。
cpu: model=core2_penryn_t9600, count=1, ips=50000000, reset_on_triple_fault=1, ignore_bad_msrs=1, msrs="msrs.def"
cpu: cpuid_limit_winnt=0
CPUID:
CPU的核心功能組的設置。
#cpuid: x86_64=1, mmx=1, sep=1, simd=sse4_2, apic=xapic, aes=1, movbe=1, xsave=1
#cpuid: family=6, model=0x1a, stepping=5
MEMORY:
memory: guest=512, host=256
ROMIMAGE:
BIOS 建議用最近的。
romimage: file=$BXSHARE/BIOS-bochs-latest
VGAROMIMAGE:
file=$BXSHARE/VGABIOS-lgpl-latest
VGA:
顯示參數的配置。
#vga: extension=vbe, update_freq=5, realtime=1
VOODOO:
顯卡的擴展配置。
#voodoo: enabled=1, model=voodoo1
KEYBOARD:
鍵盤的參數設置。
#keyboard: type=mf, serial_delay=250
MOUSE:
鼠標參數設置。
mouse: enabled=0
PCI:
PCI的配置。
pci: enabled=1, chipset=i440fx
CLOCK:
實時時鐘設置。
#clock: sync=none, time0=local
CMOSIMAGE:
CMOS RAM的問題。
#cmosimage: file=cmos.img, rtc_init=time0
FLOPPYA:
floppya: 1_44=/dev/fd0, status=inserted
FLOPPYB:
#floppyb: 1_44=b.img, status=inserted
ATA0, ATA1, ATA2, ATA3:
硬盤控制器設置。
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9
ATA[0-3]-MASTER, ATA[0-3]-SLAVE:
定義ATA硬盤特性。
ata0-master: type=disk, mode=flat, path="30M.sample"
#ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17
#ata0-master: type=disk, mode=flat, path="c.img", cylinders=0 # autodetect
#ata0-slave: type=disk, mode=vvfat, path=/bochs/images/vvfat, journal=vvfat.redolog
#ata0-slave: type=cdrom, path=D:, status=inserted
#ata0-slave: type=cdrom, path=/dev/cdrom, status=inserted
#ata0-slave: type=cdrom, path="drive", status=inserted
#ata0-slave: type=cdrom, path=/dev/rcd0d, status=inserted
BOOT:
定義啓動順序。
boot: network, disk
boot: cdrom, floppy, disk
FLOPPY_BOOTSIG_CHECK: disabled=[0|1]
0xaa55啓動參數標記檢查。
floppy_bootsig_check: disabled=0
LOG:
#log: /dev/null
log: bochsout.txt
LOGPREFIX:
設置log頭的格式。
#logprefix: %t%e%d
LOG CONTROLS:
panic: action=ask
error: action=report
info: action=report
debug: action=ignore, pci=report # report BX_DEBUG from module 'pci'
DEBUGGER_LOG:
#debugger_log: /dev/null
#debugger_log: debugger.out
debugger_log: -
COM1, COM2, COM3, COM4:
COM口的參數設置。
#com1: enabled=1, mode=term, dev=/dev/ttyp9
PARPORT1, PARPORT2:
parport1: enabled=1, file="parport.out"
SOUND:
設置聲卡參數。
sound: driver=default, waveout=/dev/dsp. wavein=, midiout=
SPEAKER:
speaker: enabled=1, mode=sound
SB16:
SB16 sound emulation。
#sb16: midimode=1, wavemode=1, loglevel=2, log=sb16.log, dmatimer=600000
ne2k: NE2000 compatible ethernet adapter
NE2000網卡。
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0
pcipnic: Bochs/Etherboot pseudo-NIC
#pcipnic: enabled=1, mac=b0:c4:20:00:00:00, ethmod=vnet
e1000: Intel(R) 82540EM Gigabit Ethernet adapter
#e1000: enabled=1, mac=52:54:00:12:34:56, ethmod=slirp, script=slirp.conf
USB_UHCI:
#usb_uhci: enabled=1, port1=mouse, port2=disk:usbstick.img
PCIDEV:
#pcidev: vendor=0x1234, device=0x5678
GDBSTUB:
#gdbstub: enabled=0, port=1234, text_base=0, data_base=0, bss_base=0
MEGS:
設置物理內存大小。
#megs: 32





















發佈了30 篇原創文章 · 獲贊 39 · 訪問量 13萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章