misc.txt

来自「bochs : one pc simulator.」· 文本 代码 · 共 427 行 · 第 1/2 页

TXT
427
字号
$Id: misc.txt,v 1.32 2005/03/28 08:56:06 vruppert Exp $This is a temporary place to paste in stuff that should go into the docs oneday.  When it is transferred into docbook, let's remove it from misc.txt.--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Date: Thu, 15 Nov 2001 13:31:34 -0800From: David Christy <davidc@davidc.biz>To: bryce@tlw.comSubject: usefull info for mounting I didn't see this in the doc's so I thought you might like ashort description of how to mount a disk image file intoloopback filesystem for maintenance purposes.--------------------------------------------1) First runfdisk -l <image_name>... and it should print out a partition table (with a fewcomplaints requesting the drive geometry, and I don't knowif older versions require a block device) In fact fdisk willeven work to modify partitions in an image, but you mustspecify the drive geometry that's in the bocsrc first.2) Whatever it says the starting partition is, subtract 1and multiply by 5123) Typemount -o loop,offset=<insert number here> <image_name>/mount/diror if it's just a floppy image, justmount -o loop floppy.img /mount/dir---------------------------------------------------I would recommend putting -o ro for read only access ifbochs is in use.  For unusual filesystems you may need toadd a -t <fstype> flag to the mount command to specify thefilesystem type.see man mount, losetup, and fdisk for more infoBOCHS Rocks!!!-------------macintosh.txt-----------------BBD Mon Nov 25 08:23:28 EST 2002This file has been in our main directory for years and years, and has notbeen updated since nobody has tried to compile for MacOS pre-10 in a longtime.  I didn't want to leave it sitting there since it is so incrediblyobsolete.  I think it would be good to put it into the documentationwith proper warnings about the fact that it hasn't been updated in 4 yearsand may need significant hacking to make it work again.------------------Changes by Bryce Denney 4/5/2001:I moved the contents of macutils.h into osdep.h, and macutils.c into osdep.cc.  There are functions missing on other platforms too, so I wanted to bring them all into the same place.The original macintosh.txt follows.STATUS OF THE MAC PORT:-----------------------23 Dec 1998Contents:	Status	How to Set up MacBochs	Problems	Other Issues	New Files	Changed FilesStatus------This is an experimental Macintosh port of Bochs. The Mac port compiles fineunder CodeWarrior Pro R1 (CW12) and is capable of booting Win95 in command-line mode and running DOS programs. A CodeWarrior project ("Bochs.proj") isincluded (you may need to edit the type and creator information with ResEditin order for CodeWarrior to recognise it as a project file).NOTE: MacBochs is very much a "work in progress", and much of the code isincomplete. This preliminary version is being made available mainly tointerested developers who may want to contribute to the development ofMacBochs by contributing some code or testing it on their own Macs.If anyone can test with some "clean" Windows installer disks, it would beuseful. I've been testing MacBochs with my SoftWindows HD image and diskimages derived from it, and I'm not sure if the various SoftWindows-specificdrivers are interfering.23 Dec 98 - updated MacBochs to bochs-981222. The new version seemsnoticeably faster. Finished implementing the Bochs headerbar. Added supportfor ejecting floppy disks from within Bochs (click the Drive A: icon on theheaderbar or press Cmd-E).17 Dec 98 - added real floppy disk support. Also optimized the graphicsscreen drawing a bit more. Keyboard support still broken and in need of amajor overhaul. Does anyone have experience with KCHR resources andKeyTranslate()?How to Set up MacBochs----------------------This is a very brief, step-by-step guide on setting up MacBochs. Moredetailed documentation will be available later.- Step 1. Compile the version of Bochs you want to use (PPC, 68k or FAT) orobtain a pre-compiled binary. There is a CodeWarrior project included withthe source distribution.- Step 2. Create a hard disk image.Bochs ALWAYS needs a hard disk image available to it, otherwise it won'tboot. To create a hard disk image on the Mac, you need to use a recentversion of DiskCopy.First, create an untitled, empty folder anywhere on your Mac hard disk. Then,launch DiskCopy and choose to create a folder image of that folder.DO NOT ENTER THE DISK SIZE IN MEGABYTES. In the file "install.html" in the"docs-html" folder you will find a table of disk sizes and geometries. Make anote of the number of total SECTORS required for your desired hard disk size,as well as the cylinders, heads and sectors per track (spt).In DiskCopy, you need to choose "Custom..." from the menu of image sizes, andchoose to enter the size in "blocks" (on the Mac, a block is pretty much thesame as a sector). Then enter the number of total sectors you need.Make sure the image is "Read/Write", not "Read Only", and make sure you haveentered the correct cyl=, heads= and spt= settings in your bochsrc file. Yourimage file should now be accessible to Bochs.You'll eventually need to use a utility like "fdisk" to make the imagereadable.- Step 3. Obtain a bootable PC floppy or floppy image.You'll need to install an operating system in order to do anything usefulwith Bochs. If you have installer floppies for a PC operating system (eg.Windows or MS-DOS) you can use those. Otherwise you can download disk imagesfor FreeDOS or one of the many variants of Linux.MacBochs now supports real PC floppy disks. To use the Mac floppy driveinstead of a disk image, use the special filename "[fd:]" in the appropriateline of your bochsrc.- Step 4. Set up your bochsrc file.You set up your Bochs preferences by editing the "bochsrc" file. You'll needto set up your bochsrc to work with your floppy and hard disk images, as wellas telling Bochs how many megs of PC RAM you want.Problems--------There are some so far unresolved problems in the "macintosh.cc" GUI file:- Keyboard support is VERY rudimentary; ie. it only supports alphanumericsand a couple of special keys like Enter. The keyboard-related code is full ofholes and I'm going to completely rehash it.- Mouse support hasn't been tested, but probably isn't fully working either.Other Issues------------- The Mac port uses a ready-made config file (configmac.h), like the Win32port used to. Macs are pretty homogeneous, so the settings should beappropriate for most machines.- The Mac port has an extra source file: "macutils.c" (with header file"macutils.h"), which is used for Mac floppy drive support, among otherthings.- Like the Win32 port, the Mac port expects the "bochsrc" file to be in thesame directory as the Bochs application.- Be sure to use Mac pathname conventions when editing the bochsrc file (ie':' instead of '/' or '\').New files---------The following are new, Mac-specific files:gui/macintosh.ccconfigmac.hmacutils.hmacutils.cBochs.projChanged Files-------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?