⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bochsrc.1

📁 用vc++编写的虚拟机仿真系统。可以模拟真实操作系统的一些功能。
💻 1
字号:
.\Document Author:  Timothy R. Butler   -   tbutler@uninetsolutions.com.TH bochsrc 1 "The Bochs Project           bochsrc            2 Jun 2001".\"SKIP_SECTION".SH NAMEbochsrc \- Configuration file for Bochs..\"SKIP_SECTION".SH DESCRIPTION.LPBochsrc   is  the   configuration   file  that specifieswhere  Bochs should look for disk images,  how the Bochsemulation layer  should  work,  etc.   The  syntax  usedfor bochsrc  can also be used as command line  argumentsfor Bochs. The .bochsrc  file should be placed either inthe current  directory  before running  Bochs or in yourhome directory..\".\"DONT_SPLIT".SH OPTIONS.TP.I "romimage:"You need to load  a ROM BIOS into  F0000-FFFFF.The  BIOS  controls  what  the PC does when itfirst  powers  on.  Normally,  you  can use  aprecompiled BIOS in the.B bios/directory, namedBIOS-bochs-latest.Example:  romimage: file=bios/BIOS-bochs-970717.TP.I "megs:"Set this to the default number of Megabytes ofmemory you want to emulate.  You may also passthe.B 'megs:N'option to bochs.  The  defaultis 32MB, since  most OS's won't need more thanthat.Example:  megs: 32.TP.I "vgaromimage:"You  also  need to load a VGA  ROM  BIOS  intoC0000.Example:  vgaromimage: bios/VGABIOS-elpin-2.40.TP.I "floppya:"or.I "floppyb:"Point  this to  the pathname of a floppy imagefile or  device.  Floppya is the  first drive,and  floppyb is the  second drive.  If  you'rebooting from a floppy, floppya should point toa bootable disk.You can set the initial status of the media to'ejected' or 'inserted'. Usually you will wantto use 'inserted'.Example:2.88M 3.5" Floppy:  floppya: 2_88=path, status=ejected1.44M 3.5" Floppy:  floppya: 1_44=path, status=inserted1.2M  5.25" Floppy:  floppyb: 1_2=path, status=ejected720K  3.5" Floppy:  floppya: 720k=path, status=inserted.TP.I "diskc:"or.I "diskd:"Point  this at the disk image you want to  useas for a hard disk. If you  use bximage(1)  tocreate   the  image,  it  will  give  you  therequired  cyl,  head, and spt information.diskc is the first hard drive, and diskd is thesecond hard drive..B NOTE:You cannot use both diskd and cdromd together.Example:  diskc: file=10M.i, cyl=306, heads=4, spt=17  diskc: file=112M.i, cyl=900, heads=15, spt=17  diskd: file=483.i, cyl=1024, heads=15, spt=63.TP.I "com1:"Point  this at the device you want to  useas your com1 serial port. The "dev=" parameter indicates which device to use.This can be a Unix pty.  One way to use this would be to run bochs in one windowand open a second window to use as com1.  Do a `sleep 1000000' in the com1window to prevent it's shell from getting in the way.  When you run bochs, allI/O to com1 will show up in this window.Example:  com1: dev=/dev/ttyp7.TP.I "cdromd:"Point this to a pathname of a raw CD-ROM device.There is no cdromc option, only cdromd..B NOTE:You cannot use both diskd and cdromd together.Example:  cdromd: dev=/dev/cdrom, status=inserted  cdromd: dev=/dev/cdrom, status=ejected.TP.I "newharddrivesupport:"This  setting enables  support for large  harddisks,  better  CD  recognition,  and  variousother  useful  functions.  You  can set it  to"enabled=1" (on)  or "enabled=0" (off).  It isrecommended  that  this  setting  is  left  onunless you are having trouble with it.Example:  newharddrivesupport: enabled=1.TP.I "boot:"This defines  your boot drive. You can  eitherboot from 'a' or 'c'.Example:  boot: c.TP.I "log:"Give the path of the log file you'd like Bochsdebug and misc. verbage to be written to.   Ifyou really don't want it, make it /dev/null.Example:  log: bochs.out  log: /dev/tty               (unix only)  log: /dev/null              (unix only).TP.I "panic:"If Bochs reaches  a condition  where it cannotemulate correctly, it does a panic.  This  canbe a configuration problem  (like a misspelledbochsrc line) or an emulation problem (like anunsupported video mode). The  "panic"  settingin  bochsrc  tells  Bochs  how to respond to apanic.  You  can  set this to fatal (terminatethe session),  report   (print information  tothe console), or ignore (do nothing).The safest setting is action=fatal. If you aregetting  panics,  you  can  try  action=reportinstead.  If you allow Bochs to continue aftera panic, don't be surprised if you get strangebehavior or crashes if a panic occurs.  Pleasereport  panic  messages  unless  it is just  aconfiguration  problem  like  "could  not findhard drive image."Example:  panic: action=fatal.TP.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 "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 = Only 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.dmatimer:Microseconds per second for a DMA cycle.  Makeit smaller to fix non-continous sound.  750000is  usually  a  good  value.    This  needs  areasonably  correct   setting  for  IPS   (seebelow).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 screenupdated  every so many virtual  seconds.   Thedefault  is  300000,   about  3Hz.    This  isgenerally plenty.  Keep in mind that you  musttweak  the 'ips:' directive to be as close  tothe number of emulated instructions-per-secondyour  workstation  can  do,  for  this  to  beaccurate.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_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 "floppy_command_delay:"Time in microseconds to wait before completingsome  floppy  commands  such  as read,  write,seek,  etc.,   which  normally  have  a  delayassociated.  This was  previous  hardwired  to50,000.Example:  floppy_command_delay: 50000.TP.I "ips:"Emulated Instructions Per Second.  This is thenumber of IPS that bochs is capable of runningon your  machine.  You  can  recompile  Bochs,using  instructions  included in  config.h (inthe source code),  to find  your workstation'scapability.IPS is used to calibrate  many  time-dependentevents   within   the  bochs  simulation.  Forexample, changing IPS affects the frequency ofVGA updates, the duration of time before a keystarts to autorepeat,  and the measurement  ofBogoMips and other benchmarks.Example Specifications[1]  Machine                           Mips---------------------------------------------------650Mhz Athlon K-7 with Linux 2.4.x    2 to 2.5400Mhz Pentium II with Linux 2.0.x    1 to 1.8166Mhz 64bit Sparc with Solaris 2.x       0.75200Mhz Pentium with Linux 2.x                   0.5 [1]  Mips  are  dependant on  OS and compilerconfiguration  in addition  to processor clockspeed.Example:  ips: 1000000.TP.I "mouse:"This option prevents Bochs from creating mouse"events"  unless  a  mouse  is  enabled.  Thehardware emulation  itself is not disabled  bythis. You  can  turn the mouse on  by  settingenabled to  1,  or  turn  it  off  by  settingenabled to 0. Unless  you  have  a  particularreason  for enabling  the  mouse  by  default,it is recommended that you leave it off.Example:  mouse: enabled=1  mouse: enabled=0.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.\"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/bochs/@VERSION@/ for details on the license andthe lack of warrantee..\"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).PP.nfThe Bochs IA-32 Emulator site on the World Wide Web:        http://bochs.sourceforge.netThe Getting Started Guide for Bochs on Linux:        /usr/local/bochs/@VERSION@/DOC-linux.html.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 "Features.".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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -