Procházet zdrojové kódy

Updated to current bochs CVS

tags/v0.9.3
Michael Brown před 18 roky
rodič
revize
18f620ca5d
1 změnil soubory, kde provedl 306 přidání a 217 odebrání
  1. 306
    217
      contrib/bochs/bochsrc.txt

+ 306
- 217
contrib/bochs/bochsrc.txt Zobrazit soubor

@@ -1,4 +1,4 @@
1
-# You many now use double quotes around pathnames, in case
1
+# You may now use double quotes around pathnames, in case
2 2
 # your pathname includes spaces.
3 3
 
4 4
 #=======================================================================
@@ -40,44 +40,87 @@
40 40
 #   svga           use SVGALIB library for Linux, allows graphics without X11
41 41
 #   term           text only, uses curses/ncurses library, cross platform
42 42
 #   rfb            provides an interface to AT&T's VNC viewer, cross platform
43
-#   wx             use wxWindows library, cross platform
43
+#   wx             use wxWidgets library, cross platform
44 44
 #   nogui          no display at all
45 45
 #
46 46
 # NOTE: if you use the "wx" configuration interface, you must also use
47 47
 # the "wx" display library.
48
+#
49
+# Specific options:
50
+# Some display libraries now support specific option to control their
51
+# behaviour. See the examples below for currently supported options.
48 52
 #=======================================================================
49 53
 #display_library: amigaos
50 54
 #display_library: beos
51 55
 #display_library: carbon
52 56
 #display_library: macintosh
53 57
 #display_library: nogui
54
-#display_library: rfb
55
-#display_library: sdl
58
+#display_library: rfb, options="timeout=60" # time to wait for client
59
+#display_library: sdl, options="fullscreen" # startup in fullscreen mode
56 60
 #display_library: term
57
-#display_library: win32
61
+#display_library: win32, options="legacyF12" # use F12 to toggle mouse
58 62
 #display_library: wx
59 63
 #display_library: x
60 64
 
61 65
 #=======================================================================
62 66
 # ROMIMAGE:
63
-# You now need to load a ROM BIOS into F0000-FFFFF.  I've wiped
64
-# out most of the BIOS hooks, and replace them with real BIOS
65
-# support.  Normally, you can use a precompiled BIOS in the bios/
66
-# directory, named BIOS-bochs-latest. 
67
+# The ROM BIOS controls what the PC does when it first powers on.
68
+# Normally, you can use a precompiled BIOS in the source or binary
69
+# distribution called BIOS-bochs-latest. The ROM BIOS is usually loaded
70
+# starting at address 0xf0000, and it is exactly 64k long.
71
+# You can also use the environment variable $BXSHARE to specify the
72
+# location of the BIOS.
73
+# The usage of external large BIOS images (up to 512k) at memory top is
74
+# now supported, but we still recommend to use the BIOS distributed with
75
+# Bochs. Now the start address can be calculated from image size.
76
+#=======================================================================
77
+romimage: file=bios/BIOS-bochs-latest, address=0xf0000
78
+#romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
79
+#romimage: file=mybios.bin # calculate start address from image size
80
+
81
+#=======================================================================
82
+# CPU:
83
+# This defines cpu-related parameters inside Bochs:
84
+#
85
+#  COUNT:
86
+#  Set the number of processors:cores per processor:threads per core 
87
+#  when Bochs is compiled for SMP emulation.
88
+#  Bochs currently supports up to 8 threads running simultaniosly. 
89
+#  If Bochs is compiled without SMP support, it won't accept values 
90
+#  different from 1.
91
+#
92
+#  RESET_ON_TRIPLE_FAULT:
93
+#  Reset the CPU when triple fault occur (highly recommended) rather than
94
+#  PANIC. Remember that if you trying to continue after triple fault the 
95
+#  simulation will be completely bogus !
96
+#
97
+#  IPS:
98
+#  Emulated Instructions Per Second.  This is the number of IPS that bochs
99
+#  is capable of running on your machine. You can recompile Bochs with
100
+#  --enable-show-ips option enabled, to find your workstation's capability.
101
+#  Measured IPS value will then be logged into your log file or status bar
102
+#  (if supported by the gui).
103
+#
104
+#  IPS is used to calibrate many time-dependent events within the bochs 
105
+#  simulation.  For example, changing IPS affects the frequency of VGA
106
+#  updates, the duration of time before a key starts to autorepeat, and
107
+#  the measurement of BogoMips and other benchmarks.
108
+#
109
+#  Examples:
110
+#  Machine                                         Mips
111
+# ________________________________________________________________
112
+#  2.1Ghz Athlon XP with Linux 2.6/g++ 3.4         12 to 15 Mips
113
+#  1.6Ghz Intel P4 with Win2000/g++ 3.3             5 to  7 Mips
114
+#  650Mhz Athlon K-7 with Linux 2.4.4/egcs-2.91.66  2 to  2.5 Mips
115
+#  400Mhz Pentium II with Linux 2.0.36/egcs-1.0.3   1 to  1.8 Mips
67 116
 #=======================================================================
