| 1 |
# You may now use double quotes around pathnames, in case |
| 2 |
# your pathname includes spaces. |
| 3 |
|
| 4 |
#======================================================================= |
| 5 |
# PLUGIN_CTRL: |
| 6 |
# Controls the presence of optional device plugins. These plugins are loaded |
| 7 |
# directly with this option and some of them install a config option that is |
| 8 |
# only available when the plugin device is loaded. The value "1" means to load |
| 9 |
# the plugin and "0" will unload it (if loaded before). |
| 10 |
# |
| 11 |
# These plugins will be loaded by default (if present): 'biosdev', 'extfpuirq', |
| 12 |
# 'gameport', 'iodebug','parallel', 'serial', 'speaker' and 'unmapped'. |
| 13 |
# |
| 14 |
# These plugins are also supported, but they are usually loaded directly with |
| 15 |
# their bochsrc option: 'e1000', 'es1370', 'ne2k', 'pcidev', 'pcipnic', 'sb16', |
| 16 |
# 'usb_ehci', 'usb_ohci', 'usb_uhci', 'usb_xhci' and 'voodoo'. |
| 17 |
#======================================================================= |
| 18 |
#plugin_ctrl: unmapped=0, e1000=1 # unload 'unmapped' and load 'e1000' |
| 19 |
|
| 20 |
#======================================================================= |
| 21 |
# CONFIG_INTERFACE |
| 22 |
# |
| 23 |
# The configuration interface is a series of menus or dialog boxes that |
| 24 |
# allows you to change all the settings that control Bochs's behavior. |
| 25 |
# Depending on the platform there are up to 3 choices of configuration |
| 26 |
# interface: a text mode version called "textconfig" and two graphical versions |
| 27 |
# called "win32config" and "wx". The text mode version uses stdin/stdout or |
| 28 |
# gui console (if available / runtime config) and is always compiled in, unless |
| 29 |
# Bochs is compiled for wx only. The choice "win32config" is only available on |
| 30 |
# win32/win64 and it is the default on these platforms. The choice "wx" is only |
| 31 |
# available when Bochs is compiled with wxWidgets support. If you do not write |
| 32 |
# a config_interface line, Bochs will choose a default for you. |
| 33 |
# |
| 34 |
# NOTE: if you use the "wx" configuration interface, you must also use |
| 35 |
# the "wx" display library. |
| 36 |
#======================================================================= |
| 37 |
#config_interface: textconfig |
| 38 |
#config_interface: win32config |
| 39 |
#config_interface: wx |
| 40 |
|
| 41 |
#======================================================================= |
| 42 |
# DISPLAY_LIBRARY |
| 43 |
# |
| 44 |
# The display library is the code that displays the Bochs VGA screen. Bochs |
| 45 |
# has a selection of about 10 different display library implementations for |
| 46 |
# different platforms. If you run configure with multiple --with-* options, |
| 47 |
# the display_library command lets you choose which one you want to run with. |
| 48 |
# If you do not write a display_library line, Bochs will choose a default for |
| 49 |
# you. |
| 50 |
# |
| 51 |
# The choices are: |
| 52 |
# x use X windows interface, cross platform |
| 53 |
# win32 use native win32 libraries |
| 54 |
# carbon use Carbon library (for MacOS X) |
| 55 |
# macintosh use MacOS pre-10 |
| 56 |
# amigaos use native AmigaOS libraries |
| 57 |
# sdl use SDL 1.2.x library, cross platform |
| 58 |
# sdl2 use SDL 2.x library, cross platform |
| 59 |
# term text only, uses curses/ncurses library, cross platform |
| 60 |
# rfb provides an interface to AT&T's VNC viewer, cross platform |
| 61 |
# vncsrv use LibVNCServer for extended RFB(VNC) support |
| 62 |
# wx use wxWidgets library, cross platform |
| 63 |
# nogui no display at all |
| 64 |
# |
| 65 |
# NOTE: if you use the "wx" configuration interface, you must also use |
| 66 |
# the "wx" display library. |
| 67 |
# |
| 68 |
# Specific options: |
| 69 |
# Some display libraries now support specific options to control their |
| 70 |
# behaviour. These options are supported by more than one display library: |
| 71 |
# |
| 72 |
# "cmdmode" - call a headerbar button handler after pressing F7 (sdl, sdl2, |
| 73 |
# win32, x) |
| 74 |
# "fullscreen" - startup in fullscreen mode (sdl, sdl2) |
| 75 |
# "gui_debug" - use GTK debugger gui (sdl, sdl2, x) / Win32 debugger gui (sdl, |
| 76 |
# sdl2, win32). When using the "globalini" extension the |
| 77 |
# debugger uses ini file from BXSHARE path (see below). |
| 78 |
# "hideIPS" - disable IPS output in status bar (rfb, sdl, sdl2, term, vncsrv, |
| 79 |
# win32, wx, x) |
| 80 |
# "nokeyrepeat" - turn off host keyboard repeat (sdl, sdl2, win32, x) |
| 81 |
# "no_gui_console" - use system console instead of builtin gui console |
| 82 |
# (rfb, sdl, sdl2, vncsrv, x) |
| 83 |
# "timeout" - time (in seconds) to wait for client (rfb, vncsrv) |
| 84 |
# |
| 85 |
# See the examples below for other currently supported options. |
| 86 |
# Setting up options without specifying display library is also supported. |
| 87 |
#======================================================================= |
| 88 |
#display_library: amigaos |
| 89 |
#display_library: carbon |
| 90 |
#display_library: macintosh |
| 91 |
#display_library: nogui |
| 92 |
#display_library: rfb |
| 93 |
#display_library: sdl |
| 94 |
#display_library: sdl2 |
| 95 |
#display_library: term |
| 96 |
#display_library: vncsrv |
| 97 |
# "traphotkeys" - system hotkeys not handled by host OS, but sent to guest |
| 98 |
# (win32 in mouse capture and fullscreen mode: alt-tab, win, |
| 99 |
# alt-space, alt-esc, ctrl-esc) |
| 100 |
# "autoscale" - scale small simulation window by factor 2, 4 or 8 depending |
| 101 |
# on desktop window size |
| 102 |
#display_library: win32, options="traphotkeys, autoscale" |
| 103 |
#display_library: wx |
| 104 |
#display_library: x, options="gui_debug:globalini" |
| 105 |
|
| 106 |
#======================================================================= |
| 107 |
# CPU: |
| 108 |
# This defines cpu-related parameters inside Bochs: |
| 109 |
# |
| 110 |
# MODEL: |
| 111 |
# Selects CPU configuration to emulate from pre-defined list of all |
| 112 |
# supported configurations. When this option is used and the value |
| 113 |
# is different from 'bx_generic', the parameters of the CPUID option |
| 114 |
# have no effect anymore. |
| 115 |
# |
| 116 |
# CPU configurations that can be selected: |
| 117 |
# ----------------------------------------------------------------- |
| 118 |
# i386 Intel 386SX |
| 119 |
# i486dx4 Intel 486DX4 |
| 120 |
# pentium Intel Pentium (P54C) |
| 121 |
# pentium_mmx Intel Pentium MMX |
| 122 |
# amd_k6_2_chomper AMD-K6(tm) 3D processor (Chomper) |
| 123 |
# athlon_xp AMD Athlon(tm) XP Processor |
| 124 |
# p2_klamath Intel Pentium II (Klamath) |
| 125 |
# p3_katmai Intel Pentium III (Katmai) |
| 126 |
# p4_willamette Intel(R) Pentium(R) 4 (Willamette) |
| 127 |
# core_duo_t2400_yonah Intel(R) Core(TM) Duo CPU T2400 (Yonah) |
| 128 |
# atom_n270 Intel(R) Atom(TM) CPU N270 |
| 129 |
# p4_prescott_celeron_336 Intel(R) Celeron(R) 336 (Prescott) |
| 130 |
# athlon64_clawhammer AMD Athlon(tm) 64 Processor 2800+ (Clawhammer) |
| 131 |
# athlon64_venice AMD Athlon(tm) 64 Processor 3000+ (Venice) |
| 132 |
# turion64_tyler AMD Turion(tm) 64 X2 Mobile TL-60 (Tyler) |
| 133 |
# phenom_8650_toliman AMD Phenom X3 8650 (Toliman) |
| 134 |
# core2_penryn_t9600 Intel Mobile Core 2 Duo T9600 (Penryn) |
| 135 |
# corei5_lynnfield_750 Intel(R) Core(TM) i5 750 (Lynnfield) |
| 136 |
# corei5_arrandale_m520 Intel(R) Core(TM) i5 M 520 (Arrandale) |
| 137 |
# corei7_sandy_bridge_2600k Intel(R) Core(TM) i7-2600K (Sandy Bridge) |
| 138 |
# zambezi AMD FX(tm)-4100 Quad-Core Processor (Zambezi) |
| 139 |
# trinity_apu AMD A8-5600K APU (Trinity) |
| 140 |
# ryzen AMD Ryzen 7 1700 |
| 141 |
# corei7_ivy_bridge_3770k Intel(R) Core(TM) i7-3770K CPU (Ivy Bridge) |
| 142 |
# corei7_haswell_4770 Intel(R) Core(TM) i7-4770 CPU (Haswell) |
| 143 |
# broadwell_ult Intel(R) Processor 5Y70 CPU (Broadwell) |
| 144 |
# corei7_skylake_x Intel(R) Core(TM) i7-7800X CPU (Skylake) |
| 145 |
# corei3_cnl Intel(R) Core(TM) i3-8121U CPU (Cannonlake) |
| 146 |
# corei7_icelake_u QuadCore Intel Core i7-1065G7 (IceLake) |
| 147 |
# tigerlake 11th Gen Intel(R) Core(TM) i5-1135G7 (TigerLake) |
| 148 |
# sapphire_rapids Intel(R) Xeon(R) w9-3475X (Sappire Rapids) |
| 149 |
# arrow_lake 15th Gen Intel(R) Core(TM) Ultra 5 245K (ArrowLake) |
| 150 |
# |
| 151 |
# ADD_FEATURES: |
| 152 |
# Enable one of more CPU feature in the CPU configuration selected by MODEL. |
| 153 |
# Could be useful for testing CPU with newer imaginary configurations by |
| 154 |
# adding a specific feature or set of features to existing MODEL. The list |
| 155 |
# of features to add supplied through space or comma separated string. |
| 156 |
# |
| 157 |
# EXCLUDE_FEATURES: |
| 158 |
# Disable one of more CPU feature from CPU configuration selected by MODEL. |
| 159 |
# Could be useful for testing CPU without a specific feature or set of |
| 160 |
# features. When experiening issues booting a modern OS it could be useful |
| 161 |
# to disable CPU features(s) to see if they responsible for the failures. |
| 162 |
# The list of features to exclude supplied through space or comma separated |
| 163 |
# string. |
| 164 |
# |
| 165 |
# COUNT: |
| 166 |
# Set the number of processors:cores per processor:threads per core when |
| 167 |
# Bochs is compiled for SMP emulation. Bochs currently supports up to |
| 168 |
# 14 threads (legacy APIC) or 254 threads (xAPIC or higher) running |
| 169 |
# simultaniosly. If Bochs is compiled without SMP support, it won't accept |
| 170 |
# values different from 1. |
| 171 |
# |
| 172 |
# QUANTUM: |
| 173 |
# Maximum amount of instructions allowed to execute by processor before |
| 174 |
# returning control to another cpu. This option exists only in Bochs |
| 175 |
# binary compiled with SMP support. |
| 176 |
# |
| 177 |
# RESET_ON_TRIPLE_FAULT: |
| 178 |
# Reset the CPU when triple fault occur (highly recommended) rather than |
| 179 |
# PANIC. Remember that if you trying to continue after triple fault the |
| 180 |
# simulation will be completely bogus ! |
| 181 |
# |
| 182 |
# CPUID_LIMIT_WINNT: |
| 183 |
# Determine whether to limit maximum CPUID function to 2. This mode is |
| 184 |
# required to workaround WinNT installation and boot issues. |
| 185 |
# |
| 186 |
# MSRS: |
| 187 |
# Define path to user CPU Model Specific Registers (MSRs) specification. |
| 188 |
# See example in msrs.def. |
| 189 |
# |
| 190 |
# IGNORE_BAD_MSRS: |
| 191 |
# Ignore MSR references that Bochs does not understand; print a warning |
| 192 |
# message instead of generating #GP exception. This option is enabled |
| 193 |
# by default but will not be available if configurable MSRs are enabled. |
| 194 |
# |
| 195 |
# MWAIT_IS_NOP: |
| 196 |
# When this option is enabled MWAIT will not put the CPU into a sleep state. |
| 197 |
# This option exists only if Bochs compiled with --enable-monitor-mwait. |
| 198 |
# |
| 199 |
# IPS: |
| 200 |
# Emulated Instructions Per Second. This is the number of IPS that bochs |
| 201 |
# is capable of running on your machine. You can recompile Bochs with |
| 202 |
# --enable-show-ips option enabled, to find your host's capability. |
| 203 |
# Measured IPS value will then be logged into your log file or shown |
| 204 |
# in the status bar (if supported by the gui). |
| 205 |
# |
| 206 |
# IPS is used to calibrate many time-dependent events within the bochs |
| 207 |
# simulation. For example, changing IPS affects the frequency of VGA |
| 208 |
# updates, the duration of time before a key starts to autorepeat, and |
| 209 |
# the measurement of BogoMips and other benchmarks. |
| 210 |
# |
| 211 |
# Examples: |
| 212 |
# |
| 213 |
# Bochs Machine/Compiler Mips |
| 214 |
# ______________________________________________________________________ |
| 215 |
# 2.4.6 3.4Ghz Intel Core i7 2600 with Win7x64/g++ 4.5.2 85 to 95 Mips |
| 216 |
# 2.3.7 3.2Ghz Intel Core 2 Q9770 with WinXP/g++ 3.4 50 to 55 Mips |
| 217 |
# 2.3.7 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 38 to 43 Mips |
| 218 |
# 2.2.6 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 21 to 25 Mips |
| 219 |
# 2.2.6 2.1Ghz Athlon XP with Linux 2.6/g++ 3.4 12 to 15 Mips |
| 220 |
#======================================================================= |
| 221 |
cpu: model=core2_penryn_t9600, count=1, ips=50000000, reset_on_triple_fault=1, ignore_bad_msrs=1, msrs="msrs.def" |
| 222 |
cpu: cpuid_limit_winnt=0 |
| 223 |
|
| 224 |
#======================================================================= |
| 225 |
# MEMORY |
| 226 |
# Set the amount of physical memory you want to emulate. |
| 227 |
# |
| 228 |
# GUEST: |
| 229 |
# Set amount of guest physical memory to emulate. The default is 32MB, |
| 230 |
# the maximum amount limited only by physical address space limitations. |
| 231 |
# |
| 232 |
# HOST: |
| 233 |
# Set amount of host memory you want to allocate for guest RAM emulation. |
| 234 |
# It is possible to allocate less memory than you want to emulate in guest |
| 235 |
# system. This will fake guest to see the non-existing memory. Once guest |
| 236 |
# system touches new memory block it will be dynamically taken from the |
| 237 |
# memory pool. You will be warned (by FATAL PANIC) in case guest already |
| 238 |
# used all allocated host memory and wants more. |
| 239 |
# |
| 240 |
# BLOCK_SIZE: |
| 241 |
# Memory block size select granularity of host memory allocation. Very |
| 242 |
# large memory configurations might requre larger memory blocks which |
| 243 |
# configurations with small memory might want memory block smaller. |
| 244 |
# Default memory block size is 128K. |
| 245 |
# |
| 246 |
#======================================================================= |
| 247 |
memory: guest=512, host=256, block_size=512 |
| 248 |
|
| 249 |
#======================================================================= |
| 250 |
# ROMIMAGE: |
| 251 |
# The ROM BIOS controls what the PC does when it first powers on. |
| 252 |
# Normally, you can use a precompiled BIOS in the source or binary |
| 253 |
# distribution called BIOS-bochs-latest. The default ROM BIOS is usually loaded |
| 254 |
# starting at address 0xfffe0000, and it is exactly 128k long. The legacy |
| 255 |
# version of the Bochs BIOS is usually loaded starting at address 0xffff0000, |
| 256 |
# and it is exactly 64k long. |
| 257 |
# The usage of external large BIOS images (up to 512k) at memory top is |
| 258 |
# now supported, but we still recommend to use the BIOS distributed with Bochs. |
| 259 |
# |
| 260 |
# FILE |
| 261 |
# Name of the BIOS image file. You can use the environment variable $BXSHARE |
| 262 |
# to specify the location of the BIOS. |
| 263 |
# |
| 264 |
# ADDRESS |
| 265 |
# The start address is optional, since it can be calculated from image size. |
| 266 |
# |
| 267 |
# OPTIONS |
| 268 |
# The Bochs BIOS currently only supports the option "fastboot" to skip the |
| 269 |
# boot menu delay. |
| 270 |
# |
| 271 |
# FLASH_DATA |
| 272 |
# This parameter defines the file name for the flash BIOS config space loaded |
| 273 |
# at startup if existing and saved on exit if modified. The Bochs BIOS doesn't |
| 274 |
# use this feature yet. |
| 275 |
# |
| 276 |
# Please note that if you use the BIOS-bochs-legacy romimage BIOS option, |
| 277 |
# you cannot use a PCI enabled VGA ROM BIOS. |
| 278 |
# Please note that if you use a SeaBIOS binary in romimage BIOS option, |
| 279 |
# you must use a PCI enabled VGA ROM BIOS. |
| 280 |
#======================================================================= |
| 281 |
romimage: file=$BXSHARE/BIOS-bochs-latest, options=fastboot |
| 282 |
#romimage: file=$BXSHARE/BIOS-bochs-legacy |
| 283 |
#romimage: file=$BXSHARE/bios.bin-1.13.0 # http://www.seabios.org/SeaBIOS |
| 284 |
#romimage: file=$BXSHARE/i440fx.bin, flash_data=escd.bin |
| 285 |
#romimage: file=asus_p6np5.bin, flash_data=escd.bin |
| 286 |
#romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top |
| 287 |
|
| 288 |
#======================================================================= |
| 289 |
# VGAROMIMAGE |
| 290 |
# You now need to load a VGA ROM BIOS into C0000. |
| 291 |
# Please note that if you use the BIOS-bochs-legacy romimage BIOS option, |
| 292 |
# you cannot use a PCI enabled VGA ROM BIOS option such as the cirrus |
| 293 |
# option shown below. |
| 294 |
#======================================================================= |
| 295 |
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest.bin |
| 296 |
#vgaromimage: file=bios/VGABIOS-lgpl-latest-cirrus.bin |
| 297 |
#vgaromimage: file=$BXSHARE/vgabios-cirrus.bin-1.13.0 # http://www.seabios.org/SeaVGABIOS |
| 298 |
#vgaromimage: file=bios/VGABIOS-elpin-2.40 |
| 299 |
|
| 300 |
#======================================================================= |
| 301 |
# OPTROMIMAGE[1-4]: |
| 302 |
# You may now load up to 4 optional ROM images. Be sure to use a |
| 303 |
# read-only area, typically between C8000 and EFFFF. These optional |
| 304 |
# ROM images should not overwrite the rombios (located at |
| 305 |
# F0000-FFFFF) and the videobios (located at C0000-C7FFF). |
| 306 |
# Those ROM images will be initialized by the bios if they contain |
| 307 |
# the right signature (0x55AA) and a valid checksum. |
| 308 |
# It can also be a convenient way to upload some arbitrary code/data |
| 309 |
# in the simulation, that can be retrieved by the boot loader |
| 310 |
#======================================================================= |
| 311 |
#optromimage1: file=optionalrom.bin, address=0xd0000 |
| 312 |
#optromimage2: file=optionalrom.bin, address=0xd1000 |
| 313 |
#optromimage3: file=optionalrom.bin, address=0xd2000 |
| 314 |
#optromimage4: file=optionalrom.bin, address=0xd3000 |
| 315 |
|
| 316 |
#optramimage1: file=/path/file1.img, address=0x0010000 |
| 317 |
#optramimage2: file=/path/file2.img, address=0x0020000 |
| 318 |
#optramimage3: file=/path/file3.img, address=0x0030000 |
| 319 |
#optramimage4: file=/path/file4.img, address=0x0040000 |
| 320 |
|
| 321 |
#======================================================================= |
| 322 |
# VGA: |
| 323 |
# This defines parameters related to the VGA display |
| 324 |
# |
| 325 |
# EXTENSION |
| 326 |
# Here you can specify the display extension to be used. With the value |
| 327 |
# 'none' you can use standard VGA with no extension. Other supported |
| 328 |
# values are 'vbe' for Bochs VBE, 'cirrus' for Cirrus SVGA support and |
| 329 |
# 'voodoo' for Voodoo Graphics support (see 'voodoo' option). |
| 330 |
# |
| 331 |
# UPDATE_FREQ |
| 332 |
# This parameter specifies the number of display updates per second. |
| 333 |
# The VGA update timer by default uses the realtime engine with a value |
| 334 |
# of 10 (valid: 1 to 75). This parameter can be changed at runtime. |
| 335 |
# The special value 0 enables support for using the frame rate of the |
| 336 |
# emulated graphics device. |
| 337 |
# |
| 338 |
# REALTIME |
| 339 |
# If set to 1 (default), the VGA timer is based on realtime, otherwise it |
| 340 |
# is driven by the cpu and depends on the ips setting. If the host is slow |
| 341 |
# (low ips, update_freq) and the guest uses HLT appropriately, setting this |
| 342 |
# to 0 and "clock: sync=none" may improve the responsiveness of the guest |
| 343 |
# GUI when the guest is otherwise idle. |
| 344 |
# |
| 345 |
# DDC |
| 346 |
# This parameter defines the behaviour of the DDC emulation that returns |
| 347 |
# the monitor EDID data. By default the 'builtin' values for 'Bochs Screen' |
| 348 |
# are used. Other choices are 'disabled' (no DDC emulation) and 'file' |
| 349 |
# (read monitor EDID from file / path name separated with a colon). |
| 350 |
# |
| 351 |
# VBE_MEMSIZE |
| 352 |
# With this parameter the size of the memory for the Bochs VBE extension |
| 353 |
# can be defined. Valid values are 4, 8, 16 and 32 MB (default is 16 MB). |
| 354 |
# Examples: |
| 355 |
# vga: extension=cirrus, update_freq=10, ddc=builtin |
| 356 |
#======================================================================= |
| 357 |
#vga: extension=vbe, update_freq=5, realtime=1, ddc=file:monitor.bin |
| 358 |
|
| 359 |
#======================================================================= |
| 360 |
# VOODOO: |
| 361 |
# This defines the Voodoo Graphics emulation (experimental). Currently |
| 362 |
# supported models are 'voodoo1', 'voodoo2', 'banshee' and 'voodoo3'. The |
| 363 |
# Voodoo2 support is not yet complete, but almost usable. The Banshee and |
| 364 |
# Voodoo3 support is under construction, but basically usable. The 2D/3D cards |
| 365 |
# require an external VGA BIOS the vga extension option to be set to 'voodoo'. |
| 366 |
# If the i440BX PCI chipset is selected, they can be assigned to AGP (slot #5). |
| 367 |
# The gui screen update timing for all models is controlled by the related 'vga' |
| 368 |
# options. |
| 369 |
# |
| 370 |
# Examples: |
| 371 |
# voodoo: enabled=1, model=voodoo2 |
| 372 |
#======================================================================= |
| 373 |
#voodoo: enabled=1, model=voodoo1 |
| 374 |
|
| 375 |
#======================================================================= |
| 376 |
# KEYBOARD: |
| 377 |
# This defines parameters related to the emulated keyboard |
| 378 |
# |
| 379 |
# TYPE: |
| 380 |
# Type of keyboard return by a "identify keyboard" command to the |
| 381 |
# keyboard controller. It must be one of "xt", "at" or "mf". |
| 382 |
# Defaults to "mf". It should be ok for almost everybody. A known |
| 383 |
# exception is french macs, that do have a "at"-like keyboard. |
| 384 |
# |
| 385 |
# SERIAL_DELAY: |
| 386 |
# Approximate time in microseconds that it takes one character to |
| 387 |
# be transferred from the keyboard to controller over the serial path. |
| 388 |
# |
| 389 |
# PASTE_DELAY: |
| 390 |
# Approximate time in microseconds between attempts to paste |
| 391 |
# characters to the keyboard controller. This leaves time for the |
| 392 |
# guest os to deal with the flow of characters. The ideal setting |
| 393 |
# depends on how your operating system processes characters. The |
| 394 |
# default of 100000 usec (.1 seconds) was chosen because it works |
| 395 |
# consistently in Windows. |
| 396 |
# If your OS is losing characters during a paste, increase the paste |
| 397 |
# delay until it stops losing characters. |
| 398 |
# |
| 399 |
# KEYMAP: |
| 400 |
# This enables a remap of a physical localized keyboard to a |
| 401 |
# virtualized us keyboard, as the PC architecture expects. |
| 402 |
# Using a language specifier instead of a file name is also supported. |
| 403 |
# A keymap is also required by the paste feature. |
| 404 |
# |
| 405 |
# USER_SHORTCUT: |
| 406 |
# This defines the keyboard shortcut to be sent when you press the "user" |
| 407 |
# button in the headerbar. The shortcut string is a combination of maximum |
| 408 |
# 3 key names (listed below) separated with a '-' character. |
| 409 |
# Valid key names: |
| 410 |
# "alt", "bksl", "bksp", "ctrl", "del", "down", "end", "enter", "esc", |
| 411 |
# "f1", ... "f12", "home", "ins", "left", "menu", "minus", "pgdwn", "pgup", |
| 412 |
# "plus", "power", "print", "right", "scrlck", "shift", "space", "tab", "up" |
| 413 |
# and "win". |
| 414 |
|
| 415 |
# Examples: |
| 416 |
# keyboard: type=mf, serial_delay=200, paste_delay=100000 |
| 417 |
# keyboard: keymap=gui/keymaps/x11-pc-de.map |
| 418 |
# keyboard: user_shortcut=ctrl-alt-del |
| 419 |
#======================================================================= |
| 420 |
#keyboard: type=mf, serial_delay=150 |
| 421 |
|
| 422 |
#======================================================================= |
| 423 |
# MOUSE: |
| 424 |
# This defines parameters for the emulated mouse type, the initial status |
| 425 |
# of the mouse capture and the runtime method to toggle it. |
| 426 |
# |
| 427 |
# TYPE: |
| 428 |
# With the mouse type option you can select the type of mouse to emulate. |
| 429 |
# The default value is 'ps2'. The other choices are 'imps2' (wheel mouse |
| 430 |
# on PS/2), 'serial', 'serial_wheel', 'serial_msys' (one com port requires |
| 431 |
# setting 'mode=mouse') 'inport' and 'bus' (if present). To connect a mouse |
| 432 |
# to a USB port, see the 'usb_uhci', 'usb_ohci', 'usb_ehci' or 'usb_xhci' |
| 433 |
# options (requires PCI and USB support). |
| 434 |
# |
| 435 |
# ENABLED: |
| 436 |
# The Bochs gui creates mouse "events" unless the 'enabled' option is |
| 437 |
# set to 0. The hardware emulation itself is not disabled by this. |
| 438 |
# Unless you have a particular reason for enabling the mouse by default, |
| 439 |
# it is recommended that you leave it off. You can also toggle the mouse |
| 440 |
# usage at runtime (RFB, SDL, Win32, wxWidgets and X11 - see below). |
| 441 |
# |
| 442 |
# TOGGLE: |
| 443 |
# The default method to toggle the mouse capture at runtime is to press the |
| 444 |
# CTRL key and the middle mouse button ('ctrl+mbutton'). This option allows |
| 445 |
# to change the method to 'ctrl+f10' (like DOSBox), 'ctrl+alt' (legacy QEMU), |
| 446 |
# 'ctrl+alt+g' (QEMU current) or 'f12'. |
| 447 |
# |
| 448 |
# Examples: |
| 449 |
# mouse: enabled=1 |
| 450 |
# mouse: type=imps2, enabled=1 |
| 451 |
# mouse: type=serial, enabled=1 |
| 452 |
# mouse: enabled=0, toggle=ctrl+f10 |
| 453 |
#======================================================================= |
| 454 |
mouse: enabled=0 |
| 455 |
|
| 456 |
#======================================================================= |
| 457 |
# PCI: |
| 458 |
# This defines the parameters to set up the Bochs PCI emulation: |
| 459 |
# |
| 460 |
# ENABLED: |
| 461 |
# If Bochs is compiled with PCI support, it is enabled by default. |
| 462 |
# |
| 463 |
# CHIPSET: |
| 464 |
# Currently the chipsets i430FX, i440FX and i440BX (limited) are supported and |
| 465 |
# the default is i440FX. |
| 466 |
# |
| 467 |
# SLOTx: |
| 468 |
# It is possible to specify the devices connected to PCI slots. Up to 5 slots |
| 469 |
# are available. For combined PCI/ISA devices assigning to slot is mandatory |
| 470 |
# if the PCI model should be emulated (cirrus, ne2k and pcivga). Setting up |
| 471 |
# slot for PCI-only devices is also supported, but they are auto-assigned if |
| 472 |
# not specified (e1000, es1370, pcidev, pcipnic, usb_ehci, usb_ohci, usb_xhci, |
| 473 |
# voodoo). All device models except the network devices ne2k and e1000 can be |
| 474 |
# used only once in the slot configuration. In case of the i440BX chipset, the |
| 475 |
# slot #5 is the AGP slot. Currently only the 'voodoo' device can be assigned |
| 476 |
# to AGP. |
| 477 |
# |
| 478 |
# ADVOPTS: |
| 479 |
# With the advanced PCI options it is possible to control the behaviour of the |
| 480 |
# PCI chipset. These options can be specified as comma-separated values. |
| 481 |
# By default the "Bochs i440FX" chipset enables the ACPI and HPET devices, but |
| 482 |
# original i440FX doesn't support them. The options 'noacpi' and 'nohpet' make |
| 483 |
# it possible to disable them. The option 'noagp' disables the incomplete AGP |
| 484 |
# subsystem of the i440BX chipset. |
| 485 |
# |
| 486 |
# Example: |
| 487 |
# pci: enabled=1, chipset=i440fx, slot1=pcivga, slot2=ne2k, advopts=noacpi |
| 488 |
#======================================================================= |
| 489 |
pci: enabled=1, chipset=i440fx |
| 490 |
|
| 491 |
#======================================================================= |
| 492 |
# CLOCK: |
| 493 |
# This defines the parameters of the clock inside Bochs: |
| 494 |
# |
| 495 |
# SYNC: |
| 496 |
# This defines the method how to synchronize the Bochs internal time |
| 497 |
# with realtime. With the value 'none' the Bochs time relies on the IPS |
| 498 |
# value and no host time synchronization is used. The 'slowdown' method |
| 499 |
# sacrifices performance to preserve reproducibility while allowing host |
| 500 |
# time correlation. The 'realtime' method sacrifices reproducibility to |
| 501 |
# preserve performance and host-time correlation. |
| 502 |
# It is possible to enable both synchronization methods. |
| 503 |
# |
| 504 |
# RTC_SYNC: |
| 505 |
# If this option is enabled together with the realtime synchronization, |
| 506 |
# the RTC runs at realtime speed. This feature is disabled by default. |
| 507 |
# |
| 508 |
# TIME0: |
| 509 |
# Specifies the start (boot) time of the virtual machine. Use a time |
| 510 |
# value as returned by the time(2) system call or a string as returned |
| 511 |
# by the ctime(3) system call. If no time0 value is set or if time0 |
| 512 |
# equal to 1 (special case) or if time0 equal 'local', the simulation |
| 513 |
# will be started at the current local host time. If time0 equal to 2 |
| 514 |
# (special case) or if time0 equal 'utc', the simulation will be started |
| 515 |
# at the current utc time. |
| 516 |
# |
| 517 |
# Syntax: |
| 518 |
# clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc] |
| 519 |
# |
| 520 |
# Example: |
| 521 |
# clock: sync=none, time0=local # Now (localtime) |
| 522 |
# clock: sync=slowdown, time0=315529200 # Tue Jan 1 00:00:00 1980 |
| 523 |
# clock: sync=none, time0="Mon Jan 1 00:00:00 1990" # 631148400 |
| 524 |
# clock: sync=realtime, time0=938581955 # Wed Sep 29 07:12:35 1999 |
| 525 |
# clock: sync=realtime, time0="Sat Jan 1 00:00:00 2000" # 946681200 |
| 526 |
# clock: sync=none, time0=1 # Now (localtime) |
| 527 |
# clock: sync=none, time0=utc # Now (utc/gmt) |
| 528 |
# |
| 529 |
# Default value are sync=none, rtc_sync=0, time0=local |
| 530 |
#======================================================================= |
| 531 |
#clock: sync=none, time0=local |
| 532 |
|
| 533 |
#======================================================================= |
| 534 |
# CMOSIMAGE: |
| 535 |
# This defines a binary image file with size 128 bytes that can be loaded into |
| 536 |
# the CMOS RAM at startup. The rtc_init parameter controls whether initialize |
| 537 |
# the RTC with values stored in the image. By default the time0 argument given |
| 538 |
# to the clock option is used. With 'rtc_init=image' the image is the source |
| 539 |
# for the initial time. |
| 540 |
# |
| 541 |
# Example: |
| 542 |
# cmosimage: file=cmos.img, rtc_init=image |
| 543 |
#======================================================================= |
| 544 |
#cmosimage: file=cmos.img, rtc_init=time0 |
| 545 |
|
| 546 |
#======================================================================= |
| 547 |
# private_colormap: Request that the GUI create and use it's own |
| 548 |
# non-shared colormap. This colormap will be used |
| 549 |
# when in the bochs window. If not enabled, a |
| 550 |
# shared colormap scheme may be used. Not implemented |
| 551 |
# on all GUI's. |
| 552 |
# |
| 553 |
# Examples: |
| 554 |
# private_colormap: enabled=1 |
| 555 |
# private_colormap: enabled=0 |
| 556 |
#======================================================================= |
| 557 |
private_colormap: enabled=0 |
| 558 |
|
| 559 |
#======================================================================= |
| 560 |
# FLOPPYA: |
| 561 |
# Point this to pathname of floppy image file or device |
| 562 |
# This should be of a bootable floppy(image/device) if you're |
| 563 |
# booting from 'a' (or 'floppy'). |
| 564 |
# |
| 565 |
# You can set the initial status of the media to 'ejected' or 'inserted'. |
| 566 |
# floppya: 2_88=path, status=ejected (2.88M 3.5" media) |
| 567 |
# floppya: 1_44=path, status=inserted (1.44M 3.5" media) |
| 568 |
# floppya: 1_2=path, status=ejected (1.2M 5.25" media) |
| 569 |
# floppya: 720k=path, status=inserted (720K 3.5" media) |
| 570 |
# floppya: 360k=path, status=inserted (360K 5.25" media) |
| 571 |
# floppya: 320k=path, status=inserted (320K 5.25" media) |
| 572 |
# floppya: 180k=path, status=inserted (180K 5.25" media) |
| 573 |
# floppya: 160k=path, status=inserted (160K 5.25" media) |
| 574 |
# floppya: image=path, status=inserted (guess media type from image size) |
| 575 |
# floppya: 1_44=vvfat:path, status=inserted (use directory as VFAT media) |
| 576 |
# floppya: type=1_44 (1.44M 3.5" floppy drive, no media) |
| 577 |
# |
| 578 |
# The path should be the name of a disk image file. On Unix, you can use a raw |
| 579 |
# device name such as /dev/fd0 on Linux. On win32 platforms, use drive letters |
| 580 |
# such as a: or b: as the path. The parameter 'image' works with image files |
| 581 |
# only. In that case the size must match one of the supported types. |
| 582 |
# The parameter 'type' can be used to enable the floppy drive without media |
| 583 |
# and status specified. Usually the drive type is set up based on the media type. |
| 584 |
# The optional parameter 'write_protected' can be used to control the media |
| 585 |
# write protect switch. By default it is turned off. |
| 586 |
#======================================================================= |
| 587 |
floppya: 1_44=/dev/fd0, status=inserted |
| 588 |
#floppya: image=../1.44, status=inserted |
| 589 |
#floppya: 1_44=/dev/fd0H1440, status=inserted |
| 590 |
#floppya: 1_2=../1_2, status=inserted |
| 591 |
#floppya: 1_44=a:, status=inserted |
| 592 |
#floppya: 1_44=a.img, status=inserted, write_protected=1 |
| 593 |
#floppya: 1_44=/dev/rfd0a, status=inserted |
| 594 |
|
| 595 |
#======================================================================= |
| 596 |
# FLOPPYB: |
| 597 |
# See FLOPPYA above for syntax |
| 598 |
#======================================================================= |
| 599 |
#floppyb: 1_44=b:, status=inserted |
| 600 |
#floppyb: 1_44=b.img, status=inserted |
| 601 |
|
| 602 |
#======================================================================= |
| 603 |
# ATA0, ATA1, ATA2, ATA3 |
| 604 |
# ATA controller for hard disks and cdroms |
| 605 |
# |
| 606 |
# ata[0-3]: enabled=[0|1], ioaddr1=addr, ioaddr2=addr, irq=number |
| 607 |
# |
| 608 |
# These options enables up to 4 ata channels. For each channel |
| 609 |
# the two base io addresses and the irq must be specified. |
| 610 |
# |
| 611 |
# ata0 and ata1 are enabled by default with the values shown below |
| 612 |
# |
| 613 |
# Examples: |
| 614 |
# ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14 |
| 615 |
# ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15 |
| 616 |
# ata2: enabled=1, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11 |
| 617 |
# ata3: enabled=1, ioaddr1=0x168, ioaddr2=0x360, irq=9 |
| 618 |
#======================================================================= |
| 619 |
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14 |
| 620 |
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15 |
| 621 |
ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11 |
| 622 |
ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9 |
| 623 |
|
| 624 |
#======================================================================= |
| 625 |
# ATA[0-3]-MASTER, ATA[0-3]-SLAVE |
| 626 |
# |
| 627 |
# This defines the type and characteristics of all attached ata devices: |
| 628 |
# type= type of attached device [disk|cdrom] |
| 629 |
# mode= only valid for disks [flat|concat|dll|sparse|vmware3|vmware4] |
| 630 |
# [undoable|growing|volatile|vpc|vbox|vvfat] |
| 631 |
# path= path of the image / directory |
| 632 |
# cylinders= only valid for disks |
| 633 |
# heads= only valid for disks |
| 634 |
# spt= only valid for disks |
| 635 |
# status= only valid for cdroms [inserted|ejected] |
| 636 |
# biosdetect= type of biosdetection [auto|cmos|none] |
| 637 |
# translation=type of translation of the bios, only for disks [none|lba|large|rechs|auto] |
| 638 |
# model= string returned by identify device command |
| 639 |
# journal= optional filename of the redolog for undoable, volatile and vvfat disks |
| 640 |
# |
| 641 |
# Point this at a hard disk image file, cdrom iso file, or physical cdrom |
| 642 |
# device. To create a hard disk image, try running bximage. It will help you |
| 643 |
# choose the size and then suggest a line that works with it. |
| 644 |
# |
| 645 |
# In UNIX it may be possible to use a raw device as a Bochs hard disk, |
| 646 |
# but WE DON'T RECOMMEND IT. In Windows there is no easy way. |
| 647 |
# |
| 648 |
# In windows, the drive letter + colon notation should be used for cdroms. |
| 649 |
# Depending on versions of windows and drivers, you may only be able to |
| 650 |
# access the "first" cdrom in the system. On MacOSX, use path="drive" |
| 651 |
# to access the physical drive. |
| 652 |
# |
| 653 |
# The path is mandatory for hard disks. Disk geometry autodetection works with |
| 654 |
# images created by bximage if CHS is set to 0/0/0 (cylinders are calculated |
| 655 |
# using heads=16 and spt=63). For other hard disk images and modes the |
| 656 |
# cylinders, heads, and spt are mandatory. In all cases the disk size reported |
| 657 |
# from the image must be exactly C*H*S*512. |
| 658 |
# |
| 659 |
# Default values are: |
| 660 |
# mode=flat, biosdetect=auto, translation=auto, model="Generic 1234" |
| 661 |
# |
| 662 |
# The biosdetect option has currently no effect on the bios |
| 663 |
# |
| 664 |
# Examples: |
| 665 |
# ata0-master: type=disk, mode=flat, path=10M.sample, cylinders=306, heads=4, spt=17 |
| 666 |
# ata0-slave: type=disk, mode=flat, path=20M.sample, cylinders=615, heads=4, spt=17 |
| 667 |
# ata1-master: type=disk, mode=flat, path=30M.sample, cylinders=615, heads=6, spt=17 |
| 668 |
# ata1-slave: type=disk, mode=flat, path=46M.sample, cylinders=940, heads=6, spt=17 |
| 669 |
# ata2-master: type=disk, mode=flat, path=62M.sample, cylinders=940, heads=8, spt=17 |
| 670 |
# ata2-slave: type=disk, mode=flat, path=112M.sample, cylinders=900, heads=15, spt=17 |
| 671 |
# ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63 |
| 672 |
# ata3-slave: type=cdrom, path=iso.sample, status=inserted |
| 673 |
#======================================================================= |
| 674 |
ata0-master: type=disk, mode=flat, path="30M.sample" |
| 675 |
#ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17 |
| 676 |
#ata0-master: type=disk, mode=flat, path="c.img", cylinders=0 # autodetect |
| 677 |
#ata0-slave: type=disk, mode=vvfat, path=/bochs/images/vvfat, journal=vvfat.redolog |
| 678 |
#ata0-slave: type=cdrom, path=D:, status=inserted |
| 679 |
#ata0-slave: type=cdrom, path=/dev/cdrom, status=inserted |
| 680 |
#ata0-slave: type=cdrom, path="drive", status=inserted |
| 681 |
#ata0-slave: type=cdrom, path=/dev/rcd0d, status=inserted |
| 682 |
|
| 683 |
#======================================================================= |
| 684 |
# BOOT: |
| 685 |
# This defines the boot sequence. Now you can specify up to 3 boot drives, |
| 686 |
# which can be 'floppy', 'disk', 'cdrom' or 'network' (boot ROM). |
| 687 |
# Legacy 'a' and 'c' are also supported. |
| 688 |
# The new boot choice 'usb' is only supported by the i440fx.bin BIOS. |
| 689 |
# Examples: |
| 690 |
# boot: floppy |
| 691 |
# boot: cdrom, disk |
| 692 |
# boot: network, usb, disk |
| 693 |
# boot: cdrom, floppy, disk |
| 694 |
#======================================================================= |
| 695 |
#boot: floppy |
| 696 |
boot: disk |
| 697 |
|
| 698 |
#======================================================================= |
| 699 |
# FLOPPY_BOOTSIG_CHECK: disabled=[0|1] |
| 700 |
# Enables or disables the 0xaa55 signature check on boot floppies |
| 701 |
# Defaults to disabled=0 |
| 702 |
# Examples: |
| 703 |
# floppy_bootsig_check: disabled=0 |
| 704 |
# floppy_bootsig_check: disabled=1 |
| 705 |
#======================================================================= |
| 706 |
floppy_bootsig_check: disabled=0 |
| 707 |
|
| 708 |
#======================================================================= |
| 709 |
# LOG: |
| 710 |
# Give the path of the log file you'd like Bochs debug and misc. verbiage |
| 711 |
# to be written to. If you don't use this option or set the filename to |
| 712 |
# '-' the output is written to the console. If you really don't want it, |
| 713 |
# make it "/dev/null" (Unix) or "nul" (win32). :^( |
| 714 |
# |
| 715 |
# Examples: |
| 716 |
# log: ./bochs.out |
| 717 |
# log: /dev/tty |
| 718 |
#======================================================================= |
| 719 |
#log: /dev/null |
| 720 |
log: bochsout.txt |
| 721 |
|
| 722 |
#======================================================================= |
| 723 |
# LOGPREFIX: |
| 724 |
# This handles the format of the string prepended to each log line. |
| 725 |
# You may use those special tokens : |
| 726 |
# %t : 11 decimal digits timer tick |
| 727 |
# %i : 8 hexadecimal digits of cpu current eip (ignored in SMP configuration) |
| 728 |
# %e : 1 character event type ('i'nfo, 'd'ebug, 'p'anic, 'e'rror) |
| 729 |
# %d : 5 characters string of the device, between brackets |
| 730 |
# |
| 731 |
# Default : %t%e%d |
| 732 |
# Examples: |
| 733 |
# logprefix: %t-%e-@%i-%d |
| 734 |
# logprefix: %i%e%d |
| 735 |
#======================================================================= |
| 736 |
#logprefix: %t%e%d |
| 737 |
|
| 738 |
#======================================================================= |
| 739 |
# LOG CONTROLS |
| 740 |
# |
| 741 |
# Bochs has four severity levels for event logging. |
| 742 |
# panic: cannot proceed. If you choose to continue after a panic, |
| 743 |
# don't be surprised if you get strange behavior or crashes. |
| 744 |
# error: something went wrong, but it is probably safe to continue the |
| 745 |
# simulation. |
| 746 |
# info: interesting or useful messages. |
| 747 |
# debug: messages useful only when debugging the code. This may |
| 748 |
# spit out thousands per second. |
| 749 |
# |
| 750 |
# For events of each level, you can choose to exit Bochs ('fatal'), 'ask', |
| 751 |
# 'warn', 'report' or 'ignore'. The choices 'ask' and 'warn' are not supported |
| 752 |
# by all guis, since they should bring up a dialog box. The 'warn' dialog is |
| 753 |
# designed to confirm errors and the 'ask' dialog is usually used for panics |
| 754 |
# and asks the user how to proceed. |
| 755 |
# |
| 756 |
# It is also possible to specify the 'action' to do for each Bochs facility |
| 757 |
# separately (e.g. crash on panics from everything except the cdrom, and only |
| 758 |
# report those). See the 'log function' module list in the user documentation. |
| 759 |
# |
| 760 |
# If you are experiencing many panics, it can be helpful to change |
| 761 |
# the panic action to report instead of fatal. However, be aware |
| 762 |
# that anything executed after a panic is uncharted territory and can |
| 763 |
# cause bochs to become unstable. The panic is a "graceful exit," so |
| 764 |
# if you disable it you may get a spectacular disaster instead. |
| 765 |
#======================================================================= |
| 766 |
panic: action=ask |
| 767 |
error: action=report |
| 768 |
info: action=report |
| 769 |
debug: action=ignore, pci=report # report BX_DEBUG from module 'pci' |
| 770 |
|
| 771 |
#======================================================================= |
| 772 |
# DEBUGGER_LOG: |
| 773 |
# Give the path of the log file you'd like Bochs to log debugger output. |
| 774 |
# If you really don't want it, make it /dev/null or '-'. :^( |
| 775 |
# |
| 776 |
# Examples: |
| 777 |
# debugger_log: ./debugger.out |
| 778 |
#======================================================================= |
| 779 |
#debugger_log: /dev/null |
| 780 |
#debugger_log: debugger.out |
| 781 |
debugger_log: - |
| 782 |
|
| 783 |
#======================================================================= |
| 784 |
# COM1, COM2, COM3, COM4: |
| 785 |
# This defines a serial port (UART type 16550A). In the 'term' mode you can |
| 786 |
# specify a device to use as com1. This can be a real serial line, or a pty. |
| 787 |
# To use a pty (under X/Unix), create two windows (xterms, usually). One of |
| 788 |
# them will run bochs, and the other will act as com1. Find out the tty the com1 |
| 789 |
# window using the `tty' command, and use that as the `dev' parameter. |
| 790 |
# Then do `sleep 1000000' in the com1 window to keep the shell from |
| 791 |
# messing with things, and run bochs in the other window. Serial I/O to |
| 792 |
# com1 (port 0x3f8) will all go to the other window. |
| 793 |
# In socket* and pipe* (win32 only) modes Bochs becomes either socket/named pipe |
| 794 |
# client or server. In client mode it connects to an already running server (if |
| 795 |
# connection fails Bochs treats com port as not connected). In server mode it |
| 796 |
# opens socket/named pipe and waits until a client application connects to it |
| 797 |
# before starting simulation. This mode is useful for remote debugging (e.g. |
| 798 |
# with gdb's "target remote host:port" command or windbg's command line option |
| 799 |
# -k com:pipe,port=\\.\pipe\pipename). Socket modes use simple TCP communication, |
| 800 |
# pipe modes use duplex byte mode pipes. |
| 801 |
# Other serial modes are 'null' (no input/output), 'file' (output to a file |
| 802 |
# specified as the 'dev' parameter and changeable at runtime), 'raw' (use the |
| 803 |
# real serial port - partly implemented on win32), 'mouse' (standard serial |
| 804 |
# mouse - requires mouse option setting 'type=serial', 'type=serial_wheel' or |
| 805 |
# 'type=serial_msys'). |
| 806 |
# |
| 807 |
# Examples: |
| 808 |
# com1: enabled=1, mode=null |
| 809 |
# com1: enabled=1, mode=mouse |
| 810 |
# com2: enabled=1, mode=file, dev=serial.out |
| 811 |
# com3: enabled=1, mode=raw, dev=com1 |
| 812 |
# com3: enabled=1, mode=socket-client, dev=localhost:8888 |
| 813 |
# com3: enabled=1, mode=socket-server, dev=localhost:8888 |
| 814 |
# com4: enabled=1, mode=pipe-client, dev=\\.\pipe\mypipe |
| 815 |
# com4: enabled=1, mode=pipe-server, dev=\\.\pipe\mypipe |
| 816 |
#======================================================================= |
| 817 |
#com1: enabled=1, mode=term, dev=/dev/ttyp9 |
| 818 |
|
| 819 |
|
| 820 |
#======================================================================= |
| 821 |
# PARPORT1, PARPORT2: |
| 822 |
# This defines a parallel (printer) port. When turned on and an output file is |
| 823 |
# defined the emulated printer port sends characters printed by the guest OS |
| 824 |
# into the output file. On some platforms a device filename can be used to |
| 825 |
# send the data to the real parallel port (e.g. "/dev/lp0" on Linux, "lpt1" on |
| 826 |
# win32 platforms). The output file can be changed at runtime. |
| 827 |
# |
| 828 |
# Examples: |
| 829 |
# parport1: enabled=1, file="parport.out" |
| 830 |
# parport2: enabled=1, file="/dev/lp0" |
| 831 |
# parport1: enabled=0 |
| 832 |
#======================================================================= |
| 833 |
parport1: enabled=1, file="parport.out" |
| 834 |
|
| 835 |
#======================================================================= |
| 836 |
# SOUND: |
| 837 |
# This defines the lowlevel sound driver(s) for the wave (PCM) input / output |
| 838 |
# and the MIDI output feature and (if necessary) the devices to be used. |
| 839 |
# It can have several of the following properties. |
| 840 |
# All properties are in the format sound: property=value |
| 841 |
# |
| 842 |
# waveoutdrv: |
| 843 |
# This defines the driver to be used for the waveout feature. |
| 844 |
# Possible values are 'file' (all wave data sent to file), 'dummy' (no |
| 845 |
# output), 'pulse', 'sdl' (both cross-platform) and the platform-dependant |
| 846 |
# drivers 'alsa', 'oss', 'osx' and 'win'. |
| 847 |
# waveout: |
| 848 |
# This defines the device to be used for wave output (if necessary) or |
| 849 |
# the output file for the 'file' driver. |
| 850 |
# waveindrv: |
| 851 |
# This defines the driver to be used for the wavein feature. |
| 852 |
# Possible values are 'dummy' (recording silence), 'pulse', 'sdl' (both |
| 853 |
# cross-platform) and platform-dependent drivers 'alsa', 'oss' and 'win'. |
| 854 |
# wavein: |
| 855 |
# This defines the device to be used for wave input (if necessary). |
| 856 |
# midioutdrv: |
| 857 |
# This defines the driver to be used for the MIDI output feature. |
| 858 |
# Possible values are 'file' (all MIDI data sent to file), 'dummy' (no |
| 859 |
# output) and platform-dependent drivers 'alsa', 'oss', 'osx' and 'win'. |
| 860 |
# midiout: |
| 861 |
# This defines the device to be used for MIDI output (if necessary). |
| 862 |
# driver: |
| 863 |
# This defines the driver to be used for all sound features with one |
| 864 |
# property. Possible values are 'default' (platform default) and all |
| 865 |
# other choices described above. Overriding one or more settings with |
| 866 |
# the specific driver parameter is possible. |
| 867 |
# |
| 868 |
# Example for different drivers: |
| 869 |
# sound: waveoutdrv=sdl, waveindrv=alsa, midioutdrv=dummy |
| 870 |
#======================================================================= |
| 871 |
sound: driver=default, waveout=/dev/dsp. wavein=, midiout= |
| 872 |
|
| 873 |
#======================================================================= |
| 874 |
# SPEAKER: |
| 875 |
# This defines the PC speaker output mode. In the 'sound' mode the beep |
| 876 |
# is generated by the square wave generator which is a part of the |
| 877 |
# lowlevel sound support. In this mode the 'volume' parameter can be used |
| 878 |
# to set the output volume (0 - 15). The 'system' mode is only available on |
| 879 |
# Linux and Windows. On Linux /dev/console is used for output and on Windows |
| 880 |
# the Beep() function. The 'gui' mode forwards the beep to the related |
| 881 |
# gui methods (currently only used by the Carbon gui). |
| 882 |
#======================================================================= |
| 883 |
speaker: enabled=1, mode=sound, volume=15 |
| 884 |
|
| 885 |
#======================================================================= |
| 886 |
# SB16: |
| 887 |
# This defines the SB16 sound emulation. It can have several of the |
| 888 |
# following properties. |
| 889 |
# All properties are in the format sb16: property=value |
| 890 |
# |
| 891 |
# enabled: |
| 892 |
# This optional property controls the presence of the SB16 emulation. |
| 893 |
# The emulation is turned on unless this property is used and set to 0. |
| 894 |
# midimode: This parameter specifies what to do with the MIDI output. |
| 895 |
# 0 = no output |
| 896 |
# 1 = output to device specified with the sound option (system dependent) |
| 897 |
# 2 = MIDI or raw data output to file (depends on file name extension) |
| 898 |
# 3 = dual output (mode 1 and 2 at the same time) |
| 899 |
# midifile: This is the file where the midi output is stored (midimode 2 or 3). |
| 900 |
# wavemode: This parameter specifies what to do with the PCM output. |
| 901 |
# 0 = no output |
| 902 |
# 1 = output to device specified with the sound option (system dependent) |
| 903 |
# 2 = VOC, WAV or raw data output to file (depends on file name extension) |
| 904 |
# 3 = dual output (mode 1 and 2 at the same time) |
| 905 |
# wavefile: This is the file where the wave output is stored (wavemode 2 or 3). |
| 906 |
# loglevel: |
| 907 |
# 0=no log |
| 908 |
# 1=resource changes, midi program and bank changes |
| 909 |
# 2=severe errors |
| 910 |
# 3=all errors |
| 911 |
# 4=all errors plus all port accesses |
| 912 |
# 5=all errors and port accesses plus a lot of extra info |
| 913 |
# log: The file to write the sb16 emulator messages to. |
| 914 |
# dmatimer: |
| 915 |
# microseconds per second for a DMA cycle. Make it smaller to fix |
| 916 |
# non-continuous sound. 1000000 is usually a good value. This needs a |
| 917 |
# reasonably correct setting for the IPS parameter of the CPU option |
| 918 |
# and also depends on the clock sync setting. |
| 919 |
# |
| 920 |
# Examples for output modes: |
| 921 |
# sb16: midimode=2, midifile="output.mid", wavemode=1 # MIDI to file |
| 922 |
# sb16: midimode=1, wavemode=3, wavefile="output.wav" # wave to file and device |
| 923 |
#======================================================================= |
| 924 |
#sb16: midimode=1, wavemode=1, loglevel=2, log=sb16.log, dmatimer=900000 |
| 925 |
|
| 926 |
#======================================================================= |
| 927 |
# ES1370: |
| 928 |
# This defines the ES1370 sound emulation (recording and playback - except |
| 929 |
# DAC1+DAC2 output at the same time). The parameter 'enabled' controls the |
| 930 |
# presence of the device. The wave and MIDI output can be sent to device, file |
| 931 |
# or both using the parameters 'wavemode', 'wavefile', 'midimode' and |
| 932 |
# 'midifile'. See the description of these parameters at the SB16 directive. |
| 933 |
# |
| 934 |
# Examples: |
| 935 |
# es1370: enabled=1, wavemode=1 # use 'sound' parameters |
| 936 |
# es1370: enabled=1, wavemode=2, wavefile=output.voc # send output to file |
| 937 |
#======================================================================= |
| 938 |
#es1370: enabled=1, wavemode=1 |
| 939 |
|
| 940 |
#======================================================================= |
| 941 |
# ne2k: NE2000 compatible ethernet adapter |
| 942 |
# |
| 943 |
# Format: |
| 944 |
# ne2k: card=CARD, enabled=1, type=TYPE, ioaddr=IOADDR, irq=IRQ, mac=MACADDR, |
| 945 |
# ethmod=MODULE, ethdev=DEVICE, script=SCRIPT, bootrom=BOOTROM |
| 946 |
# |
| 947 |
# CARD: This is the zero-based card number to configure with this ne2k config |
| 948 |
# line. Up to 4 devices are supported now (0...3). If not specified, the |
| 949 |
# following parameters apply to card #0. |
| 950 |
# |
| 951 |
# TYPE: This is the card type to emulate ("isa" or "pci"). If not specified, |
| 952 |
# card #0 defaults to "pci" if assigned to a pci slot. For the additional cards |
| 953 |
# the type parameter should be set up. |
| 954 |
# |
| 955 |
# IOADDR, IRQ: You probably won't need to change ioaddr and irq, unless there |
| 956 |
# are IRQ conflicts. These arguments are ignored when assign the ne2k to a |
| 957 |
# PCI slot or set the type to 'pci'. |
| 958 |
# |
| 959 |
# MAC: The MAC address MUST NOT match the address of any machine on the net. |
| 960 |
# Also, the first byte must be an even number (bit 0 set means a multicast |
| 961 |
# address), and you cannot use ff:ff:ff:ff:ff:ff because that's the broadcast |
| 962 |
# address. For the ethertap module, you must use fe:fd:00:00:00:01. There may |
| 963 |
# be other restrictions too. To be safe, just use the b0:c4... address. |
| 964 |
# |
| 965 |
# ETHDEV: The ethdev value is the name of the network interface on your host |
| 966 |
# platform. On UNIX machines, you can get the name by running ifconfig. On |
| 967 |
# Windows machines, you must run niclist to get the name of the ethdev. |
| 968 |
# Niclist source code is in misc/niclist.c and it is included in Windows |
| 969 |
# binary releases. |
| 970 |
# The 'socket' module uses this parameter to specify the UDP port for |
| 971 |
# receiving packets and (optional) the host to connect. |
| 972 |
# |
| 973 |
# SCRIPT: The script value is optional, and is the name of a script that |
| 974 |
# is executed after bochs initialize the network interface. You can use |
| 975 |
# this script to configure this network interface, or enable masquerading. |
| 976 |
# This is mainly useful for the tun/tap devices that only exist during |
| 977 |
# Bochs execution. The network interface name is supplied to the script |
| 978 |
# as first parameter. |
| 979 |
# The 'slirp' module uses this parameter to specify a config file for |
| 980 |
# setting up an alternative IP configuration or additional features. |
| 981 |
# The 'vnet' module also uses this parameter to specify a config file similar |
| 982 |
# to slirp, but with only a few settings. |
| 983 |
# |
| 984 |
# BOOTROM: The bootrom value is optional, and is the name of the ROM image |
| 985 |
# to load. Note that this feature is only implemented for the PCI version of |
| 986 |
# the NE2000. For the ISA version using one of the 'optromimage[1-4]' options |
| 987 |
# must be used instead of this one. |
| 988 |
# |
| 989 |
# If you don't want to make connections to any physical networks, |
| 990 |
# you can use the following 'ethmod's to simulate a virtual network. |
| 991 |
# null: All packets are discarded, but logged to a few files. |
| 992 |
# vde: Virtual Distributed Ethernet |
| 993 |
# vnet: ARP, ICMP-echo(ping), DHCP, DNS, FTP and TFTP are simulated. |
| 994 |
# The virtual host uses 192.168.10.1. |
| 995 |
# DHCP assigns 192.168.10.15 to the guest. |
| 996 |
# FTP/TFTP using the 'ethdev' value for the root directory. |
| 997 |
# TFTP doesn't overwrite files, DNS for server and client only. |
| 998 |
# socket: Connect up to 6 Bochs instances with external program 'bxhub' |
| 999 |
# (simulating an ethernet hub). It provides the same services as the |
| 1000 |
# 'vnet' module and assigns IP addresses like 'slirp' (10.0.2.x). |
| 1001 |
# |
| 1002 |
#======================================================================= |
| 1003 |
# ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=fbsd, ethdev=en0 #macosx |
| 1004 |
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xl0 |
| 1005 |
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0 |
| 1006 |
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=win32, ethdev=MYCARD |
| 1007 |
# ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0 |
| 1008 |
# ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun0, script=./tunconfig |
| 1009 |
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=null, ethdev=eth0 |
| 1010 |
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vde, ethdev="/tmp/vde.ctl" |
| 1011 |
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp" |
| 1012 |
# ne2k: mac=b0:c4:20:00:00:01, ethmod=socket, ethdev=40000 # use localhost |
| 1013 |
# ne2k: mac=b0:c4:20:00:00:01, ethmod=socket, ethdev=mymachine:40000 |
| 1014 |
# ne2k: mac=b0:c4:20:00:00:01, ethmod=slirp, script=slirp.conf, bootrom=ne2k_pci.rom |
| 1015 |
|
| 1016 |
#======================================================================= |
| 1017 |
# pcipnic: Bochs/Etherboot pseudo-NIC |
| 1018 |
# |
| 1019 |
# Format: |
| 1020 |
# pcipnic: enabled=1, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, script=SCRIPT, |
| 1021 |
# bootrom=BOOTROM |
| 1022 |
# |
| 1023 |
# The pseudo-NIC accepts the same syntax (for mac, ethmod, ethdev, script, |
| 1024 |
# bootrom) and supports the same networking modules as the NE2000 adapter. |
| 1025 |
#======================================================================= |
| 1026 |
#pcipnic: enabled=1, mac=b0:c4:20:00:00:00, ethmod=vnet |
| 1027 |
|
| 1028 |
#======================================================================= |
| 1029 |
# e1000: Intel(R) 82540EM Gigabit Ethernet adapter |
| 1030 |
# |
| 1031 |
# Format: |
| 1032 |
# e1000: card=CARD, enabled=1, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, |
| 1033 |
# script=SCRIPT, bootrom=BOOTROM |
| 1034 |
# |
| 1035 |
# The E1000 accepts the same syntax (for card, mac, ethmod, ethdev, script, |
| 1036 |
# bootrom) and supports the same networking modules as the NE2000 adapter. |
| 1037 |
# It also supports up to 4 devices selected with the card parameter. |
| 1038 |
#======================================================================= |
| 1039 |
#e1000: enabled=1, mac=52:54:00:12:34:56, ethmod=slirp, script=slirp.conf |
| 1040 |
|
| 1041 |
#======================================================================= |
| 1042 |
# USB_UHCI: |
| 1043 |
# This option controls the presence of the USB root hub which is a part |
| 1044 |
# of the i440FX PCI chipset. With the portX parameter you can connect devices |
| 1045 |
# to the hub (currently supported: 'mouse', 'tablet', 'keypad', 'keyboard', |
| 1046 |
# 'disk', 'cdrom', 'floppy', 'hub' and 'printer'). |
| 1047 |
# |
| 1048 |
# If you connect the mouse or tablet to one of the ports, Bochs forwards the |
| 1049 |
# mouse movement data to the USB device instead of the selected mouse type. |
| 1050 |
# When connecting the keypad to one of the ports, Bochs forwards the input of |
| 1051 |
# the numeric keypad to the USB device instead of the PS/2 keyboard. If the |
| 1052 |
# keyboard is selected, all key events are sent to the USB device. |
| 1053 |
# |
| 1054 |
# To connect a disk image as a USB hardisk you can use the 'disk' device. Use |
| 1055 |
# the 'path' option in the optionsX parameter to specify the path to the image |
| 1056 |
# separated with a colon. To use other disk image modes similar to ATA disks |
| 1057 |
# the syntax 'path:mode:filename' must be used (see below). |
| 1058 |
# |
| 1059 |
# To emulate a USB cdrom you can use the 'cdrom' device and the path to an |
| 1060 |
# ISO image or raw device name can be set with the 'path' option in the |
| 1061 |
# optionsX parameter also separated with a colon. An option to insert/eject |
| 1062 |
# media is available in the runtime configuration. |
| 1063 |
# |
| 1064 |
# To emulate a USB floppy you can use the 'floppy' device and the path to a |
| 1065 |
# floppy image can be set with the 'path' option in the optionsX parameter |
| 1066 |
# separated with a colon. To use the VVFAT image mode similar to the legacy |
| 1067 |
# floppy the syntax 'path:vvfat:directory' must be used (see below). |
| 1068 |
# An option to insert/eject media is available in the runtime configuration. |
| 1069 |
# |
| 1070 |
# The device name 'hub' connects an external hub with max. 8 ports (default: 4) |
| 1071 |
# to the root hub. To specify the number of ports you have to use the 'ports' |
| 1072 |
# option in the optionsX parameter with the value separated with a colon. |
| 1073 |
# Connecting devices to the external hub ports is only available in the runtime |
| 1074 |
# configuration. |
| 1075 |
# |
| 1076 |
# The device 'printer' emulates the HP Deskjet 920C printer. The PCL data is |
| 1077 |
# sent to a file specified in the 'file' option with the optionsX parameter. |
| 1078 |
# The current code appends the PCL code to the file if the file already existed. |
| 1079 |
# The output file can be changed at runtime. |
| 1080 |
# |
| 1081 |
# The optionsX parameter can be used to assign specific options to the device |
| 1082 |
# connected to the corresponding USB port. The option 'speed' can be used to set |
| 1083 |
# the speed reported by device ('low', 'full', 'high' or 'super'). The available |
| 1084 |
# speed choices depend on both HC and device. The option 'debug' turns on debug |
| 1085 |
# output for the device at connection time. The option 'pcap' turns on packet |
| 1086 |
# logging in PCAP format. |
| 1087 |
# |
| 1088 |
# For the USB 'disk' device the optionsX parameter can be used to specify an |
| 1089 |
# alternative redolog file (journal) of some image modes. For 'vvfat' mode USB |
| 1090 |
# disks the optionsX parameter can be used to specify the disk size (range |
| 1091 |
# 128M ... 128G). If the size is not specified, it defaults to 504M. |
| 1092 |
# For the USB 'floppy' device the optionsX parameter can be used to specify an |
| 1093 |
# alternative device ID to be reported. Currently only the model "teac" is |
| 1094 |
# supported (can fix hw detection in some guest OS). The USB floppy also |
| 1095 |
# accepts the parameter "write_protected" with valid values 0 and 1 to select |
| 1096 |
# the access mode (default is 0). |
| 1097 |
# |
| 1098 |
# For a high- or super-speed USB 'disk' device the optionsX parameter can include |
| 1099 |
# the 'proto:bbb' or 'proto:uasp' parameter specifying to use either the bulk-only |
| 1100 |
# Protocol (default) or the USB Attached SCSI Protocol. If no such parameter |
| 1101 |
# is given, the 'bbb' protocol is used. A Guest that doesn't support UASP |
| 1102 |
# should revert to bbb even if the 'uasp' attribute is given. See the usb_ehci: |
| 1103 |
# or usb_xhci: section below for an example. (Only 1 LUN is available at this time) |
| 1104 |
#======================================================================= |
| 1105 |
#usb_uhci: enabled=1 |
| 1106 |
#usb_uhci: port1=mouse, port2=disk, options2="path:usbstick.img" |
| 1107 |
#usb_uhci: port1=hub, options1="ports:6, pcap:outfile.pcap" |
| 1108 |
#usb_uhci: port2=disk, options2="path:undoable:usbdisk.img, journal:u.redolog" |
| 1109 |
#usb_uhci: port2=disk, options2=""path:usbdisk2.img, sect_size:1024" |
| 1110 |
#usb_uhci: port2=disk, options2="path:vvfat:vvfat, debug, speed:full" |
| 1111 |
#usb_uhci: port2=cdrom, options2="path:image.iso" |
| 1112 |
#usb_uhci: port1=printer, options1="file:printdata.bin" |
| 1113 |
#usb_uhci: port2=floppy, options2="path:vvfat:diskette, model:teac" |
| 1114 |
|
| 1115 |
#======================================================================= |
| 1116 |
# USB_OHCI: |
| 1117 |
# This option controls the presence of the USB OHCI host controller with a |
| 1118 |
# 2-port hub. The portX parameter accepts the same device types with the same |
| 1119 |
# syntax as the UHCI controller (see above). The optionsX parameter is also |
| 1120 |
# available on OHCI. |
| 1121 |
#======================================================================= |
| 1122 |
#usb_ohci: enabled=1 |
| 1123 |
#usb_ohci: enabled=1, port1=printer:usbprinter.bin |
| 1124 |
|
| 1125 |
#======================================================================= |
| 1126 |
# USB_EHCI: |
| 1127 |
# This option controls the presence of the USB EHCI host controller with a |
| 1128 |
# 6-port hub. The portX parameter accepts the same device types with the |
| 1129 |
# same syntax as the UHCI controller (see above). The optionsX parameter is |
| 1130 |
# also available on EHCI. |
| 1131 |
# The HC will default to three UHCI companion controllers, but you can specify |
| 1132 |
# either UHCI or OHCI. Each companion controller will be evenly divided |
| 1133 |
# with 2 ports each, the first 2 on the first companion, and so on. |
| 1134 |
#======================================================================= |
| 1135 |
#usb_ehci: enabled=1 |
| 1136 |
#usb_ehci: enabled=1, companion=uhci |
| 1137 |
#usb_ehci: enabled=1, companion=ohci |
| 1138 |
#usb_ehci: port1=disk, options1="speed:high, path:hdd.img, proto:bbb" |
| 1139 |
#usb_ehci: port1=disk, options1="speed:high, path:hdd.img, proto:uasp" |
| 1140 |
|
| 1141 |
#======================================================================= |
| 1142 |
# USB_XHCI: |
| 1143 |
# This option controls the presence of the USB xHCI host controller with a |
| 1144 |
# default 4-port hub. The portX parameter accepts the same device types |
| 1145 |
# with the same syntax as the UHCI controller (see above). The optionsX |
| 1146 |
# parameter is also available on xHCI. |
| 1147 |
# |
| 1148 |
# The xHCI emulation allows you to set the number of ports used with a range |
| 1149 |
# of 2 to 10, requiring an even numbered count. |
| 1150 |
# |
| 1151 |
# NOTE: The first half of the ports, (ports 1 and 2 on a 4-port hub) are |
| 1152 |
# USB3 only and support super-speed devices. The second half ports (ports |
| 1153 |
# 3 and 4) are USB2 and support speed settings of low, full, or high. |
| 1154 |
# The xHCI also allows for different host controllers using the model= |
| 1155 |
# parameter. Currently, the two allowed options are "uPD720202" and |
| 1156 |
# "uPD720201". The first defaults to 2 sockets (4 ports) and the later |
| 1157 |
# defaults to 4 sockets (8 ports). |
| 1158 |
#======================================================================= |
| 1159 |
#usb_xhci: enabled=1 # defaults to the uPD720202 w/4 ports |
| 1160 |
#usb_xhci: enabled=1, n_ports=6 # defaults to the uPD720202 w/6 ports |
| 1161 |
#usb_xhci: enabled=1, model=uPD720202 # defaults to 4 ports |
| 1162 |
#usb_xhci: enabled=1, model=uPD720202, n_ports=6 # change to 6 ports |
| 1163 |
#usb_xhci: enabled=1, model=uPD720201 # defaults to 8 ports |
| 1164 |
#usb_xhci: enabled=1, model=uPD720201, n_ports=10 # change to 10 ports |
| 1165 |
#usb_xhci: port1=disk, options1="speed:super, path:hdd.img, proto:bbb" |
| 1166 |
#usb_xhci: port1=disk, options1="speed:super, path:hdd.img, proto:uasp" |
| 1167 |
#usb_xhci: port3=disk, options3="speed:high, path:hdd.img, proto:uasp" |
| 1168 |
|
| 1169 |
#======================================================================= |
| 1170 |
# USB Debugger: |
| 1171 |
# This is the experimental USB Debugger for the Windows Platform. |
| 1172 |
# Specify a type (none, uhci, ohci, ehci, xhci) and one or more triggers. |
| 1173 |
# (Currently, only xhci is supported, with some uhci in the process) |
| 1174 |
# Triggers: |
| 1175 |
# reset: will break and load the debugger on a port reset |
| 1176 |
# enable: will break and load the debugger on a port enable |
| 1177 |
# doorbell: will break and load the debugger a xHCI Command Ring addition |
| 1178 |
# event: will break and load the debugger on a xHCI Event Ring addition |
| 1179 |
# data: will break and load the debugger on a xHCI Data Ring addition |
| 1180 |
# start_frame: will break and load the debugger on start of frame |
| 1181 |
# (this is different for each controller type) |
| 1182 |
# non_exist: will break and load the debugger on a non-existant port access |
| 1183 |
# (experimental and is under development) |
| 1184 |
#======================================================================= |
| 1185 |
#usb_debug: type=xhci, reset=1, enable=1, start_frame=1, doorbell=1, event=1, data=1, non_exist=1 |
| 1186 |
|
| 1187 |
#======================================================================= |
| 1188 |
# PCIDEV: |
| 1189 |
# PCI host device mapping |
| 1190 |
# WARNING: This Bochs feature is not maintained yet and may fail. |
| 1191 |
#======================================================================= |
| 1192 |
#pcidev: vendor=0x1234, device=0x5678 |
| 1193 |
|
| 1194 |
#======================================================================= |
| 1195 |
# GDBSTUB: |
| 1196 |
# Enable GDB stub. See user documentation for details. |
| 1197 |
# Default value is enabled=0. |
| 1198 |
# WARNING: This Bochs feature is not maintained yet and may fail. |
| 1199 |
#======================================================================= |
| 1200 |
#gdbstub: enabled=0, port=1234, text_base=0, data_base=0, bss_base=0 |
| 1201 |
|
| 1202 |
#======================================================================= |
| 1203 |
# MAGIC_BREAK: |
| 1204 |
# This enables the "magic breakpoint" feature when using the debugger. |
| 1205 |
# The useless cpu instructions XCHG %REGW, %REGW causes Bochs to enter the |
| 1206 |
# debugger mode. This might be useful for software development. |
| 1207 |
# |
| 1208 |
# You can specify multiple at once: |
| 1209 |
# |
| 1210 |
# cx dx bx sp bp si di |
| 1211 |
# |
| 1212 |
# Example for breaking on "XCHGW %DI, %DI" or "XCHG %SP, %SP" execution |
| 1213 |
# magic_break: enabled=1 di sp |
| 1214 |
# |
| 1215 |
# If nothing is specified, the default will be used: XCHGW %BX, %BX |
| 1216 |
# magic_break: enabled=1 |
| 1217 |
# |
| 1218 |
# Note: Windows XP ntldr can cause problems with XCHGW %BX, %BX |
| 1219 |
#======================================================================= |
| 1220 |
# magic_break: enabled=1 |
| 1221 |
|
| 1222 |
#======================================================================= |
| 1223 |
# DEBUG_SYMBOLS: |
| 1224 |
# This loads symbols from the specified file for use in Bochs' internal |
| 1225 |
# debugger. Symbols are loaded into global context. This is equivalent to |
| 1226 |
# issuing ldsym debugger command at start up. |
| 1227 |
# |
| 1228 |
# Example: |
| 1229 |
# debug_symbols: file="kernel.sym" |
| 1230 |
# debug_symbols: file="kernel.sym", offset=0x80000000 |
| 1231 |
#======================================================================= |
| 1232 |
#debug_symbols: file="kernel.sym" |
| 1233 |
|
| 1234 |
#print_timestamps: enabled=1 |
| 1235 |
|
| 1236 |
#======================================================================= |
| 1237 |
# PORT_E9_HACK: |
| 1238 |
# The 0xE9 port doesn't exists in normal ISA architecture. However, we |
| 1239 |
# define a convention here, to display on the console of the system running |
| 1240 |
# Bochs anything that is written to it. The idea is to provide debug output |
| 1241 |
# very early when writing BIOS or OS code for example, without having to |
| 1242 |
# bother with setting up a serial port or etc. Reading from port 0xE9 will |
| 1243 |
# will return 0xe9 to let you know if the feature is available. |
| 1244 |
# Leave this 0 unless you have a reason to use it. By enabling the |
| 1245 |
# 'all_rings' option, you can utilize the port e9 hack from ring3. |
| 1246 |
# |
| 1247 |
# Example: |
| 1248 |
# port_e9_hack: enabled=1 |
| 1249 |
# port_e9_hack: enabled=1, all_rings=1 |
| 1250 |
#======================================================================= |
| 1251 |
#port_e9_hack: enabled=1, all_rings=1 |
| 1252 |
|
| 1253 |
#======================================================================= |
| 1254 |
# IODEBUG: |
| 1255 |
# I/O Interface to Bochs Debugger plugin allows the code running inside |
| 1256 |
# Bochs to monitor memory ranges, trace individual instructions, and |
| 1257 |
# observe register values during execution. By enabling the 'all_rings' |
| 1258 |
# option, you can utilize the iodebug ports from ring3. For more |
| 1259 |
# information, refer to "Advanced debugger usage" documentation. |
| 1260 |
# |
| 1261 |
# Example: |
| 1262 |
# iodebug: all_rings=1 |
| 1263 |
#======================================================================= |
| 1264 |
#iodebug: all_rings=1 |
| 1265 |
|
| 1266 |
#======================================================================= |
| 1267 |
# fullscreen: ONLY IMPLEMENTED ON AMIGA |
| 1268 |
# Request that Bochs occupy the entire screen instead of a |
| 1269 |
# window. |
| 1270 |
# |
| 1271 |
# Examples: |
| 1272 |
# fullscreen: enabled=0 |
| 1273 |
# fullscreen: enabled=1 |
| 1274 |
#======================================================================= |
| 1275 |
#fullscreen: enabled=0 |
| 1276 |
#screenmode: name="sample" |
| 1277 |
|
| 1278 |
#======================================================================= |
| 1279 |
# for Macintosh, use the style of pathnames in the following |
| 1280 |
# examples. |
| 1281 |
# |
| 1282 |
# vgaromimage: :bios:VGABIOS-elpin-2.40 |
| 1283 |
# romimage: file=:bios:BIOS-bochs-latest, address=0xf0000 |
| 1284 |
# floppya: 1_44=[fd:], status=inserted |
| 1285 |
#======================================================================= |
| 1286 |
|
| 1287 |
#======================================================================= |
| 1288 |
# MEGS |
| 1289 |
# Set the number of Megabytes of physical memory you want to emulate. |
| 1290 |
# The default is 32MB, most OS's won't need more than that. |
| 1291 |
# The maximum amount of memory supported is 2048Mb. |
| 1292 |
# The 'MEGS' option is deprecated. Use 'MEMORY' option instead. |
| 1293 |
#======================================================================= |
| 1294 |
#megs: 256 |
| 1295 |
#megs: 128 |
| 1296 |
#megs: 64 |
| 1297 |
#megs: 32 |
| 1298 |
#megs: 16 |
| 1299 |
#megs: 8 |