2005-12-29 22:51:00 +03:00
. \"Document Author: Timothy R. Butler - tbutler@uninetsolutions.com"
2013-08-18 21:16:16 +04:00
.TH bochsrc 5 "18 Aug 2013" "bochsrc" "The Bochs Project"
2001-06-03 23:50:33 +04:00
. \"SKIP_SECTION"
.SH NAME
bochsrc \- Configuration file for Bochs.
. \"SKIP_SECTION"
.SH DESCRIPTION
.LP
Bochsrc is the configuration file that specifies
where Bochs should look for disk images, how the Bochs
emulation layer should work, etc. The syntax used
for bochsrc can also be used as command line arguments
for Bochs. The .bochsrc file should be placed either in
the current directory before running Bochs or in your
home directory.
2003-04-01 21:37:29 +04:00
Starting with Bochs 1.3, you can use environment variables in
2008-02-06 01:33:35 +03:00
the bochsrc file, for example:
2003-04-01 21:37:29 +04:00
2005-01-08 22:55:55 +03:00
floppya: 1_44="$IMAGES/bootdisk.img", status=inserted
2003-04-01 21:37:29 +04:00
Starting with version 2.0, two environment variables have a built-in
default value which is set at compile time. $BXSHARE points to the
"share" directory which is typically /usr/local/share/bochs on UNIX
machines. See the $(sharedir) variable in the Makefile for the exact
2008-02-06 01:33:35 +03:00
value. $BXSHARE is used by disk images to locate the directory where
2003-04-01 21:37:29 +04:00
the BIOS images and keymaps can be found. If $BXSHARE is not defined, Bochs
will supply the default value. Also, $LTDL_LIBRARY_PATH points to a list of
directories (separated by colons if more than one) to search in for Bochs
plugins. A compile-time default is provided if this variable is not defined
by the user.
2001-06-03 23:50:33 +04:00
. \".\"DONT_SPLIT"
.SH OPTIONS
2002-09-09 21:41:36 +04:00
.TP
.I "#include"
This option includes another configuration file. It is
possible to put installation defaults in a global config
file (e.g. location of rom images).
Example:
#include /etc/bochsrc
2012-01-08 16:43:46 +04:00
.TP
.I "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',
2013-07-15 21:16:48 +04:00
\& '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',
2013-07-15 21:16:48 +04:00
\& 'usb_ohci', 'usb_uhci' and 'usb_xhci'.
2012-01-08 16:43:46 +04:00
2012-10-28 19:53:06 +04:00
This plugin currently must be loaded with plugin_ctrl: 'voodoo'.
2012-01-08 16:43:46 +04:00
Example:
2012-07-06 21:19:32 +04:00
plugin_ctrl: unmapped=0, e1000=1 # unload 'unmapped' and load 'e1000'
2012-01-08 16:43:46 +04:00
2002-12-03 00:05:39 +03:00
.TP
.I "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
2008-02-06 01:33:35 +03:00
command. If you do not write a config_interface line, Bochs will
2002-12-03 00:05:39 +03:00
choose a default for you.
.B NOTE:
if you use the "wx" configuration interface, you must also use
the "wx" display library.
Example:
config_interface: textconfig
.TP
.I "display_library:"
2008-02-06 01:33:35 +03:00
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,
2002-12-03 00:05:39 +03:00
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.
2008-02-06 01:33:35 +03:00
The choices are:
2002-12-03 00:05:39 +03:00
x X windows interface, cross platform
win32 native win32 libraries
carbon Carbon library (for MacOS X)
macintosh MacOS pre-10
amigaos native AmigaOS libraries
sdl SDL library, cross platform
term text only, uses curses/ncurses library, cross platform
rfb provides an interface to AT&T's VNC viewer, cross platform
2013-07-15 21:16:48 +04:00
vncsrv use LibVNCServer for extended RFB(VNC) support
2005-01-05 22:54:32 +03:00
wx wxWidgets library, cross platform
2002-12-03 00:05:39 +03:00
nogui no display at all
.B NOTE:
if you use the "wx" configuration interface, you must also use
the "wx" display library.
2012-07-03 22:49:42 +04:00
.B Specific options:
Some display libraries now support specific options to control their
behaviour. These options are supported by more than one display library:
"gui_debug" - use GTK debugger gui (sdl, x)
2013-07-15 21:16:48 +04:00
"hideIPS" - disable IPS output in status bar (rfb, sdl, vncsrv, wx, x)
2012-07-03 22:49:42 +04:00
"nokeyrepeat" - turn off host keyboard repeat (sdl, x)
2013-07-15 21:16:48 +04:00
"timeout" - time (in seconds) to wait for client (rfb, vncsrv)
2012-07-03 22:49:42 +04:00
See the examples below for other currently supported options.
2008-05-12 22:46:46 +04:00
Examples:
2002-12-03 00:05:39 +03:00
display_library: x
2008-05-12 22:46:46 +04:00
display_library: sdl, options="fullscreen" # startup in fullscreen mode
2002-12-03 00:05:39 +03:00
2006-01-22 13:03:38 +03:00
.TP
2006-01-19 21:13:28 +03:00
.I "cpu:"
2006-01-22 13:03:38 +03:00
This defines cpu-related parameters inside Bochs:
count:
2006-06-22 22:50:47 +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
2013-07-27 19:33:52 +04:00
14 threads (legacy APIC) or 254 threads (xAPIC or higher) running simultaniosly.
If Bochs is compiled without SMP support, it won't accept values
different from 1.
2006-06-22 22:50:47 +04:00
quantum:
Maximum amount of instructions allowed to execute by processor before
2008-02-06 01:33:35 +03:00
returning control to another cpu. This option exists only in Bochs
2006-06-22 22:50:47 +04:00
binary compiled with SMP support.
reset_on_triple_fault:
Reset the CPU when triple fault occur (highly recommended) rather than
2008-02-06 01:33:35 +03:00
PANIC. Remember that if you trying to continue after triple fault the
2006-06-22 22:50:47 +04:00
simulation will be completely bogus !
2006-01-19 21:13:28 +03:00
2011-08-03 00:01:56 +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.
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.
2008-12-28 23:49:03 +03:00
msrs:
Define path to user CPU Model Specific Registers (MSRs) specification.
See example in msrs.def.
2009-11-13 18:55:46 +03:00
ignore_bad_msrs:
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.
2006-01-22 13:03:38 +03:00
ips:
2006-01-25 23:07:36 +03: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
workstation's capability. Measured IPS value
2006-01-29 11:44:12 +03:00
will then be logged into your log file or status
bar (if supported by the gui).
2006-01-25 23:07:36 +03: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.
Example Specifications[1]
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-25 23:07:36 +03:00
[1] IPS measurements depend on OS and compiler
configuration in addition to processor clock
speed.
2006-01-22 13:03:38 +03:00
2006-01-19 21:13:28 +03:00
Example:
2009-11-13 18:55:46 +03:00
cpu: count=2, ips=10000000, msrs="msrs.def"
2006-01-19 21:13:28 +03:00
2010-05-16 19:12:15 +04:00
.TP
.I "cpuid:"
This defines features and functionality supported by Bochs emulated CPU:
2013-04-17 23:46:11 +04:00
level:
Set emulated CPU level information returned by CPUID. Default value is
determined by configure option --enable-cpu-level. Currently supported
values are 5 (for Pentium and similar processors) and 6 (for P6 and
later processors).
family:
Set family information returned by CPUID. Default family value determined
by configure option --enable-cpu-level.
model:
Set model information returned by CPUID. Default model value is 3.
stepping:
Set stepping information returned by CPUID. Default stepping value is 3.
vendor_string:
Set the CPUID vendor string returned by CPUID(0x0). This should be a
twelve-character ASCII string.
brand_string:
Set the CPUID vendor string returned by CPUID(0x80000002 .. 0x80000004).
This should be at most a forty-eight-character ASCII string.
2010-05-16 19:12:15 +04:00
mmx:
Select MMX instruction set support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 5.
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-04-21 17:27:42 +04:00
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 5.
2010-05-16 19:12:15 +04:00
sep:
Select SYSENTER/SYSEXIT instruction set support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2013-09-16 23:50:36 +04:00
simd:
Select SIMD instructions support.
Any of NONE/SSE/SSE2/SSE3/SSSE3/SSE4_1/SSE4_2/AVX/AVX2/AVX512
could be selected.
2010-05-16 19:12:15 +04:00
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2013-09-16 23:50:36 +04:00
The AVX choises exists only if Bochs compiled with --enable-avx option.
2010-05-16 19:12:15 +04: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.
2012-12-20 23:43:11 +04:00
misaligned_sse:
Select AMD Misaligned SSE mode support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2010-05-16 19:12:15 +04:00
aes:
Select AES instruction set support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2013-07-24 22:44:22 +04:00
sha:
Select SHA instruction set support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2010-05-16 19:12:15 +04:00
movbe:
Select MOVBE Intel(R) Atom instruction support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
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-05-16 19:12:15 +04:00
xsave:
Select XSAVE extensions support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2011-03-25 23:35:58 +03:00
xsaveopt:
Select XSAVEOPT instruction support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2011-06-11 17:12:32 +04:00
avx_f16c:
Select AVX float16 convert instructions support.
This option exists only if Bochs compiled with --enable-avx option.
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-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
xop:
Select AMD XOP instructions support.
This option exists only if Bochs compiled with --enable-avx option.
tbm:
Select AMD 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 x85-64 and long mode support.
This option exists only if Bochs compiled with x86-64 support.
2010-05-16 19:12:15 +04:00
1g_pages:
Enable 1G page size support in long mode.
This option exists only if Bochs compiled with x86-64 support.
pcid:
Enable Process-Context Identifiers (PCID) support in long mode.
This option exists only if Bochs compiled with x86-64 support.
2011-05-29 20:28:26 +04:00
smep:
Enable Supervisor Mode Execution Protection (SMEP) support.
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2012-09-10 19:22:26 +04:00
smap:
2013-04-17 23:46:11 +04:00
Enable Supervisor Mode Access Prevention (SMAP) support.
2012-09-10 19:22:26 +04:00
This option exists only if Bochs compiled with BX_CPU_LEVEL >= 6.
2010-11-21 15:02:12 +03:00
mwait:
Select MONITOR/MWAIT instructions support.
This option exists only if Bochs compiled with --enable-monitor-mwait.
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.
2012-03-15 23:46:57 +04:00
svm:
Select AMD SVM (Secure Virtual Machine) extensions emulation support.
This option exists only if Bochs compiled with --enable-svm option.
2010-05-16 19:12:15 +04:00
Example:
2011-08-03 00:01:56 +04:00
cpuid: mmx=1, sep=1, sse=sse4_2, xapic=1, aes=1, movbe=1, xsave=1
2010-05-16 19:12:15 +04:00
2013-02-25 01:06:26 +04:00
.TP
.I "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.
Example:
memory: guest=512, host=256
2001-06-03 23:50:33 +04:00
.TP
.I "megs:"
2013-02-25 01:06:26 +04:00
The 'megs:' option sets the 'guest' and 'host' memory parameters to the same
value. In all other cases the 'memory' option should be used instead.
2001-06-03 23:50:33 +04:00
Example:
megs: 32
2013-07-20 18:26:41 +04:00
.TP
.I "romimage:"
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
.B BIOS-bochs-latest.
The default ROM BIOS is usually loaded starting at address 0xe0000, and it is
exactly 128k long. The legacy version of the Bochs BIOS is usually loaded starting
at address 0xf0000, and it is exactly 64k long.
You can also use the environment variable $BXSHARE to specify the location of the BIOS.
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 Bochs.
The start address is optional, since it can be calculated from image size.
Examples:
romimage: file=bios/BIOS-bochs-latest
romimage: file=$BXSHARE/BIOS-bochs-legacy
romimage: file=mybios.bin, address=0xfff80000
romimage: file=mybios.bin
.TP
.I "vgaromimage:"
You also need to load a VGA ROM BIOS into 0xC0000.
Examples:
vgaromimage: file=bios/VGABIOS-elpin-2.40
vgaromimage: file=bios/VGABIOS-lgpl-latest
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
2002-11-04 02:08:16 +03:00
.TP
.I "optromimage1: \fP, \fIoptromimage2: \fP, \fIoptromimage3: \fPor \fIoptromimage4:"
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
the right signature (0x55AA).
2005-10-23 11:17:01 +04:00
It can also be a convenient way to upload some arbitrary code/data
2002-11-04 02:08:16 +03:00
in the simulation, that can be retrieved by the boot loader
Example:
optromimage1: file=optionalrom.bin, address=0xd0000
2005-03-26 11:38:31 +03:00
.TP
.I "vga:"
2011-10-31 14:00:32 +04:00
This defines parameters related to the VGA display.
extension:
Here you can specify the display extension to be used. With the value
2013-07-15 21:16:48 +04:00
\& 'none' you can use standard VGA with no extension. Other supported
2011-10-31 14:00:32 +04:00
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.
2005-03-26 11:38:31 +03:00
Examples:
2011-10-31 14:00:32 +04:00
vga: extension=cirrus, update_freq=10
2005-03-26 11:38:31 +03:00
vga: extension=vbe
2013-07-20 18:26:41 +04:00
.TP
.I "keyboard:"
This defines parameters related to the emulated keyboard:
type:
Type of keyboard return by a "identify keyboard" command to the
keyboard controller. It must be one of "xt", "at" or "mf".
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
be transferred from the keyboard to controller over the serial path.
paste_delay:
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.
user_shortcut:
This defines the keyboard shortcut to be sent when you press the "user"
button in the header bar. The shortcut string is a combination of maximum
3 key names (listed below) separated with a '-' character.
Valid key names:
"alt", "bksl", "bksp", "ctrl", "del", "down", "end", "enter", "esc",
"f1", ... "f12", "home", "ins", "left", "menu", "minus", "pgdwn", "pgup", "plus",
"right", "shift", "space", "tab", "up", "win", "print" and "power".
Examples:
keyboard: type=mf, serial_delay=200, paste_delay=100000
keyboard: keymap=gui/keymaps/x11-pc-de.map
keyboard: user_shortcut=ctrl-alt-del
.TP
.I "mouse:"
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
setting 'mode=mouse'). To connect a mouse to an USB port, see the 'usb_uhci',
'usb_ohci' or 'usb_xhci' option (requires PCI and USB support).
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
usage at runtime (RFB, SDL, Win32, wxWidgets and X11 - see below).
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
to change the method to 'ctrl+f10' (like DOSBox), 'ctrl+alt' (like QEMU)
or 'f12' (replaces win32 'legacyF12' option).
Examples:
mouse: enabled=1
mouse: type=imps2, enabled=1
mouse: type=serial, enabled=1
mouse: enabled=0, toggle=ctrl+f10
.TP
.I "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
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.
Example:
pci: enabled=1, chipset=i440fx, slot1=pcivga, slot2=ne2k
.TP
.I "clock:"
This defines the parameters of the clock inside Bochs.
sync
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.
2013-07-22 20:30:33 +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.
2013-07-20 18:26:41 +04:00
time0
Specifies the start (boot) time of the virtual machine. Use a time
2013-08-18 21:16:16 +04:00
value as returned by the time(2) system call or a string as returned
by the ctime(3) 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.
2013-07-20 18:26:41 +04:00
Syntax:
clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc]
2013-07-22 20:30:33 +04:00
Default value are sync=none, rtc_sync=0, time0=local
2013-07-20 18:26:41 +04:00
Example:
clock: sync=realtime, time0=938581955 # Wed Sep 29 07:12:35 1999
2013-08-18 21:16:16 +04:00
clock: sync=realtime, time0="Sat Jan 1 00:00:00 2000" # 946681200
2013-07-20 18:26:41 +04:00
.TP
.I "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=time0
.TP
.I "private_colormap:"
Requests 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. Once
again, enabled=1 turns on this feature and 0
turns it off.
Example:
private_colormap: enabled=1
2001-06-03 23:50:33 +04:00
.TP
2002-09-09 21:41:36 +04:00
.I "floppya: \fPor \fIfloppyb:"
2001-06-03 23:50:33 +04:00
2001-06-04 02:35:07 +04:00
Point this to the pathname of a floppy image
file or device. Floppya is the first drive,
and floppyb is the second drive. If you're
booting from a floppy, floppya should point to
a bootable disk.
You can set the initial status of the media to
2005-10-23 11:17:01 +04:00
\& 'ejected' or 'inserted'. Usually you will want
2001-06-04 02:35:07 +04:00
to use 'inserted'.
2001-06-03 23:50:33 +04:00
2009-04-19 17:10:50 +04: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-06-03 23:50:33 +04:00
Example:
2009-04-19 17:10:50 +04:00
2.88M 3.5" media:
2001-06-03 23:50:33 +04:00
floppya: 2_88=path, status=ejected
2010-07-03 09:34:27 +04:00
1.44M 3.5" media (write protected):
floppya: 1_44=path, status=inserted, write_protected=1
2001-06-03 23:50:33 +04:00
2009-04-19 17:10:50 +04:00
1.2M 5.25" media:
2001-06-03 23:50:33 +04:00
floppyb: 1_2=path, status=ejected
2009-04-19 17:10:50 +04:00
720K 3.5" media:
2001-06-03 23:50:33 +04:00
floppya: 720k=path, status=inserted
2009-04-19 17:10:50 +04:00
360K 5.25" media:
2002-09-09 21:41:36 +04:00
floppya: 360k=path, status=inserted
2009-04-19 17:10:50 +04:00
Autodetect floppy media type:
2005-12-29 22:51:00 +03:00
floppya: image=path, status=inserted
2011-02-20 12:35:48 +03:00
Use directory as 1.44M VFAT media:
floppya: 1_44=vvfat:path, status=inserted
2009-04-19 17:10:50 +04:00
1.44M 3.5" floppy drive, no media:
floppya: type=1_44
2002-09-29 20:41:41 +04:00
.TP
.I "ata0: \fP, \fIata1: \fP, \fIata2: \fPor \fIata3:"
These options enables up to 4 ata channels. For each channel
2002-11-04 02:08:16 +03:00
the two base io addresses and the irq must be specified.
2005-11-27 12:42:32 +03:00
ata0 and ata1 are enabled by default, with the values shown below.
2002-09-29 20:41:41 +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-29 20:41:41 +04:00
.TP
.I "ata\fR[\fB0-3\fR]\fI-master: \fPor \fIata\fR[\fB0-3\fR]\fI-slave:"
This defines the type and characteristics of all attached ata devices:
2008-02-06 01:33:35 +03:00
type= type of attached device [disk|cdrom]
2002-09-29 20:41:41 +04:00
path= path of the image
2012-08-05 13:33:33 +04:00
mode= image mode [flat|concat|external|dll|sparse|vmware3|vmware4|undoable|growing|volatile|vpc|vvfat], only valid for disks
2002-09-29 20:41:41 +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-29 20:41:41 +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
2008-02-06 01:33:35 +03:00
2002-11-04 02:08:16 +03:00
Point this at a hard disk image file, cdrom iso file,
2008-02-06 01:33:35 +03:00
or a 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
2002-09-29 20:41:41 +04:00
works with it.
2008-02-06 01:33:35 +03:00
In UNIX it is possible to use a raw device as a Bochs hard disk,
2002-09-29 20:41:41 +04:00
but WE DON'T RECOMMEND IT.
2009-04-30 23:04:43 +04: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
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-29 20:41:41 +04:00
2003-05-03 20:37:18 +04:00
The mode option defines how the disk image is handled. Disks can be defined as:
- flat : one file flat layout
- concat : multiple files layout
- external : developer's specific, through a C++ class
- dll : developer's specific, through a DLL
2008-02-06 01:33:35 +03:00
- sparse : stackable, commitable, rollbackable
2003-05-03 20:37:18 +04:00
- vmware3 : vmware3 disk support
2012-07-29 12:19:15 +04:00
- vmware4 : vmware4 disk support (aka VMDK)
2003-05-03 20:37:18 +04:00
- undoable : flat file with commitable redolog
2003-08-01 05:20:00 +04:00
- growing : growing file
2003-05-03 20:37:18 +04:00
- volatile : flat file with volatile redolog
2012-08-05 13:33:33 +04:00
- vpc : fixed / dynamic size VirtualPC image
2011-01-06 01:53:44 +03:00
- vvfat: local directory appears as read-only VFAT disk (with volatile redolog)
2003-05-03 20:37:18 +04:00
2002-11-04 02:08:16 +03:00
The disk translation scheme (implemented in legacy int13 bios functions, and used by
older operating systems like MS-DOS), can be defined as:
- none : no translation, for disks up to 528MB (1032192 sectors)
- large : a standard bitshift algorithm, for disks up to 4.2GB (8257536 sectors)
- rechs : a revised bitshift algorithm, using a 15 heads fake physical geometry, for disks up to 7.9GB (15482880 sectors). (don't use this unless you understand what you're doing)
- lba : a standard lba-assisted algorithm, for disks up to 8.4GB (16450560 sectors)
- auto : autoselection of best translation scheme. (it should be changed if system does not boot)
2002-09-29 20:41:41 +04:00
Default values are:
2003-05-03 20:37:18 +04:00
mode=flat, biosdetect=auto, translation=auto, model="Generic 1234"
2002-09-29 20:41:41 +04:00
2002-11-04 02:08:16 +03:00
The biosdetect option has currently no effect on the bios
2002-09-29 20:41:41 +04:00
Examples:
ata0-master: type=disk, path=10M.sample, cylinders=306, heads=4, spt=17
ata0-slave: type=disk, path=20M.sample, cylinders=615, heads=4, spt=17
ata1-master: type=disk, path=30M.sample, cylinders=615, heads=6, spt=17
ata1-slave: type=disk, path=46M.sample, cylinders=940, heads=6, spt=17
ata2-master: type=disk, path=62M.sample, cylinders=940, heads=8, spt=17
ata2-slave: type=disk, path=112M.sample, cylinders=900, heads=15, spt=17
ata3-master: type=disk, path=483M.sample, cylinders=1024, heads=15, spt=63
ata3-slave: type=cdrom, path=iso.sample, status=inserted
2001-06-03 23:50:33 +04:00
.TP
.I "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.
2002-11-04 02:08:16 +03:00
Example:
2005-01-08 22:55:55 +03:00
boot: cdrom, floppy, disk
2002-11-04 02:08:16 +03:00
.TP
.I "floppy_bootsig_check:"
This disables the 0xaa55 signature check on boot floppies
The check is enabled by default.
2001-06-03 23:50:33 +04:00
Example:
2002-11-04 02:08:16 +03:00
floppy_bootsig_check: disabled=1
2001-06-03 23:50:33 +04:00
.TP
.I "log:"
Give the path of the log file you'd like Bochs
2006-01-19 21:13:28 +03:00
debug and misc. verbiage to be written to. If
2001-06-03 23:50:33 +04:00
you really don't want it, make it /dev/null.
Example:
log: bochs.out
log: /dev/tty (unix only)
log: /dev/null (unix only)
2002-11-04 02:08:16 +03:00
.TP
.I "logprefix:"
This handles the format of the string prepended to each log line :
You may use those special tokens :
%t : 11 decimal digits timer tick
%i : 8 hexadecimal digits of cpu0 current eip
%e : 1 character event type ('i'nfo, 'd'ebug, 'p'anic, 'e'rror)
%d : 5 characters string of the device, between brackets
2008-02-06 01:33:35 +03:00
2002-11-04 02:08:16 +03:00
Default : %t%e%d
Examples:
logprefix: %t-%e-@%i-%d
logprefix: %i%e%d
2001-06-03 23:50:33 +04:00
.TP
.I "panic:"
2001-06-04 02:35:07 +04:00
If Bochs reaches a condition where it cannot
emulate correctly, it does a panic. This can
be a configuration problem (like a misspelled
bochsrc line) or an emulation problem (like an
unsupported video mode). The "panic" setting
in bochsrc tells Bochs how to respond to a
panic. You can set this to fatal (terminate
the session), report (print information to
the console), or ignore (do nothing).
The safest setting is action=fatal. If you are
getting panics, you can try action=report
instead. If you allow Bochs to continue after
a panic, don't be surprised if you get strange
behavior or crashes if a panic occurs. Please
report panic messages unless it is just a
configuration problem like "could not find
hard drive image."
2001-06-03 23:50:33 +04:00
Example:
panic: action=fatal
.TP
.I "error:"
2001-06-04 02:35:07 +04:00
Bochs produces an error message when it finds
a condition that really shouldn't happen, but
doesn't endanger the simulation. An example of
an error might be if the emulated software
produces an illegal disk command.
The "error" setting tells Bochs how to respond
2001-06-04 02:49:13 +04:00
to an error condition. You can set this to
2001-06-04 02:35:07 +04:00
fatal (terminate the session), report (print
information to the console), or ignore (do
nothing).
2001-06-03 23:50:33 +04:00
Example:
error: action=report
.TP
.I "info:"
2001-06-04 02:35:07 +04:00
This setting tells Bochs what to do when an
event occurs that generates informational
messages. You can set this to fatal (that
would not be very smart though), report (print
information to the console), or ignore (do
nothing). For general usage, the "report"
option is probably a good choice.
2001-06-03 23:50:33 +04:00
Example:
info: action=report
.TP
.I "debug:"
2001-06-04 02:35:07 +04:00
This setting tells Bochs what to do with
messages intended to assist in debugging. You
can set this to fatal (but you shouldn't),
report (print information to the console), or
ignore (do nothing). You should generally set
this to ignore, unless you are trying to
diagnose a particular problem.
2001-06-03 23:50:33 +04:00
2008-02-06 01:33:35 +03:00
.B NOTE:
2001-06-04 02:35:07 +04:00
When action=report, Bochs may spit out
thousands of debug messages per second, which
can impact performance and fill up your disk.
2001-06-03 23:50:33 +04:00
Example:
debug: action=ignore
2002-12-03 00:37:53 +03:00
.TP
.I "debugger_log:"
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 '-'.
Example:
log: debugger.out
log: /dev/null (unix only)
log: -
2013-07-15 21:16:48 +04:00
.TP
.I "com1: \fP, \fIcom2: \fP, \fIcom3: \fPor \fIcom4:"
This defines a serial port (UART type 16550A). In the 'term' mode 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
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.
Other serial modes are 'null' (no input/output), 'file' (output to a file
specified as the 'dev' parameter), 'raw' (use the real serial port - under
construction for win32) and 'mouse' (standard serial mouse - requires
mouse option setting 'type=serial' or 'type=serial_wheel')
Examples:
com1: enabled=1, mode=term, dev=/dev/ttyp7
com2: enabled=1, mode=file, dev=serial.out
com1: enabled=1, mode=mouse
.TP
.I "parport1: \fPor \fIparport2:"
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).
Examples:
parport1: enabled=1, file=parport.out
parport2: enabled=1, file="/dev/lp0"
parport1: enabled=0
.TP
.I "sound:"
This defines the lowlevel sound driver and the wave (PCM) input and
output devices to be used by sound emulation devices. Possible values
for the driver parameter are 'default', 'dummy' (no input/output),
\& 'alsa' (if present) and 'sdl' (if present). For some drivers the wave
devices must be specified. If the 'wavein' parameter is not set, Bochs
uses the 'waveout' device for input, too.
Example:
sound: driver=default, waveout=/dev/dsp. wavein=
.TP
.I "speaker:"
This defines the PC speaker output mode. In the 'sound' mode the beep
is generated by the square wave generator which is a part of the
lowlevel sound support. The 'system' mode is only available on Linux
and Windows. On Linux /dev/console is used for output and on Windows
the Beep() function. The 'gui' mode forwards the beep to the related
gui methods (currently only used by the Carbon gui).
Example:
speaker: enabled=1, mode=sound
2001-06-03 23:50:33 +04:00
.TP
.I "sb16:"
This defines the SB16 sound emulation. It can
have several of the following properties. All
properties are in this format:
sb16: property=value
.B PROPERTIES FOR sb16:
2013-07-15 21:16:48 +04:00
enabled:
2001-06-03 23:50:33 +04:00
2013-07-15 21:16:48 +04:00
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-06-03 23:50:33 +04:00
midimode:
2013-07-15 21:16:48 +04:00
0 = No data should be output.
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).
2001-06-03 23:50:33 +04:00
2013-07-15 21:16:48 +04:00
midi:
2001-06-03 23:50:33 +04:00
2013-07-15 21:16:48 +04:00
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.
2001-06-03 23:50:33 +04:00
wavemode:
2013-07-15 21:16:48 +04:00
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
wave:
This is the file where the wave output is stored (wavemode 2 or 3)
2001-06-03 23:50:33 +04:00
log:
2013-07-15 21:16:48 +04:00
The file to write the sb16 emulator messages to.
2001-06-03 23:50:33 +04:00
loglevel:
2013-07-15 21:16:48 +04:00
0 = No log.
1 = Resource changes, midi program and bank changes.
2 = Severe errors.
3 = All errors.
4 = All errors plus all port accesses.
5 = All errors and port accesses plus a lot
of extra information.
2001-06-03 23:50:33 +04:00
2005-08-27 12:17:13 +04:00
It is possible to change the loglevel at runtime.
2001-06-03 23:50:33 +04:00
dmatimer:
2006-01-25 23:07:36 +03:00
Microseconds per second for a DMA cycle. Make it smaller
to fix non-continuous sound. 750000 is usually a good
value. This needs a reasonably correct setting for
the IPS parameter of the CPU option. It is possible to
adjust the dmatimer at runtime.
2001-06-03 23:50:33 +04:00
2008-07-19 16:01:54 +04:00
Example for output to OSS:
2001-06-03 23:50:33 +04:00
sb16: midimode=1, midi=/dev/midi00,
wavemode=1, wave=/dev/dsp, loglevel=2,
log=sb16.log, dmatimer=600000
2008-07-19 16:01:54 +04:00
Example for output to ALSA:
2013-07-15 21:16:48 +04:00
sb16: midimode=1, midi=128:0,
wavemode=1, wave="",
2008-07-19 16:01:54 +04:00
log=sb16.log, dmatimer=600000
2001-06-03 23:50:33 +04:00
.B NOTE:
2008-07-19 16:01:54 +04:00
The examples are wrapped onto three lines for
2001-06-03 23:50:33 +04:00
formatting reasons, but it should all be on
one line in the actual bochsrc file.
2011-03-13 12:09:34 +03:00
.TP
.I "es1370:"
2013-07-15 21:16:48 +04:00
This defines the ES1370 sound emulation (recording and playback - except
DAC1+DAC2 output at the same time). The parameter 'enabled' controls the
presence of the device. The 'wavemode' parameter can be used to redirect
the output to a file (see SB16). The 'wavefile' parameter is similar to the
\& 'wave' parameter of the SB16 soundcard.
2011-03-13 12:09:34 +03:00
2013-07-15 21:16:48 +04:00
Example for using 'sound' parameters:
es1370: enabled=1, wavemode=1
Example for sending output to file:
es1370: enabled=1, wavemode=2, wavefile=output.voc
2011-03-13 12:09:34 +03:00
2002-11-04 02:08:16 +03:00
.TP
.I "ne2k:"
Defines the characteristics of an attached ne2000 isa card :
ioaddr=IOADDR,
2008-02-06 01:33:35 +03:00
irq=IRQ,
mac=MACADDR,
ethmod=MODULE,
ethdev=DEVICE,
2011-12-24 19:17:10 +04:00
script=SCRIPT,
bootrom=BOOTROM
2002-11-04 02:08:16 +03:00
2003-08-17 19:31:37 +04:00
.B PROPERTIES FOR ne2k:
2002-11-04 02:08:16 +03:00
2011-12-24 19:17:10 +04:00
IOADDR, IRQ:
2002-11-04 02:08:16 +03:00
You probably won't need to change ioaddr and irq, unless there are IRQ conflicts.
2005-11-13 17:26:02 +03:00
These parameters are ignored if the NE2000 is assigned to a PCI slot.
2002-11-04 02:08:16 +03:00
2011-12-24 19:17:10 +04:00
MAC:
2002-11-04 02:08:16 +03:00
The MAC address MUST NOT match the address of any machine on the net.
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-24 19:17:10 +04:00
ETHMOD:
2002-11-04 02:08:16 +03:00
The ethmod value defines which low level OS specific module to be used
2005-10-23 11:17:01 +04:00
to access physical ethernet interface. Current implemented values include
2005-03-26 11:38:31 +03:00
- fbsd : ethernet on freebsd and openbsd
- linux : ethernet on linux
- win32 : ethernet on win32
- tap : ethernet through a linux tap interface
2002-11-04 02:08:16 +03:00
- tuntap : ethernet through a linux tuntap interface
2012-08-16 15:59:44 +04:00
- slirp : ethernet backend for Slirp with builtin DHCP / TFTP servers
2002-11-04 02:08:16 +03:00
2005-03-26 11:38:31 +03: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-11-13 17:26:02 +03:00
- vnet : ARP, ICMP-echo(ping), DHCP and TFTP are simulated
2005-03-26 11:38:31 +03: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
The TFTP server use 'ethdev' for the root directory and doesn't
2005-11-13 17:26:02 +03:00
overwrite files
2005-03-26 11:38:31 +03:00
2011-12-24 19:17:10 +04:00
ETHDEV:
2002-11-04 02:08:16 +03:00
The ethdev value is the name of the network interface on your host
2011-12-24 19:17:10 +04:00
platform. On UNIX machines, you can get the name by running ifconfig. On
2002-11-04 02:08:16 +03:00
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.
2011-12-24 19:17:10 +04:00
SCRIPT:
2005-10-23 11:17:01 +04:00
The script value is optional, and is the name of a script that
2002-11-04 02:08:16 +03: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.
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
the NE2000.
2002-11-04 02:08:16 +03:00
Examples:
2006-09-12 23:26:12 +04:00
ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xlo
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=vde, ethdev="/tmp/vde.ctl"
ne2k: ioaddr=0x300, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp"
2011-12-24 19:17:10 +04:00
ne2k: mac=b0:c4:20:00:00:01, ethmod=slirp, script=/usr/local/bin/slirp, bootrom=ne2k_pci.rom
2002-11-04 02:08:16 +03:00
2009-04-19 17:10:50 +04:00
.TP
2012-07-12 01:03:59 +04:00
.I "pcipnic:"
2009-04-19 17:10:50 +04:00
To support the Bochs/Etherboot pseudo-NIC, Bochs must be compiled with the
--enable-pnic configure option. It accepts the same syntax (for mac, ethmod,
2011-12-24 19:17:10 +04:00
ethdev, script, bootrom) and supports the same networking modules as the NE2000
2012-07-12 01:03:59 +04:00
adapter.
2009-04-19 17:10:50 +04:00
Example:
pnic: enabled=1, mac=b0:c4:20:00:00:00, ethmod=vnet
2011-12-24 19:17:10 +04:00
.TP
.I "e1000:"
To support the Intel(R) 82540EM Gigabit Ethernet adapter, Bochs must be compiled
with the --eanble-e1000 configure option. The E1000 accepts the same syntax
(for mac, ethmod, ethdev, script, bootrom) and supports the same networking
2012-07-12 01:03:59 +04:00
modules as the NE2000 adapter.
2011-12-24 19:17:10 +04:00
Example:
e1000: enabled=1, mac=52:54:00:12:34:56, ethmod=slirp, script=/usr/local/bin/slirp
2003-08-17 19:31:37 +04:00
.TP
2009-02-22 20:05:40 +03:00
.I "usb_uhci:"
2005-03-26 11:38:31 +03:00
This option controls the presence of the USB root hub which is a part
of the i440FX PCI chipset. With the portX option you can connect devices
2010-12-11 11:25:39 +03:00
to the hub (currently supported: 'mouse', 'tablet', 'keypad', 'disk', 'cdrom',
'hub' and 'printer').
2009-04-19 17:10:50 +04:00
2011-02-20 12:35: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
to set the speed reported by device and by the 'disk' device to specify
an alternative redolog file of some image modes.
2009-02-22 20:05:40 +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-04-19 17:10:50 +04: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).
2009-04-19 17:10:50 +04:00
2010-12-11 11:25:39 +03:00
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.
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.
2003-12-28 17:32:53 +03:00
Example:
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
usb_uhci: enabled=1, port1=printer:printdata.bin, port2=cdrom:image.iso
2009-04-19 17:10:50 +04:00
.TP
.I "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-19 17:10:50 +04:00
Example:
usb_ohci: enabled=1
2009-02-22 20:05:40 +03:00
.TP
2012-01-08 16:43:46 +04:00
.I "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 same
2012-07-12 01:03:59 +04:00
syntax as the UHCI controller (see above).
2009-02-22 20:05:40 +03:00
Example:
2012-01-08 16:43:46 +04:00
usb_xhci: enabled=1
2003-12-28 17:32:53 +03:00
2013-07-20 18:26:41 +04:00
.TP
.I "pcidev:"
Enables the mapping of a host PCI hardware device within the PCI subsystem of
the Bochs x86 emulator. This feature requires Linux as a host OS.
Example:
pcidev: vendor=0x1234, device=0x5678
The vendor and device arguments should contain the vendor ID respectively the
device ID of the PCI device you want to map within Bochs.
.B The PCI mapping is still very experimental.
2009-04-19 17:10:50 +04:00
.TP
.I "user_plugin:"
Load user-defined plugin. This option is available only if Bochs is
compiled with plugin support. Maximum 8 different plugins are supported.
See the example in the Bochs sources how to write a plugin device.
Example:
user_plugin: name=testdev
2001-06-03 23:50:33 +04:00
. \"SKIP_SECTION"
.SH LICENSE
This program is distributed under the terms of the GNU
Lesser General Public License as published by the Free
2012-10-28 19:53:06 +04:00
Software Foundation. See the LICENSE and COPYING files located
2012-09-01 00:57:11 +04:00
in /usr/share/doc/bochs/ for details on the license and
2005-10-23 11:17:01 +04:00
the lack of warranty.
2001-06-03 23:50:33 +04:00
. \"SKIP_SECTION"
.SH AVAILABILITY
The latest version of this program can be found at:
http://bochs.sourceforge.net/getcurrent.html
. \"SKIP_SECTION"
.SH SEE ALSO
2004-10-09 19:58:47 +04:00
bochs(1), bochs-dlx(1), bximage(1), bxcommit(1)
2001-06-03 23:50:33 +04:00
.PP
.nf
The Bochs IA-32 Emulator site on the World Wide Web:
2001-06-04 02:35:07 +04:00
http://bochs.sourceforge.net
2002-12-11 22:16:20 +03:00
Online Bochs Documentation
2002-12-13 22:47:40 +03:00
http://bochs.sourceforge.net/doc/docbook
2001-06-03 23:50:33 +04:00
.fi
. \"SKIP_SECTION"
.SH AUTHORS
The Bochs emulator was created by Kevin Lawton
(kevin@mandrakesoft.com), and is currently maintained
2001-06-04 02:49:13 +04:00
by the members of the Bochs x86 Emulator Project. You
2001-06-03 23:50:33 +04:00
can see a current roster of members at:
http://bochs.sourceforge.net/getinvolved.html
. \"SKIP_SECTION"
.SH BUGS
Please report all bugs to the bug tracker on our web
2001-06-04 02:49:13 +04:00
site. Just go to http://bochs.sourceforge.net, and click
2002-07-04 00:12:15 +04:00
"Bug Reports" on the sidebar under "Feedback".
2001-06-03 23:50:33 +04:00
.PP
Provide a detailed description of the bug, the version of
the program you are running, the operating system you are
running the program on and the operating system you
are running in the emulator.