68
-#romimage: bios/BIOS-bochs-970717a
69
-#romimage: file=bios/BIOS-bochs-latest, address=0xf0000
70
-romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf0000
71
-#romimage: file=bios/BIOS-bochs-2-processors, address=0xf0000
72
-#romimage: file=bios/BIOS-bochs-4-processors, address=0xf0000
73
-#romimage: file=bios/rombios.bin, address=0xf0000
117
+cpu: count=1, ips=10000000, reset_on_triple_fault=1
74 118
 
75 119
 #=======================================================================
76 120
 # MEGS
77
-# set this to the default number of Megabytes of memory you want
78
-# to emulate.  You may also pass the '-megs xyz' option to bochs
79
-#
80
-# The default is 32MB, most OS's won't need more than that. 
121
+# Set the number of Megabytes of physical memory you want to emulate. 
122
+# The default is 32MB, most OS's won't need more than that.
123
+# The maximum amount of memory supported is 2048Mb.
81 124
 #=======================================================================
82 125
 #megs: 256
83 126
 #megs: 128
@@ -93,30 +136,44 @@ megs: 32
93 136
 # ROM images should not overwrite the rombios (located at
94 137
 # F0000-FFFFF) and the videobios (located at C0000-C7FFF).
95 138
 # Those ROM images will be initialized by the bios if they contain 
96
-# the right signature (0x55AA).
97
-# It can also be a convenient way to upload some arbitary code/data
139
+# the right signature (0x55AA) and a valid checksum.
140
+# It can also be a convenient way to upload some arbitrary code/data
98 141
 # in the simulation, that can be retrieved by the boot loader
99 142
 #=======================================================================
100 143
 #optromimage1: file=optionalrom.bin, address=0xd0000
101 144
 #optromimage2: file=optionalrom.bin, address=0xd1000
102 145
 #optromimage3: file=optionalrom.bin, address=0xd2000
103 146
 #optromimage4: file=optionalrom.bin, address=0xd3000
104
-#optromimage1: file=../../src/bin/ne.zrom, address=0xd0000
105
-optromimage1: file=../../src/bin/pnic.zrom, address=0xd0000
147
+optromimage1: file=rom.img, address=0xd0000
148
+
149
+#optramimage1: file=/path/file1.img, address=0x0010000
150
+#optramimage2: file=/path/file2.img, address=0x0020000
151
+#optramimage3: file=/path/file3.img, address=0x0030000
152
+#optramimage4: file=/path/file4.img, address=0x0040000
106 153
 
107 154
 #=======================================================================
108 155
 # VGAROMIMAGE
109 156
 # You now need to load a VGA ROM BIOS into C0000.
110 157
 #=======================================================================
111
-#vgaromimage: bios/VGABIOS-lgpl-latest
112
-#vgaromimage: bios/VGABIOS-elpin-2.40
113
-vgaromimage: $BXSHARE/VGABIOS-elpin-2.40
158
+#vgaromimage: file=bios/VGABIOS-elpin-2.40
159
+vgaromimage: file=bios/VGABIOS-lgpl-latest
160
+#vgaromimage: file=bios/VGABIOS-lgpl-latest-cirrus
161
+
162
+#=======================================================================
163
+# VGA:
164
+# Here you can specify the display extension to be used. With the value
165
+# 'none' you can use standard VGA with no extension. Other supported
166
+# values are 'vbe' for Bochs VBE and 'cirrus' for Cirrus SVGA support.
167
+#=======================================================================
168
+#vga: extension=cirrus
169
+#vga: extension=vbe
170
+vga: extension=none
114 171
 
115 172
 #=======================================================================
116 173
 # FLOPPYA:
117 174
 # Point this to pathname of floppy image file or device
118
-# This should be of a bootable floppy(image/device) if you're 
119
-# booting from 'a'.
175
+# This should be of a bootable floppy(image/device) if you're
176
+# booting from 'a' (or 'floppy').
120 177
 #
121 178
 # You can set the initial status of the media to 'ejected' or 'inserted'.
122 179
 #   floppya: 2_88=path, status=ejected             (2.88M 3.5" floppy)
@@ -124,18 +181,24 @@ vgaromimage: $BXSHARE/VGABIOS-elpin-2.40
124 181
 #   floppya: 1_2=path, status=ejected              (1.2M  5.25" floppy)
125 182
 #   floppya: 720k=path, status=inserted            (720K  3.5" floppy)
126 183
 #   floppya: 360k=path, status=inserted            (360K  5.25" floppy)
