bochsrc.5
来自「bochs : one pc simulator.」· 5 代码 · 共 834 行 · 第 1/2 页
5
834 行
.I "error:"Bochs produces an error message when it findsa condition that really shouldn't happen, butdoesn't endanger the simulation. An example ofan error might be if the emulated softwareproduces an illegal disk command.The "error" setting tells Bochs how to respondto an error condition. You can set this tofatal (terminate the session), report (printinformation to the console), or ignore (donothing).Example: error: action=report.TP.I "info:"This setting tells Bochs what to do when anevent occurs that generates informationalmessages. You can set this to fatal (thatwould not be very smart though), report (printinformation to the console), or ignore (donothing). For general usage, the "report"option is probably a good choice.Example: info: action=report.TP.I "debug:"This setting tells Bochs what to do withmessages intended to assist in debugging. Youcan set this to fatal (but you shouldn't),report (print information to the console), orignore (do nothing). You should generally setthis to ignore, unless you are trying todiagnose a particular problem..B NOTE: When action=report, Bochs may spit outthousands of debug messages per second, whichcan impact performance and fill up your disk.Example: debug: action=ignore.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: -.TP.I "sb16:"This defines the SB16 sound emulation. It canhave several of the following properties. Allproperties are in this format: sb16: property=value.B PROPERTIES FOR sb16:midi:The filename is where the midi data is sent.This can be a device or just a file if youwant to record the midi data.midimode: 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).wave:This is the device/file where wave output isstored.wavemode: 0 = no data 1 = output to device (system dependent - wave denotes the device driver). 2 = VOC file output, including headers. 3 = Output the raw wave stream to the file.log:The file to write the sb16 emulator messages to.loglevel: 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.It is possible to change the loglevel at runtime.dmatimer:Microseconds per second for a DMA cycle. Make it smallerto fix non-continuous sound. 750000 is usually a goodvalue. This needs a reasonably correct setting forthe IPS parameter of the CPU option. It is possible toadjust the dmatimer at runtime.Example: sb16: midimode=1, midi=/dev/midi00, wavemode=1, wave=/dev/dsp, loglevel=2, log=sb16.log, dmatimer=600000.B NOTE:The example is wrapped onto three lines forformatting reasons, but it should all be onone line in the actual bochsrc file..TP.I "vga_update_interval:"Video memory is scanned for updates and screen updatedevery so many virtual seconds. The default value is40000, about 25Hz. Keep in mind that you must tweakthe 'cpu: ips=N' directive to be as close to the number ofemulated instructions-per-second your workstation cando, for this to be accurate.Example: vga_update_interval: 250000.TP.I "keyboard_serial_delay:"Approximate time in microseconds that it takesone character to be transfered from thekeyboard to controller over the serial path.Example: keyboard_serial_delay: 200.TP.I "keyboard_paste_delay:"Approximate time in microseconds between attempts to pastecharacters to the keyboard controller. This leaves time for theguest os to deal with the flow of characters. The ideal settingdepends on how your operating system processes characters. Thedefault of 100000 usec (.1 seconds) was chosen because it works consistently in Windows.If your OS is losing characters during a paste, increase the pastedelay until it stops losing characters.Example: keyboard_paste_delay: 100000.TP.I "ips:"Emulated Instructions Per Second. This option is deprecated.Use the CPU paramter IPS instead (cpu: ips=N)..TP.I "clock:"This defines the parameters of the clock inside Bochs.syncTO BE COMPLETED (see Greg explanation in feature request #536329)time0Specifies the start (boot) time of the virtual machine. Use a time value as returned by the time(2) system call. If no time0 value is set or if time0 equal to 1 (special case) or if time0 equal 'local', the simulation will be started at the current local host time.If time0 equal to 2 (special case) or if time0 equal 'utc',the simulation will be started at the current utc time.Syntax: clock: sync=[none|slowdown|realtime|both], time0=[timeValue|local|utc]Default value are sync=none, time0=localExample: clock: sync=realtime, time0=938581955 # Wed Sep 29 07:12:35 1999.TP.I "mouse:"This option prevents Bochs from creating mouse "events"unless a mouse is enabled. The hardware emulation itselfis not disabled by this. You can turn the mouse on bysetting enabled to 1, or turn it off by setting enabledto 0. Unless you have a particular reason for enablingthe mouse by default, it is recommended that you leaveit off. You can also toggle the mouse usage at runtime(control key + middle mouse button).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 mouseon PS/2), 'serial', 'serial_wheel' (one com port requires setting 'mode=mouse')and 'usb' (3-button mouse - one of the USB ports must be connected withthe 'mouse' device - requires PCI and USB support).Examples: mouse: enabled=0 mouse: enabled=1, type=imps2.TP.I "private_colormap:"Requests that the GUI create and use it's ownnon-shared colormap. This colormap will beused when in the bochs window. If not enabled,a shared colormap scheme may be used. Onceagain, enabled=1 turns on this feature and 0turns it off.Example: private_colormap: enabled=1.TP.I "i440fxsupport:"This option controls the presence of the i440FX PCI chipset. You canalso specify the devices connected to PCI slots. Up to 5 slots areavailable now. These devices are currently supported: ne2k, pcivga,pcidev and pcipnic. If Bochs is compiled with Cirrus SVGA supportyou'll have the additional choice 'cirrus'.Example: i440fxsupport: enabled=1, slot1=pcivga, slot2=ne2k.TP.I "pcidev:"Enables the mapping of a host PCI hardware device within the PCI subsystem ofthe Bochs x86 emulator. This feature requires Linux as a host OS.Example: pcidev: vendor=0x1234, device=0x5678The vendor and device arguments should contain the vendor ID respectively thedevice ID of the PCI device you want to map within Bochs..B The PCI mapping is still very experimental..TP.I "ne2k:"Defines the characteristics of an attached ne2000 isa card : ioaddr=IOADDR, irq=IRQ, mac=MACADDR, ethmod=MODULE, ethdev=DEVICE, script=SCRIPT.B PROPERTIES FOR ne2k:ioaddr, irq:You probably won't need to change ioaddr and irq, unless there are IRQ conflicts.These parameters are ignored if the NE2000 is assigned to a PCI slot.mac: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 multicastaddress), and you cannot use ff:ff:ff:ff:ff:ff because that's the broadcastaddress. For the ethertap module, you must use fe:fd:00:00:00:01. There maybe other restrictions too. To be safe, just use the b0:c4... address.ethmod:The ethmod value defines which low level OS specific module to be usedto access physical ethernet interface. Current implemented values include - fbsd : ethernet on freebsd and openbsd - linux : ethernet on linux - win32 : ethernet on win32 - tap : ethernet through a linux tap interface - tuntap : ethernet through a linux tuntap interfaceIf 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 - arpback: ARP is simulated (disabled by default) - vde : Virtual Distributed Ethernet - vnet : ARP, ICMP-echo(ping), DHCP and TFTP are simulated The virtual host uses 192.168.10.1 DHCP assigns 192.168.10.2 to the guest The TFTP server use ethdev for the root directory and doesn't overwrite filesethdev:The ethdev value is the name of the network interface on your hostplatform. On UNIX machines, you can get the name by running ifconfig. OnWindows 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 Windowsbinary releases.script:The script value is optional, and is the name of a script thatis executed after bochs initialize the network interface. You can usethis script to configure this network interface, or enable masquerading.This is mainly useful for the tun/tap devices that only exist duringBochs execution. The network interface name is supplied to the scriptas first parameterExamples: ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:00, ethmod=fbsd, ethdev=xlo ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:00, ethmod=linux, ethdev=eth0 ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=win32, ethdev=MYCARD ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tap, ethdev=tap0 ne2k: ioaddr=0x240, irq=9, mac=fe:fd:00:00:00:01, ethmod=tuntap, ethdev=/dev/net/tun0, script=./tunconfig ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=vde, ethdev="/tmp/vde.ctl" ne2k: ioaddr=0x240, irq=9, mac=b0:c4:20:00:00:01, ethmod=vnet, ethdev="c:/temp".TP.I "keyboard_mapping:"This enables a remap of a physical localized keyboard to avirtualized us keyboard, as the PC architecture expects.If enabled, the keymap file must be specified. Examples: keyboard_mapping: enabled=1, map=gui/keymaps/x11-pc-de.map.TP.I "keyboard_type:"Type of emulated keyboard sent back to the OSto a "keyboard identify" command. It must be one of "xt", "at" or "mf". Example: keyboard_type: mf.TP.I "user_shortcut:"This defines the keyboard shortcut to be sent when you press the "user"button in the headerbar. The shortcut string is a combination of maximum3 key names (listed below) separated with a '-' character. The old-stylesyntax (without the '-') still works for the key combinations supportedin Bochs 2.2.1.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", and "win".Example: user_shortcut: keys=ctrl-alt-del.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 storedin 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 "usb1:"This option controls the presence of the USB root hub which is a partof the i440FX PCI chipset. With the portX option you can connect devicesto the hub (currently supported: 'mouse' and 'keypad'). If you connectthe mouse to one of the ports and use the mouse option 'type=usb' you'llhave a 3-button USB mouse.Example: usb1: enabled=1, port1=mouse, port2=keypad.\"SKIP_SECTION".SH LICENSEThis program is distributed under the terms of the GNULesser General Public License as published by the FreeSoftware Foundation. See the COPYING file located in/usr/local/share/doc/bochs/ for details on the license andthe lack of warranty..\"SKIP_SECTION".SH AVAILABILITYThe latest version of this program can be found at: http://bochs.sourceforge.net/getcurrent.html.\"SKIP_SECTION".SH SEE ALSObochs(1), bochs-dlx(1), bximage(1), bxcommit(1).PP.nfThe Bochs IA-32 Emulator site on the World Wide Web: http://bochs.sourceforge.netOnline Bochs Documentation http://bochs.sourceforge.net/doc/docbook.fi.\"SKIP_SECTION".SH AUTHORSThe Bochs emulator was created by Kevin Lawton(kevin@mandrakesoft.com), and is currently maintainedby the members of the Bochs x86 Emulator Project. Youcan see a current roster of members at: http://bochs.sourceforge.net/getinvolved.html.\"SKIP_SECTION".SH BUGSPlease report all bugs to the bug tracker on our website. Just go to http://bochs.sourceforge.net, and click"Bug Reports" on the sidebar under "Feedback"..PPProvide a detailed description of the bug, the version ofthe program you are running, the operating system you arerunning the program on and the operating system youare running in the emulator.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?