xref: /xv6-public/dot-bochsrc (revision 70a895f6)
1###############################################################
2# bochsrc file for pragmalinux disk image.
3#
4# This file is provided both as .bochsrc and bochsrc so
5# that it works on win32 and unix.
6###############################################################
7
8# how much memory the emulated machine will have
9megs: 32
10
11# filename of ROM images
12romimage: file=/usr/local/BIOS-bochs-latest, address=0xf0000
13vgaromimage: file=/usr/local/VGABIOS-lgpl-latest
14
15# Use the parallel port as an alternate console,
16# so that we can run Bochs without the GUI.
17parport1: enabled=1, file="/dev/stdout"
18#parport1: enabled=1, file="/dev/null"
19
20# uncommenting one of the following lines can be used to specify your
21# preferred display. (defaults to x11 for bochs-bin and to term for
22# bochs-term)
23
24#display_library: x
25
26# nogui can still be useful because you can see the output on the
27# parport1 from above
28#display_library: nogui
29
30# if using "term", you probably want to change the parport output to
31# go to a file or /dev/null
32#display_library: term
33
34# disk images
35ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
36# ata0-master: type=disk, mode=flat, path="./obj/kern/bochs.img", cylinders=200, heads=16, spt=63
37ata0-master: type=disk, mode=flat, path="./xv6.img", cylinders=100, heads=10, spt=10
38# ata0-slave: type=disk, mode=flat, path="./obj/fs/fs.img", cylinders=200, heads=16, spt=63
39
40# choose the boot disk.
41boot: c
42
43# where do we send log messages?
44log: bochs.log
45#log: /dev/stdout
46
47# disable the mouse
48mouse: enabled=0
49
50#debug: action=ignore
51info: action=ignore
52error: action=report
53panic: action=ask
54
55# this changes how often the screen is refreshed.  Lowering it will
56# make your screen update more often, which will slow down emulation,
57# but will make the display respond faster.  It can also be useful if
58# you machine is panicing and the most recent screen changes are not
59# displayed before it panics.
60
61vga_update_interval: 100000
62
63# changing ips can lead to dramatically different performance.  It
64# also affects how quickly time passes in the emulated machine.
65# Setting it too low can cause clock interrupts to happen too rapidly.
66# Setting it too high will make the whole machine feel sluggish.
67# (Note: with using clock sync=realtime, the ips parameter is not
68# really used, although it is still used for vga updates)
69ips: 2000000
70
71# This means that time in the emulated machine is the same as
72# realtime.  This can be scary because running the same simulation
73# twice in a row can lead to different results (because they started
74# at different times, for instance).  If you want to use non-real
75# time, then use sync=none.
76clock: sync=realtime, time0=local
77# clock: sync=none, time0=946681200 # jan 1, 2000
78
79keyboard_serial_delay: 10
80