127
-#
128
-# The path should be the name of a disk image file.  On unix, you can use
129
-# a raw device name such as /dev/fd0 on Linux.  On WinNT and Win2k, use
130
-# drive letters such as a: or b: as the path.  Raw floppy access is not
131
-# supported on Windows 95 and 98.
132
-#=======================================================================
133
-floppya: 1_44=/dev/fd0, status=inserted
134
-#floppya: file=../1.44, status=inserted
184
+#   floppya: 320k=path, status=inserted            (320K  5.25" floppy)
185
+#   floppya: 180k=path, status=inserted            (180K  5.25" floppy)
186
+#   floppya: 160k=path, status=inserted            (160K  5.25" floppy)
187
+#   floppya: image=path, status=inserted           (guess type from image size)
188
+#
189
+# The path should be the name of a disk image file.  On Unix, you can use a raw
190
+# device name such as /dev/fd0 on Linux.  On win32 platforms, use drive letters
191
+# such as a: or b: as the path.  The parameter 'image' works with image files
192
+# only. In that case the size must match one of the supported types.
193
+#=======================================================================
194
+#floppya: 1_44=/dev/fd0, status=inserted
195
+#floppya: image=../1.44, status=inserted
135 196
 #floppya: 1_44=/dev/fd0H1440, status=inserted
136 197
 #floppya: 1_2=../1_2, status=inserted
137 198
 #floppya: 1_44=a:, status=inserted
138 199
 #floppya: 1_44=a.img, status=inserted
200
+#floppya: 1_44=/dev/rfd0a, status=inserted
201
+floppya: 1_44=floppy.img, status=inserted
139 202
 
140 203
 #=======================================================================
141 204
 # FLOPPYB:
@@ -151,34 +214,37 @@ floppyb: 1_44=b.img, status=inserted
151 214
 # ata[0-3]: enabled=[0|1], ioaddr1=addr, ioaddr2=addr, irq=number
152 215
 # 
153 216
 # These options enables up to 4 ata channels. For each channel
154
-# the two base io address and the irq must be specified.
217
+# the two base io addresses and the irq must be specified.
155 218
 # 
156
-# ata0 is enabled by default, with ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
219
+# ata0 and ata1 are enabled by default with the values shown below
157 220
 #
158 221
 # Examples:
159 222
 #   ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
160 223
 #   ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
161
-#   ata2: enabled=1, ioaddr1=0x1e8, ioaddr2=0x3e8, irq=11
162
-#   ata3: enabled=1, ioaddr1=0x168, ioaddr2=0x368, irq=9
224
+#   ata2: enabled=1, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
225
+#   ata3: enabled=1, ioaddr1=0x168, ioaddr2=0x360, irq=9
163 226
 #=======================================================================
164 227
 ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
165
-ata1: enabled=0, ioaddr1=0x170, ioaddr2=0x370, irq=15
166
-ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e8, irq=11
167
-ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x368, irq=9
228
+ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
229
+ata2: enabled=0, ioaddr1=0x1e8, ioaddr2=0x3e0, irq=11
230
+ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x360, irq=9
168 231
 
169 232
 #=======================================================================
170 233
 # ATA[0-3]-MASTER, ATA[0-3]-SLAVE
171 234
 #
172 235
 # This defines the type and characteristics of all attached ata devices:
173 236
 #   type=       type of attached device [disk|cdrom] 
237
+#   mode=       only valid for disks [flat|concat|external|dll|sparse|vmware3]
238
+#   mode=       only valid for disks [undoable|growing|volatile]
174 239
 #   path=       path of the image
175 240
 #   cylinders=  only valid for disks
176 241
 #   heads=      only valid for disks
177 242
 #   spt=        only valid for disks
178 243
 #   status=     only valid for cdroms [inserted|ejected]
179 244
 #   biosdetect= type of biosdetection [none|auto], only for disks on ata0 [cmos]
180
-#   translation=type of transation of the bios, only for disks [none|lba|large|rechs|auto]
245
+#   translation=type of translation of the bios, only for disks [none|lba|large|rechs|auto]
181 246
 #   model=      string returned by identify device command
247
+#   journal=    optional filename of the redolog for undoable and volatile disks
182 248
 #   
183 249
 # Point this at a hard disk image file, cdrom iso file, or physical cdrom
184 250
 # device.  To create a hard disk image, try running bximage.  It will help you
@@ -192,93 +258,35 @@ ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x368, irq=9
192 258
 # access the "first" cdrom in the system.  On MacOSX, use path="drive"
193 259
 # to access the physical drive.
194 260
 #
195
-# The path, cylinders, heads, and spt are mandatory for type=disk
196
-# The path is mandatory for type=cdrom
261
+# The path is always mandatory. For flat hard disk images created with
262
+# bximage geometry autodetection can be used (cylinders=0 -> cylinders are
263
+# calculated using heads=16 and spt=63). For other hard disk images and modes
264
+# the cylinders, heads, and spt are mandatory.
197 265
 #
198 266
 # Default values are:
199
-#   biosdetect=auto, translation=auto, model="Generic 1234"
267
+#   mode=flat, biosdetect=auto, translation=auto, model="Generic 1234"
200 268
 #
201 269
 # The biosdetect option has currently no effect on the bios
202 270
 #
203 271
 # Examples:
