2003-12-30 00:51:53 +03:00
|
|
|
# You may now use double quotes around pathnames, in case
|
2001-04-10 05:04:59 +04:00
|
|
|
# your pathname includes spaces.
|
|
|
|
|
2011-12-26 21:32:57 +04:00
|
|
|
#=======================================================================
|
|
|
|
# PLUGIN_CTRL:
|
|
|
|
# Controls the presence of optional device plugins. These plugins are loaded
|
|
|
|
# directly with this option and some of them install a config option that is
|
|
|
|
# only available when the plugin device is loaded. The value "1" means to load
|
|
|
|
# the plugin and "0" will unload it (if loaded before).
|
2012-07-06 21:19:32 +04:00
|
|
|
#
|
2012-07-12 01:03:59 +04:00
|
|
|
# These plugins will be loaded by default (if present): 'biosdev', 'extfpuirq',
|
|
|
|
# 'gameport', 'iodebug','parallel', 'serial', 'speaker' and 'unmapped'.
|
2012-07-06 21:19:32 +04:00
|
|
|
#
|
2012-07-12 01:03:59 +04:00
|
|
|
# These plugins are also supported, but they are usually loaded directly with
|
|
|
|
# their bochsrc option: 'e1000', 'es1370', 'ne2k', 'pcidev', 'pcipnic', 'sb16',
|
|
|
|
# 'usb_ohci', 'usb_uhci' and 'usb_xhci'.
|
2011-12-26 21:32:57 +04:00
|
|
|
#=======================================================================
|
2012-07-06 21:19:32 +04:00
|
|
|
#plugin_ctrl: unmapped=0, e1000=1 # unload 'unmapped' and load 'e1000'
|
2011-12-26 21:32:57 +04:00
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
#=======================================================================
|
|
|
|
# CONFIG_INTERFACE
|
|
|
|
#
|
|
|
|
# The configuration interface is a series of menus or dialog boxes that
|
|
|
|
# allows you to change all the settings that control Bochs's behavior.
|
2009-04-19 17:10:50 +04:00
|
|
|
# Depending on the platform there are up to 3 choices of configuration
|
|
|
|
# interface: a text mode version called "textconfig" and two graphical versions
|
|
|
|
# called "win32config" and "wx". The text mode version uses stdin/stdout and
|
|
|
|
# is always compiled in, unless Bochs is compiled for wx only. The choice
|
|
|
|
# "win32config" is only available on win32 and it is the default there.
|
|
|
|
# The choice "wx" is only available when you use "--with-wx" on the configure
|
|
|
|
# command. If you do not write a config_interface line, Bochs will
|
2002-10-25 01:07:56 +04:00
|
|
|
# choose a default for you.
|
|
|
|
#
|
|
|
|
# NOTE: if you use the "wx" configuration interface, you must also use
|
|
|
|
# the "wx" display library.
|
|
|
|
#=======================================================================
|
2002-10-29 23:18:32 +03:00
|
|
|
#config_interface: textconfig
|
2009-04-19 17:10:50 +04:00
|
|
|
#config_interface: win32config
|
2002-10-25 01:07:56 +04:00
|
|
|
#config_interface: wx
|
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# DISPLAY_LIBRARY
|
|
|
|
#
|
|
|
|
# The display library is the code that displays the Bochs VGA screen. Bochs
|
|
|
|
# has a selection of about 10 different display library implementations for
|
|
|
|
# different platforms. If you run configure with multiple --with-* options,
|
|
|
|
# the display_library command lets you choose which one you want to run with.
|
|
|
|
# If you do not write a display_library line, Bochs will choose a default for
|
|
|
|
# you.
|
|
|
|
#
|
|
|
|
# The choices are:
|
|
|
|
# x use X windows interface, cross platform
|
|
|
|
# win32 use native win32 libraries
|
|
|
|
# carbon use Carbon library (for MacOS X)
|
|
|
|
# macintosh use MacOS pre-10
|
|
|
|
# amigaos use native AmigaOS libraries
|
|
|
|
# sdl use SDL library, cross platform
|
2002-12-05 23:23:34 +03:00
|
|
|
# svga use SVGALIB library for Linux, allows graphics without X11
|
2002-10-25 01:07:56 +04:00
|
|
|
# term text only, uses curses/ncurses library, cross platform
|
|
|
|
# rfb provides an interface to AT&T's VNC viewer, cross platform
|
2005-01-08 20:02:25 +03:00
|
|
|
# wx use wxWidgets library, cross platform
|
2002-10-25 01:07:56 +04:00
|
|
|
# nogui no display at all
|
|
|
|
#
|
|
|
|
# NOTE: if you use the "wx" configuration interface, you must also use
|
|
|
|
# the "wx" display library.
|
2004-09-01 22:12:23 +04:00
|
|
|
#
|
|
|
|
# Specific options:
|
2012-05-11 20:17:59 +04:00
|
|
|
# Some display libraries now support specific options to control their
|
|
|
|
# behaviour. These options are supported by more than one display library:
|
|
|
|
#
|
2012-07-03 22:49:42 +04:00
|
|
|
# "gui_debug" - use GTK debugger gui (sdl, x) / Win32 debugger gui (sdl, win32)
|
2012-05-11 20:17:59 +04:00
|
|
|
# "hideIPS" - disable IPS output in status bar (sdl, wx, x)
|
|
|
|
# "nokeyrepeat" - turn off host keyboard repeat (sdl, win32, x)
|
|
|
|
#
|
|
|
|
# See the examples below for other currently supported options.
|
2002-10-25 01:07:56 +04:00
|
|
|
#=======================================================================
|
|
|
|
#display_library: amigaos
|
|
|
|
#display_library: carbon
|
|
|
|
#display_library: macintosh
|
|
|
|
#display_library: nogui
|
2004-09-01 22:12:23 +04:00
|
|
|
#display_library: rfb, options="timeout=60" # time to wait for client
|
|
|
|
#display_library: sdl, options="fullscreen" # startup in fullscreen mode
|
2002-10-25 01:07:56 +04:00
|
|
|
#display_library: term
|
2012-05-11 20:17:59 +04:00
|
|
|
#display_library: win32
|
2002-10-25 01:07:56 +04:00
|
|
|
#display_library: wx
|
2012-05-11 20:17:59 +04:00
|
|
|
#display_library: x
|
2002-10-25 01:07:56 +04:00
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
|
|
|
# ROMIMAGE:
|
2005-10-15 13:13:57 +04:00
|
|
|
# The ROM BIOS controls what the PC does when it first powers on.
|
|
|
|
# Normally, you can use a precompiled BIOS in the source or binary
|
|
|
|
# distribution called BIOS-bochs-latest. The ROM BIOS is usually loaded
|
2006-09-30 13:56:23 +04:00
|
|
|
# starting at address 0xf0000, and it is exactly 64k long. Another option
|
|
|
|
# is 128k BIOS which is loaded at address 0xe0000.
|
2003-04-01 21:37:29 +04:00
|
|
|
# You can also use the environment variable $BXSHARE to specify the
|
|
|
|
# location of the BIOS.
|
2005-10-15 13:13:57 +04:00
|
|
|
# The usage of external large BIOS images (up to 512k) at memory top is
|
|
|
|
# now supported, but we still recommend to use the BIOS distributed with
|
2008-05-12 22:46:46 +04:00
|
|
|
# Bochs. The start address optional, since it can be calculated from image size.
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2006-09-30 13:56:23 +04:00
|
|
|
romimage: file=$BXSHARE/BIOS-bochs-latest
|
2012-04-30 18:46:00 +04:00
|
|
|
#romimage: file=bios/seabios-1.6.3.bin
|
2005-10-15 13:13:57 +04:00
|
|
|
#romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
|
2001-04-10 05:04:59 +04:00
|
|
|
|
2006-01-18 21:35:38 +03:00
|
|
|
#=======================================================================
|
2006-01-22 13:03:38 +03:00
|
|
|
# CPU:
|
|
|
|
# This defines cpu-related parameters inside Bochs:
|
|
|
|
#
|
2011-07-29 19:03:54 +04:00
|
|
|
# MODEL:
|
|
|
|
# Selects CPU configuration to emulate from pre-defined list of all
|
|
|
|
# supported configurations. When this option is used, the CPUID option
|
|
|
|
# has no effect anymore.
|
|
|
|
#
|
|
|
|
# CPU configurations that can be selected:
|
2011-07-29 19:18:39 +04:00
|
|
|
# -----------------------------------------------------------------
|
2011-08-16 23:58:56 +04:00
|
|
|
# pentium_mmx Intel Pentium MMX
|
2011-08-31 02:02:08 +04:00
|
|
|
# amd_k6_2_chomper AMD-K6(tm) 3D processor (Chomper)
|
2011-08-11 22:06:09 +04:00
|
|
|
# p2_klamath Intel Pentium II (Klamath)
|
2011-07-31 01:28:16 +04:00
|
|
|
# p3_katmai Intel Pentium III (Katmai)
|
2011-07-31 22:43:46 +04:00
|
|
|
# p4_willamette Intel(R) Pentium(R) 4 (Willamette)
|
2011-10-07 23:32:44 +04:00
|
|
|
# core_duo_t2400_yonah Intel(R) Core(TM) Duo CPU T2400 (Yonah)
|
2011-08-04 00:29:24 +04:00
|
|
|
# atom_n270 Intel(R) Atom(TM) CPU N270
|
2011-10-07 23:32:44 +04:00
|
|
|
# athlon64_clawhammer AMD Athlon(tm) 64 Processor 2800+ (Clawhammer)
|
2011-12-30 02:01:51 +04:00
|
|
|
# athlon64_venice AMD Athlon(tm) 64 Processor 3000+ (Venice)
|
|
|
|
# turion64_tyler AMD Turion(tm) 64 X2 Mobile TL-60 (Tyler)
|
2012-02-20 00:15:23 +04:00
|
|
|
# phenom_8650_toliman AMD Phenom X3 8650 (Toliman)
|
2011-10-07 23:32:44 +04:00
|
|
|
# p4_prescott_celeron_336 Intel(R) Celeron(R) 336 (Prescott)
|
|
|
|
# core2_penryn_t9600 Intel Mobile Core 2 Duo T9600 (Penryn)
|
2012-01-03 00:59:02 +04:00
|
|
|
# corei5_lynnfield_750 Intel(R) Core(TM) i5 750 (Lynnfield)
|
2011-10-07 23:32:44 +04:00
|
|
|
# corei5_arrandale_m520 Intel(R) Core(TM) i5 M 520 (Arrandale)
|
|
|
|
# corei7_sandy_bridge_2600k Intel(R) Core(TM) i7-2600K (Sandy Bridge)
|
2012-05-07 16:31:22 +04:00
|
|
|
# corei7_ivy_bridge_3770k Intel(R) Core(TM) i7-3770K CPU (Ivy Bridge)
|
2011-07-29 19:03:54 +04:00
|
|
|
#
|
2006-01-22 13:03:38 +03:00
|
|
|
# COUNT:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Set the number of processors:cores per processor:threads per core
|
|
|
|
# when Bochs is compiled for SMP emulation.
|
|
|
|
# Bochs currently supports up to 8 threads running simultaniosly.
|
|
|
|
# If Bochs is compiled without SMP support, it won't accept values
|
|
|
|
# different from 1.
|
2006-01-22 13:03:38 +03:00
|
|
|
#
|
2006-06-22 00:42:26 +04:00
|
|
|
# QUANTUM:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Maximum amount of instructions allowed to execute by processor before
|
|
|
|
# returning control to another cpu. This option exists only in Bochs
|
|
|
|
# binary compiled with SMP support.
|
2006-06-22 00:42:26 +04:00
|
|
|
#
|
2006-02-01 21:12:08 +03:00
|
|
|
# RESET_ON_TRIPLE_FAULT:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Reset the CPU when triple fault occur (highly recommended) rather than
|
|
|
|
# PANIC. Remember that if you trying to continue after triple fault the
|
|
|
|
# simulation will be completely bogus !
|
2006-02-01 21:12:08 +03:00
|
|
|
#
|
2011-08-04 00:29:24 +04:00
|
|
|
# CPUID_LIMIT_WINNT:
|
|
|
|
# Determine whether to limit maximum CPUID function to 2. This mode is
|
|
|
|
# required to workaround WinNT installation and boot issues.
|
|
|
|
#
|
2008-12-28 23:30:48 +03:00
|
|
|
# MSRS:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Define path to user CPU Model Specific Registers (MSRs) specification.
|
|
|
|
# See example in msrs.def.
|
2008-12-28 23:30:48 +03:00
|
|
|
#
|
2009-11-13 18:55:46 +03:00
|
|
|
# IGNORE_BAD_MSRS:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Ignore MSR references that Bochs does not understand; print a warning
|
|
|
|
# message instead of generating #GP exception. This option is enabled
|
|
|
|
# by default but will not be avaiable if configurable MSRs are enabled.
|
2009-11-13 18:55:46 +03:00
|
|
|
#
|
2012-03-15 23:46:57 +04:00
|
|
|
# MWAIT_IS_NOP:
|
|
|
|
# When this option is enabled MWAIT will not put the CPU into a sleep state.
|
|
|
|
# This option exists only if Bochs compiled with --enable-monitor-mwait.
|
|
|
|
#
|
2006-01-22 13:03:38 +03:00
|
|
|
# IPS:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Emulated Instructions Per Second. This is the number of IPS that bochs
|
|
|
|
# is capable of running on your machine. You can recompile Bochs with
|
|
|
|
# --enable-show-ips option enabled, to find your host's capability.
|
|
|
|
# Measured IPS value will then be logged into your log file or shown
|
|
|
|
# in the status bar (if supported by the gui).
|
2006-01-25 23:07:36 +03:00
|
|
|
#
|
2011-07-29 19:03:54 +04:00
|
|
|
# IPS is used to calibrate many time-dependent events within the bochs
|
|
|
|
# simulation. For example, changing IPS affects the frequency of VGA
|
|
|
|
# updates, the duration of time before a key starts to autorepeat, and
|
|
|
|
# the measurement of BogoMips and other benchmarks.
|
2006-01-25 23:07:36 +03:00
|
|
|
#
|
|
|
|
# Examples:
|
2006-05-12 21:04:19 +04:00
|
|
|
#
|
|
|
|
# Bochs Machine/Compiler Mips
|
2011-06-19 23:59:12 +04:00
|
|
|
# ______________________________________________________________________
|
|
|
|
# 2.4.6 3.4Ghz Intel Core i7 2600 with Win7x64/g++ 4.5.2 85 to 95 Mips
|
|
|
|
# 2.3.7 3.2Ghz Intel Core 2 Q9770 with WinXP/g++ 3.4 50 to 55 Mips
|
|
|
|
# 2.3.7 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 38 to 43 Mips
|
|
|
|
# 2.2.6 2.6Ghz Intel Core 2 Duo with WinXP/g++ 3.4 21 to 25 Mips
|
|
|
|
# 2.2.6 2.1Ghz Athlon XP with Linux 2.6/g++ 3.4 12 to 15 Mips
|
2006-01-18 21:35:38 +03:00
|
|
|
#=======================================================================
|
2012-04-30 18:46:00 +04:00
|
|
|
cpu: model=core2_penryn_t9600, count=1, ips=50000000, reset_on_triple_fault=1, ignore_bad_msrs=1, msrs="msrs.def"
|
2011-08-02 20:25:25 +04:00
|
|
|
cpu: cpuid_limit_winnt=0
|
2010-02-26 01:04:31 +03:00
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# CPUID:
|
|
|
|
#
|
2011-07-29 19:03:54 +04:00
|
|
|
# This defines features and functionality supported by Bochs emulated CPU.
|
|
|
|
# The option has no offect if CPU model was selected in CPU option.
|
2010-02-26 01:04:31 +03:00
|
|
|
#
|
2010-03-01 21:53:53 +03:00
|
|
|
# MMX:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select MMX instruction set support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 5.
|
2010-03-01 21:53:53 +03:00
|
|
|
#
|
2011-04-21 17:27:42 +04:00
|
|
|
# APIC:
|
2012-01-04 20:06:37 +04:00
|
|
|
# Select APIC configuration (LEGACY/XAPIC/XAPIC_EXT/X2APIC).
|
2011-07-29 19:03:54 +04:00
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 5.
|
2011-04-21 17:27:42 +04:00
|
|
|
#
|
2010-02-26 14:44:50 +03:00
|
|
|
# SEP:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select SYSENTER/SYSEXIT instruction set support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2010-02-26 14:44:50 +03:00
|
|
|
#
|
2010-02-26 01:34:56 +03:00
|
|
|
# SSE:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select SSE instruction set support.
|
|
|
|
# Any of NONE/SSE/SSE2/SSE3/SSSE3/SSE4_1/SSE4_2 could be selected.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2010-02-26 01:04:31 +03:00
|
|
|
#
|
2011-09-18 20:18:22 +04:00
|
|
|
# SSE4A:
|
|
|
|
# Select AMD SSE4A instructions support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
|
|
|
#
|
2010-02-26 01:04:31 +03:00
|
|
|
# AES:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select AES instruction set support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2010-02-26 01:04:31 +03:00
|
|
|
#
|
|
|
|
# MOVBE:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select MOVBE Intel(R) Atom instruction support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2010-02-26 01:04:31 +03:00
|
|
|
#
|
2012-07-12 18:51:54 +04:00
|
|
|
# ADX:
|
|
|
|
# Select ADCX/ADOX instructions support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
|
|
|
#
|
2010-02-27 01:53:43 +03:00
|
|
|
# XSAVE:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select XSAVE extensions support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2010-04-24 13:36:04 +04:00
|
|
|
#
|
2011-03-25 23:35:58 +03:00
|
|
|
# XSAVEOPT:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select XSAVEOPT instruction support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2011-03-25 23:35:58 +03:00
|
|
|
#
|
2011-05-25 00:33:36 +04:00
|
|
|
# AVX:
|
2011-08-27 17:47:16 +04:00
|
|
|
# Select AVX/AVX2 instruction set support.
|
2011-07-29 19:03:54 +04:00
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
2011-05-25 00:33:36 +04:00
|
|
|
#
|
2011-06-11 17:12:32 +04:00
|
|
|
# AVX_F16C:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select AVX float16 convert instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
2011-06-11 17:12:32 +04:00
|
|
|
#
|
2011-09-30 02:20:56 +04:00
|
|
|
# AVX_FMA:
|
|
|
|
# Select AVX fused multiply add (FMA) instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
|
|
|
#
|
2011-08-27 17:47:16 +04:00
|
|
|
# BMI:
|
|
|
|
# Select BMI1/BMI2 instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
|
|
|
#
|
2011-10-20 00:54:04 +04:00
|
|
|
# XOP:
|
|
|
|
# Select AMD XOP instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
|
|
|
#
|
2011-10-07 18:09:35 +04:00
|
|
|
# FMA4:
|
|
|
|
# Select AMD four operand FMA instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
|
|
|
#
|
2011-10-20 00:54:04 +04:00
|
|
|
# TBM:
|
|
|
|
# Select AMD Trailing Bit Manipulation (TBM) instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-avx option.
|
|
|
|
#
|
2011-09-25 21:36:20 +04:00
|
|
|
# X86-64:
|
|
|
|
# Enable x86-64 and long mode support.
|
|
|
|
# This option exists only if Bochs compiled with x86-64 support.
|
|
|
|
#
|
2010-04-24 13:36:04 +04:00
|
|
|
# 1G_PAGES:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Enable 1G page size support in long mode.
|
|
|
|
# This option exists only if Bochs compiled with x86-64 support.
|
2010-04-29 23:34:32 +04:00
|
|
|
#
|
|
|
|
# PCID:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Enable Process-Context Identifiers (PCID) support in long mode.
|
|
|
|
# This option exists only if Bochs compiled with x86-64 support.
|
2010-02-27 01:53:43 +03:00
|
|
|
#
|
2010-07-22 20:41:59 +04:00
|
|
|
# FSGSBASE:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Enable GS/GS BASE access instructions support in long mode.
|
|
|
|
# This option exists only if Bochs compiled with x86-64 support.
|
2010-07-22 20:41:59 +04:00
|
|
|
#
|
2011-05-29 20:28:26 +04:00
|
|
|
# SMEP:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Enable Supervisor Mode Execution Protection (SMEP) support.
|
|
|
|
# This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
|
2011-05-29 20:28:26 +04:00
|
|
|
#
|
2010-11-21 15:02:12 +03:00
|
|
|
# MWAIT:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Select MONITOR/MWAIT instructions support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-monitor-mwait.
|
2010-11-21 15:02:12 +03:00
|
|
|
#
|
2011-12-21 13:11:51 +04:00
|
|
|
# VMX:
|
|
|
|
# Select VMX extensions emulation support.
|
|
|
|
# This option exists only if Bochs compiled with --enable-vmx option.
|
|
|
|
#
|
2010-02-26 01:04:31 +03:00
|
|
|
# VENDOR_STRING:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Set the CPUID vendor string returned by CPUID(0x0). This should be a
|
|
|
|
# twelve-character ASCII string.
|
2010-02-26 01:04:31 +03:00
|
|
|
#
|
|
|
|
# BRAND_STRING:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Set the CPUID vendor string returned by CPUID(0x80000002 .. 0x80000004).
|
|
|
|
# This should be at most a forty-eight-character ASCII string.
|
2010-02-26 01:04:31 +03:00
|
|
|
#
|
2011-02-25 18:05:48 +03:00
|
|
|
# FAMILY:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Set model information returned by CPUID. Default family value determined
|
|
|
|
# by configure option --enable-cpu-level.
|
2011-02-25 18:05:48 +03:00
|
|
|
#
|
|
|
|
# MODEL:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Set model information returned by CPUID. Default model value is 3.
|
2011-02-25 18:05:48 +03:00
|
|
|
#
|
2010-07-17 01:03:52 +04:00
|
|
|
# STEPPING:
|
2011-07-29 19:03:54 +04:00
|
|
|
# Set stepping information returned by CPUID. Default stepping value is 3.
|
2010-02-26 01:04:31 +03:00
|
|
|
#=======================================================================
|
2011-09-25 21:36:20 +04:00
|
|
|
#cpuid: x86_64=1, mmx=1, sep=1, sse=sse4_2, apic=xapic, aes=1, movbe=1, xsave=1
|
2011-08-27 17:47:16 +04:00
|
|
|
#cpuid: family=6, model=0x1a, stepping=5
|
2006-01-18 21:35:38 +03:00
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2009-10-17 21:38:58 +04:00
|
|
|
# MEMORY
|
|
|
|
# Set the amount of physical memory you want to emulate.
|
|
|
|
#
|
|
|
|
# GUEST:
|
|
|
|
# Set amount of guest physical memory to emulate. The default is 32MB,
|
|
|
|
# the maximum amount limited only by physical address space limitations.
|
|
|
|
#
|
|
|
|
# HOST:
|
|
|
|
# Set amount of host memory you want to allocate for guest RAM emulation.
|
|
|
|
# It is possible to allocate less memory than you want to emulate in guest
|
|
|
|
# system. This will fake guest to see the non-existing memory. Once guest
|
|
|
|
# system touches new memory block it will be dynamically taken from the
|
|
|
|
# memory pool. You will be warned (by FATAL PANIC) in case guest already
|
|
|
|
# used all allocated host memory and wants more.
|
|
|
|
#
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2009-10-17 21:38:58 +04:00
|
|
|
memory: guest=512, host=256
|
2001-04-10 05:04:59 +04:00
|
|
|
|
2002-07-24 21:52:34 +04:00
|
|
|
#=======================================================================
|
|
|
|
# OPTROMIMAGE[1-4]:
|
|
|
|
# You may now load up to 4 optional ROM images. Be sure to use a
|
|
|
|
# read-only area, typically between C8000 and EFFFF. These optional
|
|
|
|
# ROM images should not overwrite the rombios (located at
|
|
|
|
# F0000-FFFFF) and the videobios (located at C0000-C7FFF).
|
|
|
|
# Those ROM images will be initialized by the bios if they contain
|
2004-10-16 21:46:36 +04:00
|
|
|
# the right signature (0x55AA) and a valid checksum.
|
2005-10-23 11:17:01 +04:00
|
|
|
# It can also be a convenient way to upload some arbitrary code/data
|
2002-07-24 21:52:34 +04:00
|
|
|
# in the simulation, that can be retrieved by the boot loader
|
|
|
|
#=======================================================================
|
|
|
|
#optromimage1: file=optionalrom.bin, address=0xd0000
|
|
|
|
#optromimage2: file=optionalrom.bin, address=0xd1000
|
|
|
|
#optromimage3: file=optionalrom.bin, address=0xd2000
|
|
|
|
#optromimage4: file=optionalrom.bin, address=0xd3000
|
|
|
|
|
2005-10-28 04:12:27 +04:00
|
|
|
#optramimage1: file=/path/file1.img, address=0x0010000
|
|
|
|
#optramimage2: file=/path/file2.img, address=0x0020000
|
|
|
|
#optramimage3: file=/path/file3.img, address=0x0030000
|
|
|
|
#optramimage4: file=/path/file4.img, address=0x0040000
|
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
|
|
|
# VGAROMIMAGE
|
|
|
|
# You now need to load a VGA ROM BIOS into C0000.
|
|
|
|
#=======================================================================
|
2004-09-01 22:12:23 +04:00
|
|
|
#vgaromimage: file=bios/VGABIOS-elpin-2.40
|
2005-01-08 20:02:25 +03:00
|
|
|
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
|
2005-04-13 21:13:05 +04:00
|
|
|
#vgaromimage: file=bios/VGABIOS-lgpl-latest-cirrus
|
2001-04-10 05:04:59 +04:00
|
|
|
|
2005-02-10 12:48:12 +03:00
|
|
|
#=======================================================================
|
|
|
|
# VGA:
|
2011-08-30 01:00:25 +04:00
|
|
|
# This defines parameters related to the VGA display
|
2011-07-27 02:16:24 +04:00
|
|
|
#
|
|
|
|
# EXTENSION
|
|
|
|
# Here you can specify the display extension to be used. With the value
|
|
|
|
# 'none' you can use standard VGA with no extension. Other supported
|
|
|
|
# values are 'vbe' for Bochs VBE and 'cirrus' for Cirrus SVGA support.
|
|
|
|
#
|
|
|
|
# UPDATE_FREQ
|
|
|
|
# The VGA update frequency is based on the emulated clock and the default
|
|
|
|
# value is 5. Keep in mind that you must tweak the 'cpu: ips=N' directive
|
|
|
|
# to be as close to the number of emulated instructions-per-second your
|
|
|
|
# workstation can do, for this to be accurate. If the realtime sync is
|
|
|
|
# enabled with the 'clock' option, the value is based on the real time.
|
|
|
|
# This parameter can be changed at runtime.
|
|
|
|
#
|
|
|
|
# Examples:
|
2011-10-31 14:00:32 +04:00
|
|
|
# vga: extension=cirrus, update_freq=10
|
2005-02-10 12:48:12 +03:00
|
|
|
#=======================================================================
|
2011-07-27 02:16:24 +04:00
|
|
|
#vga: extension=vbe, update_freq=5
|
2005-02-10 12:48:12 +03:00
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
|
|
|
# FLOPPYA:
|
|
|
|
# Point this to pathname of floppy image file or device
|
2005-01-08 20:02:25 +03:00
|
|
|
# This should be of a bootable floppy(image/device) if you're
|
2004-09-07 22:02:29 +04:00
|
|
|
# booting from 'a' (or 'floppy').
|
2001-05-24 12:59:05 +04:00
|
|
|
#
|
2001-04-10 05:04:59 +04:00
|
|
|
# You can set the initial status of the media to 'ejected' or 'inserted'.
|
2009-03-24 14:20:17 +03:00
|
|
|
# floppya: 2_88=path, status=ejected (2.88M 3.5" media)
|
|
|
|
# floppya: 1_44=path, status=inserted (1.44M 3.5" media)
|
|
|
|
# floppya: 1_2=path, status=ejected (1.2M 5.25" media)
|
|
|
|
# floppya: 720k=path, status=inserted (720K 3.5" media)
|
|
|
|
# floppya: 360k=path, status=inserted (360K 5.25" media)
|
|
|
|
# floppya: 320k=path, status=inserted (320K 5.25" media)
|
|
|
|
# floppya: 180k=path, status=inserted (180K 5.25" media)
|
|
|
|
# floppya: 160k=path, status=inserted (160K 5.25" media)
|
|
|
|
# floppya: image=path, status=inserted (guess media type from image size)
|
2011-01-16 15:46:48 +03:00
|
|
|
# floppya: 1_44=vvfat:path, status=inserted (use directory as VFAT media)
|
2009-03-24 14:20:17 +03:00
|
|
|
# floppya: type=1_44 (1.44M 3.5" floppy drive, no media)
|
2002-03-20 04:37:44 +03:00
|
|
|
#
|
2005-01-08 20:02:25 +03:00
|
|
|
# The path should be the name of a disk image file. On Unix, you can use a raw
|
2004-10-16 21:46:36 +04:00
|
|
|
# device name such as /dev/fd0 on Linux. On win32 platforms, use drive letters
|
2004-09-07 22:02:29 +04:00
|
|
|
# such as a: or b: as the path. The parameter 'image' works with image files
|
|
|
|
# only. In that case the size must match one of the supported types.
|
2009-03-24 14:20:17 +03:00
|
|
|
# The parameter 'type' can be used to enable the floppy drive without media
|
|
|
|
# and status specified. Usually the drive type is set up based on the media type.
|
2010-07-03 09:34:27 +04:00
|
|
|
# The optional parameter 'write_protected' can be used to control the media
|
|
|
|
# write protect switch. By default it is turned off.
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2002-03-20 04:37:44 +03:00
|
|
|
floppya: 1_44=/dev/fd0, status=inserted
|
2005-01-08 20:02:25 +03:00
|
|
|
#floppya: image=../1.44, status=inserted
|
2002-03-20 04:37:44 +03:00
|
|
|
#floppya: 1_44=/dev/fd0H1440, status=inserted
|
|
|
|
#floppya: 1_2=../1_2, status=inserted
|
2002-10-06 23:39:20 +04:00
|
|
|
#floppya: 1_44=a:, status=inserted
|
2010-07-03 09:34:27 +04:00
|
|
|
#floppya: 1_44=a.img, status=inserted, write_protected=1
|
2003-08-19 04:37:03 +04:00
|
|
|
#floppya: 1_44=/dev/rfd0a, status=inserted
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# FLOPPYB:
|
2001-05-31 23:56:27 +04:00
|
|
|
# See FLOPPYA above for syntax
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2002-03-20 04:37:44 +03:00
|
|
|
#floppyb: 1_44=b:, status=inserted
|
2006-05-12 21:04:19 +04:00
|
|
|
#floppyb: 1_44=b.img, status=inserted
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
2002-09-24 18:46:58 +04:00
|
|
|
# ATA0, ATA1, ATA2, ATA3
|
|
|
|
# ATA controller for hard disks and cdroms
|
|
|
|
#
|
|
|
|
# ata[0-3]: enabled=[0|1], ioaddr1=addr, ioaddr2=addr, irq=number
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
|
|
|
# These options enables up to 4 ata channels. For each channel
|
2003-05-03 20:37:18 +04:00
|
|
|
# the two base io addresses and the irq must be specified.
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
2005-11-27 12:00:20 +03:00
|
|
|
# ata0 and ata1 are enabled by default with the values shown below
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
|
|
|
|
# ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
|
2003-10-04 00:58:23 +04:00
|
|
|
# ata2: enabled=1, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
|
|
|
|
# ata3: enabled=1, ioaddr1=0x168, ioaddr2=0x360, irq=9
|
2002-09-23 00:56:12 +04:00
|
|
|
#=======================================================================
|
|
|
|
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
|
2005-11-27 12:00:20 +03:00
|
|
|
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
|
2003-10-04 00:58:23 +04:00
|
|
|
ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
|
|
|
|
ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9
|
2002-09-23 00:56:12 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
2002-09-24 18:46:58 +04:00
|
|
|
# ATA[0-3]-MASTER, ATA[0-3]-SLAVE
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
|
|
|
# This defines the type and characteristics of all attached ata devices:
|
|
|
|
# type= type of attached device [disk|cdrom]
|
2003-05-03 20:37:18 +04:00
|
|
|
# mode= only valid for disks [flat|concat|external|dll|sparse|vmware3]
|
2012-08-05 13:33:33 +04:00
|
|
|
# [vmware4|undoable|growing|volatile|vpc|vvfat]
|
2011-01-01 22:14:25 +03:00
|
|
|
# path= path of the image / directory
|
2002-09-23 00:56:12 +04:00
|
|
|
# cylinders= only valid for disks
|
|
|
|
# heads= only valid for disks
|
|
|
|
# spt= only valid for disks
|
|
|
|
# status= only valid for cdroms [inserted|ejected]
|
|
|
|
# biosdetect= type of biosdetection [none|auto], only for disks on ata0 [cmos]
|
2005-10-23 11:17:01 +04:00
|
|
|
# translation=type of translation of the bios, only for disks [none|lba|large|rechs|auto]
|
2002-09-23 00:56:12 +04:00
|
|
|
# model= string returned by identify device command
|
2011-01-06 01:53:44 +03:00
|
|
|
# journal= optional filename of the redolog for undoable, volatile and vvfat disks
|
2009-03-24 14:20:17 +03:00
|
|
|
#
|
2002-12-17 04:36:11 +03:00
|
|
|
# Point this at a hard disk image file, cdrom iso file, or physical cdrom
|
|
|
|
# device. To create a hard disk image, try running bximage. It will help you
|
|
|
|
# choose the size and then suggest a line that works with it.
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
|
|
|
# In UNIX it may be possible to use a raw device as a Bochs hard disk,
|
|
|
|
# but WE DON'T RECOMMEND IT. In Windows there is no easy way.
|
|
|
|
#
|
|
|
|
# In windows, the drive letter + colon notation should be used for cdroms.
|
|
|
|
# Depending on versions of windows and drivers, you may only be able to
|
2002-12-17 04:36:11 +03:00
|
|
|
# access the "first" cdrom in the system. On MacOSX, use path="drive"
|
|
|
|
# to access the physical drive.
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
2009-03-24 14:20:17 +03:00
|
|
|
# The path is mandatory for hard disks. Disk geometry autodetection works with
|
|
|
|
# images created by bximage if CHS is set to 0/0/0 (cylinders are calculated
|
|
|
|
# using heads=16 and spt=63). For other hard disk images and modes the
|
2009-04-30 23:04:43 +04:00
|
|
|
# cylinders, heads, and spt are mandatory. In all cases the disk size reported
|
|
|
|
# from the image must be exactly C*H*S*512.
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
|
|
|
# Default values are:
|
2003-05-03 20:37:18 +04:00
|
|
|
# mode=flat, biosdetect=auto, translation=auto, model="Generic 1234"
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
2002-10-28 00:25:33 +03:00
|
|
|
# The biosdetect option has currently no effect on the bios
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
|
|
|
# Examples:
|
2003-05-03 20:37:18 +04:00
|
|
|
# ata0-master: type=disk, mode=flat, path=10M.sample, cylinders=306, heads=4, spt=17
|
|
|
|
# ata0-slave: type=disk, mode=flat, path=20M.sample, cylinders=615, heads=4, spt=17
|
|
|
|
# ata1-master: type=disk, mode=flat, path=30M.sample, cylinders=615, heads=6, spt=17
|
|
|
|
# ata1-slave: type=disk, mode=flat, path=46M.sample, cylinders=940, heads=6, spt=17
|
|
|
|
# ata2-master: type=disk, mode=flat, path=62M.sample, cylinders=940, heads=8, spt=17
|
|
|
|
# ata2-slave: type=disk, mode=flat, path=112M.sample, cylinders=900, heads=15, spt=17
|
|
|
|
# ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63
|
2002-09-23 00:56:12 +04:00
|
|
|
# ata3-slave: type=cdrom, path=iso.sample, status=inserted
|
|
|
|
#=======================================================================
|
2006-10-11 18:54:40 +04:00
|
|
|
ata0-master: type=disk, mode=flat, path="30M.sample"
|
|
|
|
#ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17
|
2006-06-17 11:45:27 +04:00
|
|
|
#ata0-master: type=disk, mode=flat, path="c.img", cylinders=0 # autodetect
|
2011-01-06 01:53:44 +03:00
|
|
|
#ata0-slave: type=disk, mode=vvfat, path=/bochs/images/vvfat, journal=vvfat.redolog
|
2002-11-19 18:06:05 +03:00
|
|
|
#ata0-slave: type=cdrom, path=D:, status=inserted
|
|
|
|
#ata0-slave: type=cdrom, path=/dev/cdrom, status=inserted
|
2002-12-17 04:36:11 +03:00
|
|
|
#ata0-slave: type=cdrom, path="drive", status=inserted
|
2003-08-19 04:37:03 +04:00
|
|
|
#ata0-slave: type=cdrom, path=/dev/rcd0d, status=inserted
|
2002-09-23 00:56:12 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
2003-08-19 04:10:39 +04:00
|
|
|
# BOOT:
|
2007-09-15 20:00:25 +04:00
|
|
|
# This defines the boot sequence. Now you can specify up to 3 boot drives,
|
|
|
|
# which can be 'floppy', 'disk', 'cdrom' or 'network' (boot ROM).
|
|
|
|
# Legacy 'a' and 'c' are also supported.
|
2001-04-10 05:04:59 +04:00
|
|
|
# Examples:
|
2003-08-19 04:10:39 +04:00
|
|
|
# boot: floppy
|
2007-08-01 21:10:24 +04:00
|
|
|
# boot: cdrom, disk
|
|
|
|
# boot: network, disk
|
2004-10-16 21:46:36 +04:00
|
|
|
# boot: cdrom, floppy, disk
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2003-08-19 04:10:39 +04:00
|
|
|
#boot: floppy
|
|
|
|
boot: disk
|
2001-05-23 12:16:07 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
2003-08-19 04:10:39 +04:00
|
|
|
# CLOCK:
|
|
|
|
# This defines the parameters of the clock inside Bochs:
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
2003-08-19 04:10:39 +04:00
|
|
|
# SYNC:
|
2009-04-29 22:07:56 +04:00
|
|
|
# This defines the method how to synchronize the Bochs internal time
|
|
|
|
# with realtime. With the value 'none' the Bochs time relies on the IPS
|
|
|
|
# value and no host time synchronization is used. The 'slowdown' method
|
|
|
|
# sacrifices performance to preserve reproducibility while allowing host
|
|
|
|
# time correlation. The 'realtime' method sacrifices reproducibility to
|
|
|
|
# preserve performance and host-time correlation.
|
|
|
|
# It is possible to enable both synchronization methods.
|
2002-09-23 00:56:12 +04:00
|
|
|
#
|
2012-05-15 21:03:45 +04:00
|
|
|
# RTC_SYNC:
|
|
|
|
# If this option is enabled together with the realtime synchronization,
|
|
|
|
# the RTC runs at realtime speed. This feature is disabled by default.
|
|
|
|
#
|
2003-08-19 04:10:39 +04:00
|
|
|
# TIME0:
|
|
|
|
# Specifies the start (boot) time of the virtual machine. Use a time
|
|
|
|
# value as returned by the time(2) system call. If no time0 value is
|
|
|
|
# set or if time0 equal to 1 (special case) or if time0 equal 'local',
|
|
|
|
# the simulation will be started at the current local host time.
|
|
|
|
# If time0 equal to 2 (special case) or if time0 equal 'utc',
|
|
|
|
# the simulation will be started at the current utc time.
|
2002-03-20 04:37:44 +03:00
|
|
|
#
|
2003-08-19 04:10:39 +04:00
|
|
|
# Syntax:
|
2005-10-23 11:17:01 +04:00
|
|
|
# clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc]
|
2002-03-20 04:37:44 +03:00
|
|
|
#
|
2003-08-19 04:10:39 +04:00
|
|
|
# Example:
|
|
|
|
# clock: sync=none, time0=local # Now (localtime)
|
|
|
|
# clock: sync=slowdown, time0=315529200 # Tue Jan 1 00:00:00 1980
|
|
|
|
# clock: sync=none, time0=631148400 # Mon Jan 1 00:00:00 1990
|
|
|
|
# clock: sync=realtime, time0=938581955 # Wed Sep 29 07:12:35 1999
|
|
|
|
# clock: sync=realtime, time0=946681200 # Sat Jan 1 00:00:00 2000
|
|
|
|
# clock: sync=none, time0=1 # Now (localtime)
|
|
|
|
# clock: sync=none, time0=utc # Now (utc/gmt)
|
|
|
|
#
|
|
|
|
# Default value are sync=none, time0=local
|
2001-05-23 12:16:07 +04:00
|
|
|
#=======================================================================
|
2003-08-19 04:10:39 +04:00
|
|
|
#clock: sync=none, time0=local
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
|
2002-04-23 11:44:34 +04:00
|
|
|
#=======================================================================
|
2002-05-04 20:00:40 +04:00
|
|
|
# FLOPPY_BOOTSIG_CHECK: disabled=[0|1]
|
2002-04-23 11:44:34 +04:00
|
|
|
# Enables or disables the 0xaa55 signature check on boot floppies
|
2002-05-04 20:00:40 +04:00
|
|
|
# Defaults to disabled=0
|
2002-04-23 11:44:34 +04:00
|
|
|
# Examples:
|
2002-05-04 20:00:40 +04:00
|
|
|
# floppy_bootsig_check: disabled=0
|
|
|
|
# floppy_bootsig_check: disabled=1
|
2002-04-23 11:44:34 +04:00
|
|
|
#=======================================================================
|
2002-05-04 20:00:40 +04:00
|
|
|
floppy_bootsig_check: disabled=0
|
2002-04-23 11:44:34 +04:00
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
|
|
|
# LOG:
|
2006-01-19 21:13:28 +03:00
|
|
|
# Give the path of the log file you'd like Bochs debug and misc. verbiage
|
2005-01-08 20:02:25 +03:00
|
|
|
# to be written to. If you don't use this option or set the filename to
|
|
|
|
# '-' the output is written to the console. If you really don't want it,
|
|
|
|
# make it "/dev/null" (Unix) or "nul" (win32). :^(
|
2001-04-10 05:04:59 +04:00
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# log: ./bochs.out
|
|
|
|
# log: /dev/tty
|
|
|
|
#=======================================================================
|
2001-05-23 12:16:07 +04:00
|
|
|
#log: /dev/null
|
|
|
|
log: bochsout.txt
|
|
|
|
|
2002-06-26 18:42:35 +04:00
|
|
|
#=======================================================================
|
|
|
|
# LOGPREFIX:
|
2002-11-10 17:39:32 +03:00
|
|
|
# This handles the format of the string prepended to each log line.
|
2002-06-26 18:42:35 +04:00
|
|
|
# You may use those special tokens :
|
|
|
|
# %t : 11 decimal digits timer tick
|
2006-01-18 21:35:38 +03:00
|
|
|
# %i : 8 hexadecimal digits of cpu current eip (ignored in SMP configuration)
|
2002-06-26 18:42:35 +04:00
|
|
|
# %e : 1 character event type ('i'nfo, 'd'ebug, 'p'anic, 'e'rror)
|
|
|
|
# %d : 5 characters string of the device, between brackets
|
|
|
|
#
|
|
|
|
# Default : %t%e%d
|
|
|
|
# Examples:
|
|
|
|
# logprefix: %t-%e-@%i-%d
|
|
|
|
# logprefix: %i%e%d
|
|
|
|
#=======================================================================
|
|
|
|
#logprefix: %t%e%d
|
|
|
|
|
2001-05-23 12:16:07 +04:00
|
|
|
#=======================================================================
|
|
|
|
# LOG CONTROLS
|
|
|
|
#
|
2012-04-03 22:41:28 +04:00
|
|
|
# Bochs has four severity levels for event logging.
|
2001-05-23 12:16:07 +04:00
|
|
|
# panic: cannot proceed. If you choose to continue after a panic,
|
|
|
|
# don't be surprised if you get strange behavior or crashes.
|
|
|
|
# error: something went wrong, but it is probably safe to continue the
|
|
|
|
# simulation.
|
|
|
|
# info: interesting or useful messages.
|
|
|
|
# debug: messages useful only when debugging the code. This may
|
|
|
|
# spit out thousands per second.
|
|
|
|
#
|
2012-01-07 18:14:53 +04:00
|
|
|
# For events of each level, you can choose to exit Bochs ('fatal'), 'report'
|
|
|
|
# or 'ignore'. On some guis you have the additional choice 'ask'. A gui dialog
|
|
|
|
# appears asks how to proceed.
|
|
|
|
#
|
|
|
|
# It is also possible to specify the 'action' to do for each Bochs facility
|
|
|
|
# separately (e.g. crash on panics from everything except the cdrom, and only
|
2012-04-03 22:41:28 +04:00
|
|
|
# report those). See the 'log function' module list in the user documentation.
|
2001-05-24 12:59:05 +04:00
|
|
|
#
|
|
|
|
# If you are experiencing many panics, it can be helpful to change
|
|
|
|
# the panic action to report instead of fatal. However, be aware
|
|
|
|
# that anything executed after a panic is uncharted territory and can
|
|
|
|
# cause bochs to become unstable. The panic is a "graceful exit," so
|
|
|
|
# if you disable it you may get a spectacular disaster instead.
|
2001-05-23 12:16:07 +04:00
|
|
|
#=======================================================================
|
2001-06-28 06:09:05 +04:00
|
|
|
panic: action=ask
|
2001-05-23 12:16:07 +04:00
|
|
|
error: action=report
|
|
|
|
info: action=report
|
2012-01-07 18:14:53 +04:00
|
|
|
debug: action=ignore, pci=report # report BX_DEBUG from module 'pci'
|
2001-04-10 05:04:59 +04:00
|
|
|
|
2002-12-03 00:26:05 +03:00
|
|
|
#=======================================================================
|
|
|
|
# DEBUGGER_LOG:
|
2002-12-03 00:37:53 +03:00
|
|
|
# Give the path of the log file you'd like Bochs to log debugger output.
|
|
|
|
# If you really don't want it, make it /dev/null or '-'. :^(
|
2002-12-03 00:26:05 +03:00
|
|
|
#
|
|
|
|
# Examples:
|
2002-12-03 00:37:53 +03:00
|
|
|
# debugger_log: ./debugger.out
|
2002-12-03 00:26:05 +03:00
|
|
|
#=======================================================================
|
|
|
|
#debugger_log: /dev/null
|
2002-12-03 00:37:53 +03:00
|
|
|
#debugger_log: debugger.out
|
|
|
|
debugger_log: -
|
2002-12-03 00:26:05 +03:00
|
|
|
|
2002-03-03 09:05:33 +03:00
|
|
|
#=======================================================================
|
2004-07-28 23:36:42 +04:00
|
|
|
# COM1, COM2, COM3, COM4:
|
|
|
|
# This defines a serial port (UART type 16550A). In the 'term' you can specify
|
|
|
|
# a device to use as com1. This can be a real serial line, or a pty. To use
|
|
|
|
# a pty (under X/Unix), create two windows (xterms, usually). One of them will
|
2003-12-28 20:00:04 +03:00
|
|
|
# run bochs, and the other will act as com1. Find out the tty the com1
|
|
|
|
# window using the `tty' command, and use that as the `dev' parameter.
|
|
|
|
# Then do `sleep 1000000' in the com1 window to keep the shell from
|
|
|
|
# messing with things, and run bochs in the other window. Serial I/O to
|
|
|
|
# com1 (port 0x3f8) will all go to the other window.
|
2008-05-22 12:13:22 +04:00
|
|
|
# In socket* and pipe* (win32 only) modes Bochs becomes either socket/named pipe
|
|
|
|
# client or server. In client mode it connects to an already running server (if
|
|
|
|
# connection fails Bochs treats com port as not connected). In server mode it
|
|
|
|
# opens socket/named pipe and waits until a client application connects to it
|
|
|
|
# before starting simulation. This mode is useful for remote debugging (e.g.
|
|
|
|
# with gdb's "target remote host:port" command or windbg's command line option
|
|
|
|
# -k com:pipe,port=\\.\pipe\pipename). Note: 'socket' is a shorthand for
|
|
|
|
# 'socket-client' and 'pipe' for 'pipe-client'. Socket modes use simple TCP
|
|
|
|
# communication, pipe modes use duplex byte mode pipes.
|
2004-07-28 23:36:42 +04:00
|
|
|
# Other serial modes are 'null' (no input/output), 'file' (output to a file
|
2004-12-03 00:34:26 +03:00
|
|
|
# specified as the 'dev' parameter), 'raw' (use the real serial port - under
|
2005-09-18 11:16:28 +04:00
|
|
|
# construction for win32), 'mouse' (standard serial mouse - requires
|
2008-05-22 12:13:22 +04:00
|
|
|
# mouse option setting 'type=serial', 'type=serial_wheel' or 'type=serial_msys').
|
2004-07-28 23:36:42 +04:00
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# com1: enabled=1, mode=null
|
2004-12-03 00:34:26 +03:00
|
|
|
# com1: enabled=1, mode=mouse
|
2004-07-28 23:36:42 +04:00
|
|
|
# com2: enabled=1, mode=file, dev=serial.out
|
|
|
|
# com3: enabled=1, mode=raw, dev=com1
|
2008-05-22 12:13:22 +04:00
|
|
|
# com3: enabled=1, mode=socket-client, dev=localhost:8888
|
|
|
|
# com3: enabled=1, mode=socket-server, dev=localhost:8888
|
|
|
|
# com4: enabled=1, mode=pipe-client, dev=\\.\pipe\mypipe
|
|
|
|
# com4: enabled=1, mode=pipe-server, dev=\\.\pipe\mypipe
|
2002-03-03 09:05:33 +03:00
|
|
|
#=======================================================================
|
2004-07-28 23:36:42 +04:00
|
|
|
#com1: enabled=1, mode=term, dev=/dev/ttyp9
|
2002-03-03 09:05:33 +03:00
|
|
|
|
2001-11-12 05:35:09 +03:00
|
|
|
|
|
|
|
#=======================================================================
|
2004-07-28 23:36:42 +04:00
|
|
|
# PARPORT1, PARPORT2:
|
2002-08-24 14:20:35 +04:00
|
|
|
# This defines a parallel (printer) port. When turned on and an output file is
|
|
|
|
# defined the emulated printer port sends characters printed by the guest OS
|
|
|
|
# into the output file. On some platforms a device filename can be used to
|
|
|
|
# send the data to the real parallel port (e.g. "/dev/lp0" on Linux, "lpt1" on
|
|
|
|
# win32 platforms).
|
2001-11-12 05:35:09 +03:00
|
|
|
#
|
|
|
|
# Examples:
|
2002-08-24 14:20:35 +04:00
|
|
|
# parport1: enabled=1, file="parport.out"
|
2004-07-28 23:36:42 +04:00
|
|
|
# parport2: enabled=1, file="/dev/lp0"
|
2002-08-24 14:20:35 +04:00
|
|
|
# parport1: enabled=0
|
2001-11-12 05:35:09 +03:00
|
|
|
#=======================================================================
|
2002-08-24 14:20:35 +04:00
|
|
|
parport1: enabled=1, file="parport.out"
|
2001-11-12 05:35:09 +03:00
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
|
|
|
# SB16:
|
|
|
|
# This defines the SB16 sound emulation. It can have several of the
|
|
|
|
# following properties.
|
|
|
|
# All properties are in the format sb16: property=value
|
2011-03-13 12:09:34 +03:00
|
|
|
# enabled:
|
|
|
|
# This optional property controls the presence of the SB16 emulation.
|
|
|
|
# The emulation is turned on unless this property is used and set to 0.
|
2001-04-10 05:04:59 +04:00
|
|
|
# midi: The filename is where the midi data is sent. This can be a
|
|
|
|
# device or just a file if you want to record the midi data.
|
|
|
|
# midimode:
|
|
|
|
# 0=no data
|
|
|
|
# 1=output to device (system dependent. midi denotes the device driver)
|
|
|
|
# 2=SMF file output, including headers
|
|
|
|
# 3=output the midi data stream to the file (no midi headers and no
|
|
|
|
# delta times, just command and data bytes)
|
|
|
|
# wave: This is the device/file where wave output is stored
|
|
|
|
# wavemode:
|
|
|
|
# 0=no data
|
|
|
|
# 1=output to device (system dependent. wave denotes the device driver)
|
|
|
|
# 2=VOC file output, incl. headers
|
|
|
|
# 3=output the raw wave stream to the file
|
|
|
|
# log: The file to write the sb16 emulator messages to.
|
|
|
|
# loglevel:
|
|
|
|
# 0=no log
|
2005-08-27 12:17:13 +04:00
|
|
|
# 1=resource changes, midi program and bank changes
|
2001-04-10 05:04:59 +04:00
|
|
|
# 2=severe errors
|
|
|
|
# 3=all errors
|
|
|
|
# 4=all errors plus all port accesses
|
|
|
|
# 5=all errors and port accesses plus a lot of extra info
|
|
|
|
# dmatimer:
|
|
|
|
# microseconds per second for a DMA cycle. Make it smaller to fix
|
2005-10-23 11:17:01 +04:00
|
|
|
# non-continuous sound. 750000 is usually a good value. This needs a
|
2006-01-25 23:07:36 +03:00
|
|
|
# reasonably correct setting for the IPS parameter of the CPU option.
|
2001-04-10 05:04:59 +04:00
|
|
|
#
|
2008-07-19 16:01:54 +04:00
|
|
|
# Examples for output devices:
|
|
|
|
# sb16: midimode=1, midi="", wavemode=1, wave="" # win32
|
|
|
|
# sb16: midimode=1, midi=alsa:128:0, wavemode=1, wave=alsa # Linux with ALSA
|
2012-06-10 17:47:07 +04:00
|
|
|
# sb16: wavemode=1, wave=sdl # use SDL audio (if present) for output
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
|
|
|
#sb16: midimode=1, midi=/dev/midi00, wavemode=1, wave=/dev/dsp, loglevel=2, log=sb16.log, dmatimer=600000
|
|
|
|
|
2011-03-13 12:09:34 +03:00
|
|
|
#=======================================================================
|
|
|
|
# ES1370:
|
|
|
|
# This defines the ES1370 sound emulation. The parameter 'enabled' controls the
|
2012-07-12 01:03:59 +04:00
|
|
|
# presence of the device. The 'wavedev' parameter is similar to the 'wave'
|
2011-12-26 21:32:57 +04:00
|
|
|
# parameter of the SB16 soundcard. The emulation supports recording and playback
|
|
|
|
# (except DAC1+DAC2 output at the same time).
|
2011-03-13 12:09:34 +03:00
|
|
|
#
|
|
|
|
# Examples:
|
2012-06-10 17:47:07 +04:00
|
|
|
# es1370: enabled=1, wavedev="" # win32
|
|
|
|
# es1370: enabled=1, wavedev=alsa # Linux with ALSA
|
|
|
|
# es1370: enabled=1, wavedev=sdl # use SDL audio (if present) for output
|
2011-03-13 12:09:34 +03:00
|
|
|
#=======================================================================
|
|
|
|
#es1370: enabled=1, wavedev=alsa
|
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2012-07-14 20:13:01 +04:00
|
|
|
# KEYBOARD:
|
|
|
|
# This defines parameters related to the emulated keyboard
|
|
|
|
#
|
|
|
|
# TYPE:
|
|
|
|
# Type of keyboard return by a "identify keyboard" command to the
|
2012-07-15 12:14:43 +04:00
|
|
|
# keyboard controller. It must be one of "xt", "at" or "mf".
|
2012-07-14 20:13:01 +04:00
|
|
|
# Defaults to "mf". It should be ok for almost everybody. A known
|
|
|
|
# exception is french macs, that do have a "at"-like keyboard.
|
|
|
|
#
|
|
|
|
# SERIAL_DELAY:
|
|
|
|
# Approximate time in microseconds that it takes one character to
|
2012-07-15 12:14:43 +04:00
|
|
|
# be transferred from the keyboard to controller over the serial path.
|
2012-07-14 20:13:01 +04:00
|
|
|
#
|
2012-07-15 12:14:43 +04:00
|
|
|
# PASTE_DELAY:
|
2012-07-14 20:13:01 +04:00
|
|
|
# Approximate time in microseconds between attempts to paste
|
|
|
|
# characters to the keyboard controller. This leaves time for the
|
|
|
|
# guest os to deal with the flow of characters. The ideal setting
|
|
|
|
# depends on how your operating system processes characters. The
|
|
|
|
# default of 100000 usec (.1 seconds) was chosen because it works
|
|
|
|
# consistently in Windows.
|
|
|
|
# If your OS is losing characters during a paste, increase the paste
|
|
|
|
# delay until it stops losing characters.
|
|
|
|
#
|
|
|
|
# KEYMAP:
|
|
|
|
# This enables a remap of a physical localized keyboard to a
|
|
|
|
# virtualized us keyboard, as the PC architecture expects.
|
2002-03-28 10:49:52 +03:00
|
|
|
#
|
2002-03-26 16:51:48 +03:00
|
|
|
# Examples:
|
2012-07-14 20:13:01 +04:00
|
|
|
# keyboard: type=mf, serial_delay=200, paste_delay=100000
|
|
|
|
# keyboard: keymap=gui/keymaps/x11-pc-de.map
|
2002-03-26 16:51:48 +03:00
|
|
|
#=======================================================================
|
2012-07-14 20:13:01 +04:00
|
|
|
#keyboard: type=mf, serial_delay=250
|
2002-03-26 16:51:48 +03:00
|
|
|
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2009-04-13 20:07:02 +04:00
|
|
|
# MOUSE:
|
2010-05-16 13:01:36 +04:00
|
|
|
# This defines parameters for the emulated mouse type, the initial status
|
|
|
|
# of the mouse capture and the runtime method to toggle it.
|
|
|
|
#
|
|
|
|
# TYPE:
|
|
|
|
# With the mouse type option you can select the type of mouse to emulate.
|
|
|
|
# The default value is 'ps2'. The other choices are 'imps2' (wheel mouse
|
|
|
|
# on PS/2), 'serial', 'serial_wheel' and 'serial_msys' (one com port requires
|
2012-01-08 16:43:46 +04:00
|
|
|
# setting 'mode=mouse'). To connect a mouse to an USB port, see the 'usb_uhci',
|
|
|
|
# 'usb_ohci' or 'usb_xhci' options (requires PCI and USB support).
|
2010-05-16 13:01:36 +04:00
|
|
|
#
|
|
|
|
# ENABLED:
|
|
|
|
# The Bochs gui creates mouse "events" unless the 'enabled' option is
|
|
|
|
# set to 0. The hardware emulation itself is not disabled by this.
|
|
|
|
# Unless you have a particular reason for enabling the mouse by default,
|
|
|
|
# it is recommended that you leave it off. You can also toggle the mouse
|
2010-05-18 19:33:41 +04:00
|
|
|
# usage at runtime (RFB, SDL, Win32, wxWidgets and X11 - see below).
|
2010-05-16 13:01:36 +04:00
|
|
|
#
|
|
|
|
# TOGGLE:
|
|
|
|
# The default method to toggle the mouse capture at runtime is to press the
|
|
|
|
# CTRL key and the middle mouse button ('ctrl+mbutton'). This option allows
|
2010-05-18 19:33:41 +04:00
|
|
|
# to change the method to 'ctrl+f10' (like DOSBox), 'ctrl+alt' (like QEMU)
|
|
|
|
# or 'f12' (replaces win32 'legacyF12' option).
|
2001-04-10 05:04:59 +04:00
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# mouse: enabled=1
|
2010-05-16 13:01:36 +04:00
|
|
|
# mouse: type=imps2, enabled=1
|
|
|
|
# mouse: type=serial, enabled=1
|
|
|
|
# mouse: enabled=0, toggle=ctrl+f10
|
2001-04-10 05:04:59 +04:00
|
|
|
#=======================================================================
|
2001-05-23 12:16:07 +04:00
|
|
|
mouse: enabled=0
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# private_colormap: Request that the GUI create and use it's own
|
|
|
|
# non-shared colormap. This colormap will be used
|
|
|
|
# when in the bochs window. If not enabled, a
|
|
|
|
# shared colormap scheme may be used. Not implemented
|
|
|
|
# on all GUI's.
|
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# private_colormap: enabled=1
|
|
|
|
# private_colormap: enabled=0
|
|
|
|
#=======================================================================
|
2001-05-23 12:16:07 +04:00
|
|
|
private_colormap: enabled=0
|
2001-04-10 05:04:59 +04:00
|
|
|
|
2001-08-16 00:17:19 +04:00
|
|
|
#=======================================================================
|
|
|
|
# fullscreen: ONLY IMPLEMENTED ON AMIGA
|
|
|
|
# Request that Bochs occupy the entire screen instead of a
|
|
|
|
# window.
|
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# fullscreen: enabled=0
|
|
|
|
# fullscreen: enabled=1
|
|
|
|
#=======================================================================
|
2003-08-14 22:22:27 +04:00
|
|
|
#fullscreen: enabled=0
|
|
|
|
#screenmode: name="sample"
|
2001-08-16 00:17:19 +04:00
|
|
|
|
2002-03-09 03:40:46 +03:00
|
|
|
#=======================================================================
|
|
|
|
# ne2k: NE2000 compatible ethernet adapter
|
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# Format:
|
|
|
|
# ne2k: enabled=1, ioaddr=IOADDR, irq=IRQ, mac=MACADDR, ethmod=MODULE,
|
|
|
|
# ethdev=DEVICE, script=SCRIPT, bootrom=BOOTROM
|
2002-03-20 04:37:44 +03:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# IOADDR, IRQ: You probably won't need to change ioaddr and irq, unless there
|
2009-04-13 20:07:02 +04:00
|
|
|
# are IRQ conflicts. These arguments are ignored when assign the ne2k to a
|
|
|
|
# PCI slot.
|
2002-03-20 04:37:44 +03:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# MAC: The MAC address MUST NOT match the address of any machine on the net.
|
2002-03-20 04:37:44 +03:00
|
|
|
# Also, the first byte must be an even number (bit 0 set means a multicast
|
|
|
|
# address), and you cannot use ff:ff:ff:ff:ff:ff because that's the broadcast
|
|
|
|
# address. For the ethertap module, you must use fe:fd:00:00:00:01. There may
|
|
|
|
# be other restrictions too. To be safe, just use the b0:c4... address.
|
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# ETHDEV: The ethdev value is the name of the network interface on your host
|
2002-03-20 04:37:44 +03:00
|
|
|
# platform. On UNIX machines, you can get the name by running ifconfig. On
|
|
|
|
# Windows machines, you must run niclist to get the name of the ethdev.
|
|
|
|
# Niclist source code is in misc/niclist.c and it is included in Windows
|
|
|
|
# binary releases.
|
2002-05-02 11:54:22 +04:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# SCRIPT: The script value is optional, and is the name of a script that
|
2002-05-02 11:54:22 +04:00
|
|
|
# is executed after bochs initialize the network interface. You can use
|
|
|
|
# this script to configure this network interface, or enable masquerading.
|
|
|
|
# This is mainly useful for the tun/tap devices that only exist during
|
|
|
|
# Bochs execution. The network interface name is supplied to the script
|
2011-12-24 19:17:10 +04:00
|
|
|
# as first parameter.
|
2004-09-11 15:26:41 +04:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# BOOTROM: The bootrom value is optional, and is the name of the ROM image
|
|
|
|
# to load. Note that this feature is only implemented for the PCI version of
|
2011-12-24 19:17:10 +04:00
|
|
|
# the NE2000.
|
2011-12-19 00:26:14 +04:00
|
|
|
#
|
2004-09-11 15:26:41 +04:00
|
|
|
# If you don't want to make connections to any physical networks,
|
|
|
|
# you can use the following 'ethmod's to simulate a virtual network.
|
|
|
|
# null: All packets are discarded, but logged to a few files.
|
2005-11-29 22:28:43 +03:00
|
|
|
# vde: Virtual Distributed Ethernet
|
2005-06-12 12:59:32 +04:00
|
|
|
# vnet: ARP, ICMP-echo(ping), DHCP and read/write TFTP are simulated.
|
2004-09-11 15:26:41 +04:00
|
|
|
# The virtual host uses 192.168.10.1.
|
2006-01-19 21:13:28 +03:00
|
|
|
# DHCP assigns 192.168.10.2 to the guest.
|
2011-12-24 19:17:10 +04:00
|
|
|
# TFTP uses the 'ethdev' value for the root directory and doesn't
|
2005-06-12 12:59:32 +04:00
|
|
|
# overwrite files.
|
2004-09-11 15:26:41 +04:00
|
|
|
#
|
2002-03-20 04:37:44 +03:00
|
|
|
#=======================================================================
|
2006-09-12 23:26:12 +04:00
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=fbsd, ethdev=en0 #macosx
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xl0
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=win32, ethdev=MYCARD
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun0, script=./tunconfig
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=null, ethdev=eth0
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vde, ethdev="/tmp/vde.ctl"
|
|
|
|
# ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp"
|
2011-12-19 00:26:14 +04:00
|
|
|
# ne2k: mac=b0:c4:20:00:00:01, ethmod=slirp, script=/usr/local/bin/slirp, bootrom=ne2k_pci.rom
|
2001-05-23 12:16:07 +04:00
|
|
|
|
2009-04-13 20:07:02 +04:00
|
|
|
#=======================================================================
|
2012-07-12 01:03:59 +04:00
|
|
|
# pcipnic: Bochs/Etherboot pseudo-NIC
|
2009-04-13 20:07:02 +04:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# Format:
|
2012-07-12 01:03:59 +04:00
|
|
|
# pcipnic: enabled=1, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, script=SCRIPT,
|
|
|
|
# bootrom=BOOTROM
|
2009-04-13 20:07:02 +04:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# The pseudo-NIC accepts the same syntax (for mac, ethmod, ethdev, script,
|
|
|
|
# bootrom) and supports the same networking modules as the NE2000 adapter.
|
2009-04-13 20:07:02 +04:00
|
|
|
#=======================================================================
|
2012-07-12 01:03:59 +04:00
|
|
|
#pcipnic: enabled=1, mac=b0:c4:20:00:00:00, ethmod=vnet
|
2009-04-13 20:07:02 +04:00
|
|
|
|
2011-12-15 02:48:57 +04:00
|
|
|
#=======================================================================
|
|
|
|
# e1000: Intel(R) 82540EM Gigabit Ethernet adapter
|
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# Format:
|
2011-12-15 02:48:57 +04:00
|
|
|
# e1000: enabled=1, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, script=SCRIPT
|
2011-12-19 00:26:14 +04:00
|
|
|
# bootrom=BOOTROM
|
2011-12-15 02:48:57 +04:00
|
|
|
#
|
2011-12-19 00:26:14 +04:00
|
|
|
# The E1000 accepts the same syntax (for mac, ethmod, ethdev, script, bootrom)
|
2012-07-12 01:03:59 +04:00
|
|
|
# and supports the same networking modules as the NE2000 adapter.
|
2011-12-15 02:48:57 +04:00
|
|
|
#=======================================================================
|
2011-12-24 19:17:10 +04:00
|
|
|
#e1000: enabled=1, mac=52:54:00:12:34:56, ethmod=slirp, script=/usr/local/bin/slirp
|
2011-12-15 02:48:57 +04:00
|
|
|
|
2002-08-09 10:16:43 +04:00
|
|
|
#=======================================================================
|
|
|
|
# USER_SHORTCUT:
|
|
|
|
# This defines the keyboard shortcut to be sent when you press the "user"
|
2005-10-08 15:41:18 +04:00
|
|
|
# button in the headerbar. The shortcut string is a combination of maximum
|
2008-05-04 13:29:45 +04:00
|
|
|
# 3 key names (listed below) separated with a '-' character.
|
2005-10-10 23:32:53 +04:00
|
|
|
# Valid key names:
|
2006-01-09 21:37:29 +03:00
|
|
|
# "alt", "bksl", "bksp", "ctrl", "del", "down", "end", "enter", "esc",
|
|
|
|
# "f1", ... "f12", "home", "ins", "left", "menu", "minus", "pgdwn", "pgup",
|
2008-05-04 13:29:45 +04:00
|
|
|
# "plus", "right", "shift", "space", "tab", "up", "win", "print" and "power".
|
2002-08-09 10:16:43 +04:00
|
|
|
#
|
|
|
|
# Example:
|
2005-10-08 15:41:18 +04:00
|
|
|
# user_shortcut: keys=ctrl-alt-del
|
2002-08-09 10:16:43 +04:00
|
|
|
#=======================================================================
|
2005-10-08 15:41:18 +04:00
|
|
|
#user_shortcut: keys=ctrl-alt-del
|
2002-08-09 10:16:43 +04:00
|
|
|
|
2004-06-29 23:24:34 +04:00
|
|
|
#=======================================================================
|
2011-07-10 19:40:19 +04:00
|
|
|
# PCI:
|
|
|
|
# This option controls the presence of a PCI chipset in Bochs. Currently it only
|
|
|
|
# supports the i440FX chipset. You can also specify the devices connected to
|
2012-07-12 01:03:59 +04:00
|
|
|
# PCI slots. Up to 5 slots are available. For these combined PCI/ISA devices
|
|
|
|
# assigning to slot is mandatory if you want to emulate the PCI model: cirrus,
|
|
|
|
# ne2k and pcivga. These PCI-only devices are also supported, but they are
|
|
|
|
# auto-assigned if you don't use the slot configuration: e1000, es1370, pcidev,
|
|
|
|
# pcipnic, usb_ohci and usb_xhci.
|
2004-06-29 23:24:34 +04:00
|
|
|
#
|
|
|
|
# Example:
|
2011-07-10 19:40:19 +04:00
|
|
|
# pci: enabled=1, chipset=i440fx, slot1=pcivga, slot2=ne2k
|
2004-06-29 23:24:34 +04:00
|
|
|
#=======================================================================
|
2011-07-10 19:40:19 +04:00
|
|
|
pci: enabled=1, chipset=i440fx
|
2004-06-29 23:24:34 +04:00
|
|
|
|
2005-01-08 20:02:25 +03:00
|
|
|
#=======================================================================
|
2009-02-22 20:05:40 +03:00
|
|
|
# USB_UHCI:
|
2005-01-08 20:02:25 +03:00
|
|
|
# This option controls the presence of the USB root hub which is a part
|
2011-01-16 15:46:48 +03:00
|
|
|
# of the i440FX PCI chipset. With the portX parameter you can connect devices
|
2009-04-13 20:07:02 +04:00
|
|
|
# to the hub (currently supported: 'mouse', 'tablet', 'keypad', 'disk', 'cdrom'
|
2012-07-12 01:03:59 +04:00
|
|
|
# 'hub' and 'printer').
|
2009-12-04 16:04:30 +03:00
|
|
|
#
|
2011-01-16 15:46:48 +03:00
|
|
|
# The optionsX parameter can be used to assign specific options to the device
|
|
|
|
# connected to the corresponding USB port. Currently this feature is only used
|
2011-02-12 17:00:34 +03:00
|
|
|
# to set the speed reported by device and by the 'disk' device to specify
|
|
|
|
# an alternative redolog file of some image modes.
|
2011-01-16 15:46:48 +03:00
|
|
|
#
|
2007-03-24 14:43:41 +03:00
|
|
|
# If you connect the mouse or tablet to one of the ports, Bochs forwards the
|
|
|
|
# mouse movement data to the USB device instead of the selected mouse type.
|
|
|
|
# When connecting the keypad to one of the ports, Bochs forwards the input of
|
|
|
|
# the numeric keypad to the USB device instead of the PS/2 keyboard.
|
2009-12-04 16:04:30 +03:00
|
|
|
#
|
2010-12-11 11:25:39 +03:00
|
|
|
# To connect a 'flat' mode image as an USB hardisk you can use the 'disk' device
|
|
|
|
# with the path to the image separated with a colon. To use other disk image modes
|
|
|
|
# similar to ATA disks the syntax 'disk:mode:filename' must be used (see below).
|
|
|
|
#
|
|
|
|
# To emulate an USB cdrom you can use the 'cdrom' device name and the path to
|
|
|
|
# an ISO image or raw device name also separated with a colon. An option to
|
|
|
|
# insert/eject media is available in the runtime configuration.
|
2009-12-04 16:04:30 +03:00
|
|
|
#
|
2009-03-12 23:24:56 +03:00
|
|
|
# The device name 'hub' connects an external hub with max. 8 ports (default: 4)
|
|
|
|
# to the root hub. To specify the number of ports you have to add the value
|
|
|
|
# separated with a colon. Connecting devices to the external hub ports is only
|
|
|
|
# available in the runtime configuration.
|
2009-12-04 16:04:30 +03:00
|
|
|
#
|
|
|
|
# The device 'printer' emulates the HP Deskjet 920C printer. The PCL data is
|
|
|
|
# sent to a file specified in bochsrc.txt. The current code appends the PCL
|
|
|
|
# code to the file if the file already existed. It would probably be nice to
|
|
|
|
# overwrite the file instead, asking user first.
|
2005-01-08 20:02:25 +03:00
|
|
|
#=======================================================================
|
2009-02-22 20:05:40 +03:00
|
|
|
#usb_uhci: enabled=1
|
2010-12-11 11:25:39 +03:00
|
|
|
#usb_uhci: enabled=1, port1=mouse, port2=disk:usbstick.img
|
|
|
|
#usb_uhci: enabled=1, port1=hub:7, port2=disk:growing:usbdisk.img
|
2011-01-16 15:46:48 +03:00
|
|
|
#usb_uhci: enabled=1, port2=disk:undoable:usbdisk.img, options1=journal:redo.log
|
2010-12-11 11:25:39 +03:00
|
|
|
#usb_uhci: enabled=1, port1=printer:printdata.bin, port2=cdrom:image.iso
|
2009-04-13 20:07:02 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# USB_OHCI:
|
|
|
|
# This option controls the presence of the USB OHCI host controller with a
|
|
|
|
# 2-port hub. The portX option accepts the same device types with the same
|
2012-07-12 01:03:59 +04:00
|
|
|
# syntax as the UHCI controller (see above).
|
2009-04-13 20:07:02 +04:00
|
|
|
#=======================================================================
|
|
|
|
#usb_ohci: enabled=1
|
2009-12-04 16:04:30 +03:00
|
|
|
#usb_ohci: enabled=1, port1=printer:usbprinter.bin
|
2005-01-08 20:02:25 +03:00
|
|
|
|
2011-07-10 19:40:19 +04:00
|
|
|
#=======================================================================
|
|
|
|
# USB_XHCI:
|
|
|
|
# This option controls the presence of the experimental USB xHCI host controller
|
|
|
|
# with a 4-port hub. The portX option accepts the same device types with the
|
2012-07-12 01:03:59 +04:00
|
|
|
# same syntax as the UHCI controller (see above).
|
2011-07-10 19:40:19 +04:00
|
|
|
#=======================================================================
|
|
|
|
#usb_xhci: enabled=1
|
|
|
|
|
2005-10-08 15:41:18 +04:00
|
|
|
#=======================================================================
|
|
|
|
# CMOSIMAGE:
|
|
|
|
# This defines image file that can be loaded into the CMOS RAM at startup.
|
|
|
|
# The rtc_init parameter controls whether initialize the RTC with values stored
|
|
|
|
# in the image. By default the time0 argument given to the clock option is used.
|
|
|
|
# With 'rtc_init=image' the image is the source for the initial time.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# cmosimage: file=cmos.img, rtc_init=image
|
|
|
|
#=======================================================================
|
|
|
|
#cmosimage: file=cmos.img, rtc_init=time0
|
|
|
|
|
2003-03-10 14:45:26 +03:00
|
|
|
#=======================================================================
|
2006-10-03 19:06:39 +04:00
|
|
|
# MAGIC_BREAK:
|
|
|
|
# This enables the "magic breakpoint" feature when using the debugger.
|
|
|
|
# The useless cpu instruction XCHG BX, BX causes Bochs to enter the
|
|
|
|
# debugger mode. This might be useful for software development.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# magic_break: enabled=1
|
2003-08-19 04:10:39 +04:00
|
|
|
#=======================================================================
|
|
|
|
#magic_break: enabled=1
|
2006-10-03 19:06:39 +04:00
|
|
|
|
2009-04-23 22:28:17 +04:00
|
|
|
#=======================================================================
|
|
|
|
# PORT_E9_HACK:
|
|
|
|
# The 0xE9 port doesn't exists in normal ISA architecture. However, we
|
|
|
|
# define a convention here, to display on the console of the system running
|
|
|
|
# Bochs anything that is written to it. The idea is to provide debug output
|
|
|
|
# very early when writing BIOS or OS code for example, without having to
|
|
|
|
# bother with setting up a serial port or etc. Reading from port 0xE9 will
|
|
|
|
# will return 0xe9 to let you know if the feature is available.
|
|
|
|
# Leave this 0 unless you have a reason to use it.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# port_e9_hack: enabled=1
|
|
|
|
#=======================================================================
|
|
|
|
#port_e9_hack: enabled=1
|
|
|
|
|
2008-03-30 22:28:35 +04:00
|
|
|
#=======================================================================
|
|
|
|
# DEBUG_SYMBOLS:
|
|
|
|
# This loads symbols from the specified file for use in Bochs' internal
|
|
|
|
# debugger. Symbols are loaded into global context. This is equivalent to
|
|
|
|
# issuing ldsym debugger command at start up.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# debug_symbols: file="kernel.sym"
|
|
|
|
# debug_symbols: file="kernel.sym", offset=0x80000000
|
|
|
|
#=======================================================================
|
|
|
|
#debug_symbols: file="kernel.sym"
|
|
|
|
|
2006-10-03 19:06:39 +04:00
|
|
|
#=======================================================================
|
|
|
|
# other stuff
|
|
|
|
#=======================================================================
|
2003-08-19 04:10:39 +04:00
|
|
|
#load32bitOSImage: os=nullkernel, path=../kernel.img, iolog=../vga_io.log
|
|
|
|
#load32bitOSImage: os=linux, path=../linux.img, iolog=../vga_io.log, initrd=../initrd.img
|
2007-11-21 00:21:08 +03:00
|
|
|
#print_timestamps: enabled=1
|
2003-08-19 04:10:39 +04:00
|
|
|
|
2004-01-15 05:08:37 +03:00
|
|
|
#-------------------------
|
|
|
|
# PCI host device mapping
|
|
|
|
#-------------------------
|
|
|
|
#pcidev: vendor=0x1234, device=0x5678
|
|
|
|
|
2004-11-06 13:50:03 +03:00
|
|
|
#=======================================================================
|
|
|
|
# GDBSTUB:
|
|
|
|
# Enable GDB stub. See user documentation for details.
|
|
|
|
# Default value is enabled=0.
|
|
|
|
#=======================================================================
|
|
|
|
#gdbstub: enabled=0, port=1234, text_base=0, data_base=0, bss_base=0
|
|
|
|
|
2009-01-02 14:51:03 +03:00
|
|
|
#=======================================================================
|
|
|
|
# USER_PLUGIN:
|
|
|
|
# Load user-defined plugin. This option is available only if Bochs is
|
|
|
|
# compiled with plugin support. Maximum 8 different plugins are supported.
|
2009-04-19 17:10:50 +04:00
|
|
|
# See the example in the Bochs sources how to write a plugin device.
|
2009-01-02 14:51:03 +03:00
|
|
|
#=======================================================================
|
2009-01-05 00:46:20 +03:00
|
|
|
#user_plugin: name=testdev
|
2009-01-02 14:51:03 +03:00
|
|
|
|
2003-08-19 04:10:39 +04:00
|
|
|
#=======================================================================
|
|
|
|
# for Macintosh, use the style of pathnames in the following
|
|
|
|
# examples.
|
|
|
|
#
|
|
|
|
# vgaromimage: :bios:VGABIOS-elpin-2.40
|
|
|
|
# romimage: file=:bios:BIOS-bochs-latest, address=0xf0000
|
|
|
|
# floppya: 1_44=[fd:], status=inserted
|
|
|
|
#=======================================================================
|
2009-10-17 21:38:58 +04:00
|
|
|
|
|
|
|
#=======================================================================
|
|
|
|
# MEGS
|
|
|
|
# Set the number of Megabytes of physical memory you want to emulate.
|
|
|
|
# The default is 32MB, most OS's won't need more than that.
|
|
|
|
# The maximum amount of memory supported is 2048Mb.
|
|
|
|
# The 'MEGS' option is deprecated. Use 'MEMORY' option instead.
|
|
|
|
#=======================================================================
|
|
|
|
#megs: 256
|
|
|
|
#megs: 128
|
|
|
|
#megs: 64
|
2010-04-13 19:55:02 +04:00
|
|
|
#megs: 32
|
2009-10-17 21:38:58 +04:00
|
|
|
#megs: 16
|
|
|
|
#megs: 8
|