204
-#   ata0-master: type=disk, path=10M.sample, cylinders=306, heads=4, spt=17
205
-#   ata0-slave:  type=disk, path=20M.sample, cylinders=615, heads=4, spt=17
206
-#   ata1-master: type=disk, path=30M.sample, cylinders=615, heads=6, spt=17
207
-#   ata1-slave:  type=disk, path=46M.sample, cylinders=940, heads=6, spt=17
208
-#   ata2-master: type=disk, path=62M.sample, cylinders=940, heads=8, spt=17
209
-#   ata2-slave:  type=disk, path=112M.sample, cylinders=900, heads=15, spt=17
210
-#   ata3-master: type=disk, path=483M.sample, cylinders=1024, heads=15, spt=63
272
+#   ata0-master: type=disk, mode=flat, path=10M.sample, cylinders=306, heads=4, spt=17
273
+#   ata0-slave:  type=disk, mode=flat, path=20M.sample, cylinders=615, heads=4, spt=17
274
+#   ata1-master: type=disk, mode=flat, path=30M.sample, cylinders=615, heads=6, spt=17
275
+#   ata1-slave:  type=disk, mode=flat, path=46M.sample, cylinders=940, heads=6, spt=17
276
+#   ata2-master: type=disk, mode=flat, path=62M.sample, cylinders=940, heads=8, spt=17
277
+#   ata2-slave:  type=disk, mode=flat, path=112M.sample, cylinders=900, heads=15, spt=17
278
+#   ata3-master: type=disk, mode=flat, path=483M.sample, cylinders=1024, heads=15, spt=63
211 279
 #   ata3-slave:  type=cdrom, path=iso.sample, status=inserted
212 280
 #=======================================================================
213
-#ata0-master: type=disk, path="30M.sample", cylinders=615, heads=6, spt=17
281
+#ata0-master: type=disk, mode=flat, path="30M.sample", cylinders=615, heads=6, spt=17
214 282
 #ata0-slave: type=cdrom, path=D:, status=inserted
215 283
 #ata0-slave: type=cdrom, path=/dev/cdrom, status=inserted
216 284
 #ata0-slave: type=cdrom, path="drive", status=inserted
217
-
218
-#=======================================================================
219
-#
220
-# The DISKC option is deprecated. Use ATA* options instead.
221
-#
222
-# DISKC: file=, cyl=, heads=, spt=
223
-# Point this at a hard disk image file.  To create 
224
-# a hard disk image, try running bximage.  It will help you choose the
225
-# size and then suggest a diskc line that works with it.
226
-#
227
-# In UNIX it may be possible to use a raw device as a Bochs hard disk, 
228
-# but WE DON'T RECOMMEND IT.  In Windows there is no easy way.
229
-#
230
-# Examples:
231
-#   diskc: file=10M.sample, cyl=306, heads=4, spt=17
232
-#   diskc: file=20M.sample, cyl=615, heads=4, spt=17
233
-#   diskc: file=30M.sample, cyl=615, heads=6, spt=17
234
-#   diskc: file=46M.sample, cyl=940, heads=6, spt=17
235
-#   diskc: file=62M.sample, cyl=940, heads=8, spt=17
236
-#   diskc: file=112M.sample, cyl=900, heads=15, spt=17
237
-#   diskc: file=483M.sample, cyl=1024, heads=15, spt=63
238
-#=======================================================================
239
-#diskc: file="30M.sample", cyl=615, heads=6, spt=17
240
-
241
-#=======================================================================
242
-#
243
-# The DISKD option is deprecated. Use ATA* options instead.
244
-#
245
-# DISKD:
246
-# See DISKC above for syntax
247
-#
248
-# NOTE: diskd and cdromd must not be used together!
249
-#=======================================================================
250
-#diskd: file="diskd.img", cyl=615, heads=6, spt=17
251
-
252
-#=======================================================================
253
-#
254
-# The CDROMD option is deprecated. Use ATA* options instead.
255
-#
256
-# CDROMD:
257
-#
258
-# cdromd: dev=/dev/cdrom, status=inserted
259
-# cdromd: dev=/dev/cdrom, status=ejected
260
-# cdromd: dev=e:, status=ejected
261
-#
262
-# In windows, the drive letter + colon notation should be used for cdroms.
263
-# Depending on versions of windows and drivers, you may only be able to 
264
-# access the "first" cdrom in the system.  On MacOSX, use path="drive"
265
-# to access the physical drive.
266
-#
267
-# NOTE: diskd and cdromd must not be used together!
268
-#=======================================================================
269
-#cdromd: dev=D:, status=inserted
270
-#cdromd: dev=/dev/cdrom, status=inserted
271
-#cdromd: dev="drive", status=inserted
272
-
273
-#=======================================================================
274
-# NEWHARDDRIVESUPPORT: enabled=[0|1]
275
-# As of cvs version on 5/17/2001, newharddrivesupport is on by default.
276
-#=======================================================================
277
-#newharddrivesupport: enabled=1
285
+#ata0-slave: type=cdrom, path=/dev/rcd0d, status=inserted 
278 286
 
279 287
 #=======================================================================
280 288
 # BOOT:
281
-# This defines your boot drive.  
289
+# This defines the boot sequence. Now you can specify up to 3 boot drives.
282 290
 # You can either boot from 'floppy', 'disk' or 'cdrom'
283 291
 # legacy 'a' and 'c' are also supported
284 292
 # Examples:
@@ -287,10 +295,43 @@ ata3: enabled=0, ioaddr1=0x168, ioaddr2=0x368, irq=9
287 295
 #   boot: cdrom
288 296
 #   boot: c
289 297
 #   boot: a
298
+#   boot: cdrom, floppy, disk
290 299
 #=======================================================================
291 300
 #boot: floppy
292 301
 #boot: disk
293 302
 
303
+#=======================================================================
304
+# CLOCK:
305
+# This defines the parameters of the clock inside Bochs:
306
+#
307
+#  SYNC:
308
+#  TO BE COMPLETED (see Greg explanation in feature request #536329)
309
+#
310
+#  TIME0:
311
+#  Specifies the start (boot) time of the virtual machine. Use a time 
312
+#  value as returned by the time(2) system call. If no time0 value is 
313
+#  set or if time0 equal to 1 (special case) or if time0 equal 'local', 
314
+#  the simulation will be started at the current local host time.
315
+#  If time0 equal to 2 (special case) or if time0 equal 'utc',
316
+#  the simulation will be started at the current utc time.
317
+#
318
+# Syntax:
319
+#  clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc]
320
+#
321
+# Example:
322
+#   clock: sync=none,     time0=local       # Now (localtime)
323
+#   clock: sync=slowdown, time0=315529200   # Tue Jan  1 00:00:00 1980
324
+#   clock: sync=none,     time0=631148400   # Mon Jan  1 00:00:00 1990
325
+#   clock: sync=realtime, time0=938581955   # Wed Sep 29 07:12:35 1999
326
+#   clock: sync=realtime, time0=946681200   # Sat Jan  1 00:00:00 2000
327
+#   clock: sync=none,     time0=1           # Now (localtime)
328
+#   clock: sync=none,     time0=utc         # Now (utc/gmt)
329
+# 
330
+# Default value are sync=none, time0=local
331
+#=======================================================================
332
+#clock: sync=none, time0=local
333
+
334
+
294 335
 #=======================================================================
295 336
 # FLOPPY_BOOTSIG_CHECK: disabled=[0|1]
296 337
 # Enables or disables the 0xaa55 signature check on boot floppies
@@ -304,8 +345,10 @@ floppy_bootsig_check: disabled=0
304 345
 
305 346
 #=======================================================================
306 347
 # LOG:
307
-# Give the path of the log file you'd like Bochs debug and misc. verbage
308
-# to be written to.  If you really don't want it, make it /dev/null. :^(
348
+# Give the path of the log file you'd like Bochs debug and misc. verbiage
349
+# to be written to. If you don't use this option or set the filename to
350
+# '-' the output is written to the console. If you really don't want it,
351
+# make it "/dev/null" (Unix) or "nul" (win32). :^(
309 352
 #
310 353
 # Examples:
311 354
 #   log: ./bochs.out
@@ -319,7 +362,7 @@ log: bochsout.txt
319 362
 # This handles the format of the string prepended to each log line.
320 363
 # You may use those special tokens :
321 364
 #   %t : 11 decimal digits timer tick
322
-#   %i : 8 hexadecimal digits of cpu0 current eip
365
+#   %i : 8 hexadecimal digits of cpu current eip (ignored in SMP configuration)
323 366
 #   %e : 1 character event type ('i'nfo, 'd'ebug, 'p'anic, 'e'rror)
324 367
 #   %d : 5 characters string of the device, between brackets
325 368
 # 
@@ -356,6 +399,7 @@ panic: action=ask
356 399
 error: action=report
357 400
 info: action=report
358 401
 debug: action=ignore
402
+#pass: action=fatal
359 403
 
360 404
 #=======================================================================
361 405
 # DEBUGGER_LOG:
@@ -370,22 +414,33 @@ debug: action=ignore
370 414
 debugger_log: -
371 415
 
372 416
 #=======================================================================
373
-# com1:
374
-# This defines a serial (COM) port. You can specify a device to use as com1.
375
-# This can be a real serial line, or a pty.  To use a pty (under X/Unix),
376
-# create two windows (xterms, usually).  One of them will run bochs, and the
377
-# other will act as com1. Find out the tty the com1 window using the `tty'
378
-# command, and use that as the `dev' parameter.  Then do `sleep 1000000' in
379
-# the com1 window to keep the shell from messing with things, and run bochs in
380
-# the other window.  Serial I/O to com1 (port 0x3f8) will all go to the other
381
-# window.
417
+# COM1, COM2, COM3, COM4:
418
+# This defines a serial port (UART type 16550A). In the 'term' you can specify
419
+# a device to use as com1. This can be a real serial line, or a pty.  To use
420
+# a pty (under X/Unix), create two windows (xterms, usually).  One of them will
421
+# run bochs, and the other will act as com1. Find out the tty the com1
422
+# window using the `tty' command, and use that as the `dev' parameter.
423
+# Then do `sleep 1000000' in the com1 window to keep the shell from
424
+# messing with things, and run bochs in the other window.  Serial I/O to
425
+# com1 (port 0x3f8) will all go to the other window.
426
+# Other serial modes are 'null' (no input/output), 'file' (output to a file
427
+# specified as the 'dev' parameter), 'raw' (use the real serial port - under
428
+# construction for win32), 'mouse' (standard serial mouse - requires
429
+# mouse option setting 'type=serial' or 'type=serial_wheel') and 'socket'
430
+# (connect a networking socket).
431
+#
432
+# Examples:
433
+#   com1: enabled=1, mode=null
434
+#   com1: enabled=1, mode=mouse
435
+#   com2: enabled=1, mode=file, dev=serial.out
436
+#   com3: enabled=1, mode=raw, dev=com1
437
+#   com3: enabled=1, mode=socket, dev=localhost:8888
382 438
 #=======================================================================
383
-#com1: enabled=1, dev=/dev/ttyp9
384
-#com1: enabled=1, dev=/tmp/serial.log
439
+#com1: enabled=1, mode=term, dev=/dev/ttyp9
385 440
 
386 441
 
387 442
 #=======================================================================
388
-# PARPORT1:
443
+# PARPORT1, PARPORT2:
389 444
 # This defines a parallel (printer) port. When turned on and an output file is
390 445
 # defined the emulated printer port sends characters printed by the guest OS
391 446
 # into the output file. On some platforms a device filename can be used to
@@ -394,7 +449,7 @@ debugger_log: -
394 449
 #
395 450
 # Examples:
396 451
 #   parport1: enabled=1, file="parport.out"
397
-#   parport1: enabled=1, file="/dev/lp0"
452
+#   parport2: enabled=1, file="/dev/lp0"
398 453
 #   parport1: enabled=0
399 454
 #=======================================================================
400 455
 parport1: enabled=1, file="parport.out"
@@ -421,15 +476,15 @@ parport1: enabled=1, file="parport.out"
421 476
 # log:  The file to write the sb16 emulator messages to.
422 477
 # loglevel:
423 478
 #      0=no log
424
-#      1=only midi program and bank changes
479
+#      1=resource changes, midi program and bank changes
425 480
 #      2=severe errors
426 481
 #      3=all errors
427 482
 #      4=all errors plus all port accesses
428 483
 #      5=all errors and port accesses plus a lot of extra info
429 484
 # dmatimer:
430 485
 #      microseconds per second for a DMA cycle.  Make it smaller to fix
431
-#      non-continous sound.  750000 is usually a good value.  This needs a
432
-#      reasonably correct setting for IPS.
486
+#      non-continuous sound.  750000 is usually a good value.  This needs a
487
+#      reasonably correct setting for the IPS parameter of the CPU option.
433 488
 #
434 489
 # For an example look at the next line:
435 490
 #=======================================================================
@@ -439,10 +494,10 @@ parport1: enabled=1, file="parport.out"
439 494
 #=======================================================================
440 495
 # VGA_UPDATE_INTERVAL:
441 496
 # Video memory is scanned for updates and screen updated every so many
442
-# virtual seconds.  The default is 300000, about 3Hz.  This is generally
443
-# plenty.  Keep in mind that you must tweak the 'ips:' directive
444
-# to be as close to the number of emulated instructions-per-second
445
-# your workstation can do, for this to be accurate.
497
+# virtual seconds.  The default is 40000, about 25Hz. Keep in mind that
498
+# you must tweak the 'cpu: ips=N' directive to be as close to the number
499
+# of emulated instructions-per-second your workstation can do, for this
500
+# to be accurate.
446 501
 #
447 502
 # Examples:
448 503
 #   vga_update_interval: 250000
@@ -479,61 +534,25 @@ keyboard_serial_delay: 250
479 534
 keyboard_paste_delay: 100000
480 535
 
481 536
 #=======================================================================
482
-# FLOPPY_COMMAND_DELAY:
483
-# Time in microseconds to wait before completing some floppy commands
484
-# such as read/write/seek/etc, which normally have a delay associated.
485
-# I had this hardwired to 50,000 before.
486
-#
487
-# Examples:
488
-#   floppy_command_delay: 50000
489
-#=======================================================================
490
-floppy_command_delay: 500
491
-
492
-#=======================================================================
493
-# IPS:
494
-# Emulated Instructions Per Second.  This is the number of IPS that bochs
495
-# is capable of running on your machine.  Read the note in config.h
496
-# on how to find this.  Make sure to recompile after.
497
-#
498
-# IPS is used to calibrate many time-dependent events within the bochs 
499
-# simulation.  For example, changing IPS affects the frequency of VGA
500
-# updates, the duration of time before a key starts to autorepeat, and 
501
-# the measurement of BogoMips and other benchmarks.
502
-#
503
-# Examples:
504
-# Machine                                         Mips
505
-# ________________________________________________________________
506
-# 650Mhz Athlon K-7 with Linux 2.4.4/egcs-2.91.66 2 to 2.5 Mips
507
-# 400Mhz Pentium II with Linux 2.0.36/egcs-1.0.3  1 to 1.8 Mips
508
-# 166Mhz 64bit Sparc with Solaris 2.x             approx 0.75 Mips
509
-# 200Mhz Pentium with Linux 2.x                   approx 0.5 Mips
510
-#
511
-#=======================================================================
512
-ips: 1000000
513
-
514
-#=======================================================================
515
-# PIT:
516
-# The PIT is the programmable interval timer.  It has an option that tries to
517
-# keep the PIT in sync with real time.  This feature is still experimental,
518
-# but it may be useful if you want to prevent Bochs from running too fast, for
519
-# example a DOS video game.  Be aware that with the realtime pit option, your
520
-# simulation will not be repeatable; this can a problem if you are debugging.
521
-#=======================================================================
522
-#pit: realtime=1
523
-
524
-#=======================================================================
525
-# mouse: Not used in any of the GUI specific modules, but the option
526
-#        bx_options.mouse_enabled is set to this value.  The idea,
527
-#        is that the GUI code should not generate mouse events when
528
-#        not enabled.  The hardware emualation itself is not disabled
529
-#        by this.  This is to facilitate deterministic runs of bochs.
537
+# MOUSE: 
538
+# This option prevents Bochs from creating mouse "events" unless a mouse
539
+# is  enabled. The hardware emulation itself is not disabled by this.
540
+# You can turn the mouse on by setting enabled to 1, or turn it off by
541
+# setting enabled to 0. Unless you have a particular reason for enabling
542
+# the mouse by default, it is recommended that you leave it off.
543
+# You can also toggle the mouse usage at runtime (control key + middle
544
+# mouse button on X11, SDL, wxWidgets and Win32).
545
+# With the mouse type option you can select the type of mouse to emulate.
546
+# The default value is 'ps2'. The other choices are 'imps2' (wheel mouse
547
+# on PS/2), 'serial', 'serial_wheel' (one com port requires setting
548
+# 'mode=mouse') and 'usb' (3-button mouse - one of the USB ports must be
549
+# connected with the 'mouse' device - requires PCI and USB support).
530 550
 #
531 551
 # Examples:
532 552
 #   mouse: enabled=1
553
+#   mouse: enabled=1, type=imps2
554
+#   mouse: enabled=1, type=serial
533 555
 #   mouse: enabled=0
534
-#
535
-# I wouldn't recommend enabling the mouse by default, unless you have a
536
-# really good reason to do so.
537 556
 #=======================================================================
538 557
 mouse: enabled=0
539 558
 
@@ -559,8 +578,8 @@ private_colormap: enabled=0
559 578
 #   fullscreen: enabled=0
560 579
 #   fullscreen: enabled=1
561 580
 #=======================================================================
562
-fullscreen: enabled=0
563
-screenmode: name="sample"
581
+#fullscreen: enabled=0
582
+#screenmode: name="sample"
564 583
 
565 584
 #=======================================================================
566 585
 # ne2k: NE2000 compatible ethernet adapter
@@ -583,24 +602,35 @@ screenmode: name="sample"
583 602
 # Niclist source code is in misc/niclist.c and it is included in Windows 
584 603
 # binary releases.
585 604
 #
586
-# script: The script value is optionnal, and is the name of a script that 
605
+# script: The script value is optional, and is the name of a script that 
587 606
 # is executed after bochs initialize the network interface. You can use 
588 607
 # this script to configure this network interface, or enable masquerading.
589 608
 # This is mainly useful for the tun/tap devices that only exist during
590 609
 # Bochs execution. The network interface name is supplied to the script
591 610
 # as first parameter
592
-#=======================================================================
593
-# ne2k: ioaddr=0x280, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xl0
594
-# ne2k: ioaddr=0x280, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0
595
-# ne2k: ioaddr=0x280, irq=9, mac=b0:c4:20:00:00:01, ethmod=win32, ethdev=MYCARD
596
-# ne2k: ioaddr=0x280, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0
597
-# ne2k: ioaddr=0x280, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=tun0, script=./ifup.tun
598
-# ne2k: ioaddr=0x280, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=tun0
599
-
600
-# Pseudo NIC adaptor.  The way bochs is structured at the moment means
601
-# that you need to enable ne2k support in order to compile in any of
602
-# the networking code.
603
-pnic: ioaddr=0xdc00, irq=11, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=tun1, script=./ifup.tun
611
+#
612
+# If you don't want to make connections to any physical networks,
613
+# you can use the following 'ethmod's to simulate a virtual network.
614
+#   null: All packets are discarded, but logged to a few files.
615
+#   arpback: ARP is simulated. Disabled by default.
616
+#   vde:  Virtual Distributed Ethernet
617
+#   vnet: ARP, ICMP-echo(ping), DHCP and read/write TFTP are simulated.
618
+#         The virtual host uses 192.168.10.1.
619
+#         DHCP assigns 192.168.10.2 to the guest.
620
+#         TFTP uses the ethdev value for the root directory and doesn't
621
+#         overwrite files.
622
+#
623
+#=======================================================================
624
+# ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=fbsd, ethdev=en0 #macosx
625
+# ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xl0
626
+# ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0
627
+# ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=win32, ethdev=MYCARD
628
+# ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0
629
+# ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun0, script=./tunconfig
630
+# ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=null, ethdev=eth0
631
+# ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=vde, ethdev="/tmp/vde.ctl"
632
+# ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp"
633
+pnic: mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun:tap0
604 634
 
605 635
 #=======================================================================
606 636
 # KEYBOARD_MAPPING:
@@ -628,31 +658,90 @@ keyboard_mapping: enabled=0, map=
628 658
 #=======================================================================
629 659
 # USER_SHORTCUT:
630 660
 # This defines the keyboard shortcut to be sent when you press the "user"
631
-# button in the headerbar. The shortcut string can be a combination of
632
-# these key names: "alt", "ctrl", "del", "esc", "f1", "f4", "tab", "win".
633
-# Up to 3 keys can be pressed at a time.
661
+# button in the headerbar. The shortcut string is a combination of maximum
662
+# 3 key names (listed below) separated with a '-' character. The old-style
663
+# syntax (without the '-') still works for the key combinations supported
664
+# in Bochs 2.2.1.
665
+# Valid key names:
666
+# "alt", "bksl", "bksp", "ctrl", "del", "down", "end", "enter", "esc",
667
+# "f1", ... "f12", "home", "ins", "left", "menu", "minus", "pgdwn", "pgup",
668
+# "plus", "right", "shift", "space", "tab", "up", and "win".
634 669
 #
635 670
 # Example:
636
-#   user_shortcut: keys=ctrlaltdel
671
+#   user_shortcut: keys=ctrl-alt-del
637 672
 #=======================================================================
638
-user_shortcut: keys=ctrlaltdel
673
+user_shortcut: keys=ctrl-alt-del
674
+
675
+#=======================================================================
676
+# I440FXSUPPORT:
677
+# This option controls the presence of the i440FX PCI chipset. You can
678
+# also specify the devices connected to PCI slots. Up to 5 slots are
679
+# available now. These devices are currently supported: ne2k, pcivga,
680
+# pcidev and pcipnic. If Bochs is compiled with Cirrus SVGA support
681
+# you'll have the additional choice 'cirrus'.
682
+#
683
+# Example:
684
+#   i440fxsupport: enabled=1, slot1=pcivga, slot2=ne2k
685
+#=======================================================================
686
+i440fxsupport: enabled=1, slot1=pcipnic
687
+
688
+#=======================================================================
689
+# USB1:
690
+# This option controls the presence of the USB root hub which is a part
691
+# of the i440FX PCI chipset. With the portX option you can connect devices
692
+# to the hub (currently supported: 'mouse' and 'keypad'). If you connect
693
+# the mouse to one of the ports and use the mouse option 'type=usb' you'll
694
+# have a 3-button USB mouse.
695
+#
696
+# Example:
697
+#   usb1: enabled=1, port1=mouse, port2=keypad
698
+#=======================================================================
699
+#usb1: enabled=1
700
+
701
+#=======================================================================
702
+# CMOSIMAGE:
703
+# This defines image file that can be loaded into the CMOS RAM at startup.
704
+# The rtc_init parameter controls whether initialize the RTC with values stored
705
+# in the image. By default the time0 argument given to the clock option is used.
706
+# With 'rtc_init=image' the image is the source for the initial time.
707
+#
708
+# Example:
709
+#   cmosimage: file=cmos.img, rtc_init=image
710
+#=======================================================================
711
+#cmosimage: file=cmos.img, rtc_init=time0
639 712
 
640 713
 #=======================================================================
641 714
 # other stuff
642 715
 #=======================================================================
643 716
 magic_break: enabled=1
644
-
645 717
 #load32bitOSImage: os=nullkernel, path=../kernel.img, iolog=../vga_io.log
646 718
 #load32bitOSImage: os=linux, path=../linux.img, iolog=../vga_io.log, initrd=../initrd.img
647
-i440fxsupport: enabled=1
648
-#time0: 938581955
719
+#text_snapshot_check: enable
720
+
721
+#-------------------------
722
+# PCI host device mapping
723
+#-------------------------
724
+#pcidev: vendor=0x1234, device=0x5678
725
+
726
+#=======================================================================
727
+# GDBSTUB:
728
+# Enable GDB stub. See user documentation for details.
729
+# Default value is enabled=0.
730
+#=======================================================================
731
+#gdbstub: enabled=0, port=1234, text_base=0, data_base=0, bss_base=0
732
+
733
+#=======================================================================
734
+# IPS:
735
+# The IPS directive is DEPRECATED. Use the parameter IPS of the CPU
736
+# directive instead.
737
+#=======================================================================
738
+#ips: 10000000
649 739
 
650 740
 #=======================================================================
651 741
 # for Macintosh, use the style of pathnames in the following
652 742
 # examples.
653 743
 #
654
-# vgaromimage: :bios:VGABIOS-elpin-2.20
655
-# romimage: file=:bios:BIOS-bochs-981222a, address=0xf0000
744
+# vgaromimage: :bios:VGABIOS-elpin-2.40
745
+# romimage: file=:bios:BIOS-bochs-latest, address=0xf0000
656 746
 # floppya: 1_44=[fd:], status=inserted
657 747
 #=======================================================================
658
-

Načítá se…
Zrušit
Uložit