misc.txt

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

TXT
427
字号
The following files from the main bochs distribution have been modified tocompile properly on the Mac:bochs.hmain.ccmemory/memory.ccmemory/misc_mem.cciodev/floppy.cciodev/harddrv.ccThe changes are just conditional compilations which won't affect otherplatforms (search for "#ifdef macintosh" and "#ifndef macintosh" if you wantto see what the changes are). These changes will need to be integrated intothe main distribution if the MacOS port is going to go ahead seriously.-- David Batterham <drbatter@socs.uts.edu.au> or <drbatter@yahoo.com>--------------------win32.txt----------------------BBD Mon Nov 25 08:27:24 EST 2002The win32 build instructions are out of date too.  The --with-win32-vcpphas been deprecated since at least March 2002.  More current instructionsare already in the docs, so this info may not be of much use.Building Bochs for Win32------------------------This has only been tested with MS Visual C++ 6.0.The normal build process on a unix system is to run configure to build all themakefiles and config.h, and then run make to compile Bochs.  Configure takes alarge number of command line arguments, for example to disable floating pointor to enable sound blaster emulation.  Configure works beautifully on unixsystems to help make the code portable, however it cannot run on Windows.(Maybe, if you have cygwin.)  Therefore, you need to either 1) run configureon a unix box and copy the makefiles and config.h, or 2) download themakefiles which are distributed in a separate ZIP file.If you want to run configure yourself, consider using the shell script".conf.win32-vcpp" since it has been tested.  Look at it to make surethe options make sense for you.  You can always run configure by hand too,just be sure to include the option --with-win32-vcpp so that it createsmakefiles for win32.  Copy config.h, Makefile, and the Makefiles in allsubdirectories over to your windows box into the same directory as the Bochssource.If you download the makefiles in a ZIP, just extract them into thesame directory as the Bochs source.  The config.h and top level Makefileshould end up in the same directory as Bochs.h.Once the makefiles are installed, building Bochs is easy.  Start up an MSDOSwindow, run the .BAT file that sets up the environment variables(C:\vc98\bin\vcvars32.bat on my system), and then run NMAKE in the Bochssource directory.  You will get lots of compile warnings, but hopefully nofatal errors!  At the end, you should see Bochs.exe in the source directory.<!-- *************************************************************** -->Wed Dec 11 13:56:20 EST 2002this text came from build/linux/DOC-linux.html.Originally it was an intro to Bochs for Linux users.  I converted it all todocbook.  I moved most of the info from DOC-linux.html into differentsections of the user guide, and the rest I put here in misc.txt.  Maybe theseparagraphs will be useful in some kind of introduction to something, or maybenot.<section><title>Quick Start for Linux users</title><!--much text removed, put into user guide --><para>This file is an introduction to Bochs for Linux users.  It assumes that youhave just installed a Bochs binary distribution, and now you want to see whatBochs can do!</para><section><title>How can I try out Bochs in 10 minutes or less?</title><para>This RPM package includes a sample disk image containing DLX Linux, which youcan boot within Bochs.  To start up DLX linux, just type "bochs-dlx" in anxterm.  The first time it runs, it creates a disk image in a directorycalled <filename>$HOME/.bochsdlx</filename>.  Then it creates a Bochs Displaywindow and prints some log messages into the xterm.  The display window is themost interesting, but if something goes wrong the log messages should give anidea of what has happened.</para><para>Meanwhile, the Bochs display screen should look like a PC booting...and infact it is!  Bochs begins simulating a PC from the time the power turns on.You will see the VGA BIOS message, and it begins loading Linux from the diskimage.  The disk image is just a big file that Bochs uses as if it were areal hard drive.  After a while, you see Linux boot messages and eventually alogin prompt.  You are now running DLX Linux in a window!</para><para>Bochs simulates every instruction of an x86 CPU, so it is very memory- andcompute-intensive.  The speed of your real CPU will make a big difference inhow fast the DLX Linux image boots.  On a 1GHz Pentium, the sample Linux image takes about 10 seconds to boot.</para><para>In this brief introduction you saw how Bochs can boot and run an x86 operatingsystem in a window.  It doesn't have to be Linux, of course!  Various peoplehave been able to install and run DOS, Windows 3.1, Windows 95/98/ME/NT/XP,Linux, FreeBSD, NetBSD, OpenBSD, and probably others that we've never evenheard of.  In fact Bochs is used by many operating system developers to testout their software in a controlled environment without having to reboot theirdevelopment machine.</para><para>If you are learning about Bochs for the first time, you might want todownload a few other prebuilt disk images of other operating systems from theBochs website.  They range from very small (1.44 meg floppy disk images) tohundreds of megabytes.  Most disk images on the web site come with aworking configuration file (often called bochsrc.txt) so they should workwithout much effort.  This will give you an idea of what Bochs can do,and how it might be useful to you.</para></section>------------------------------------------Windows 3.1 install hintsDate: Fri, 13 Dec 2002 09:56:48 -0700From: Ben Lunt <fys@cybertrails.com>To: bochs-devel <bochs-developers@lists.sourceforge.net>I was playing with bochs a bit last night and successfullygot windows 3.1 installed on a c.img file and run withalmost no errors.I first started with three original DOS 5.0 720k images,FDISKed, FORMATed, and then install.Then changed to seven 1_44m disks and installed Win16.Each time either OS asked for a new disk, I simplycopied the expected image to a.img and continued.------------------------------------------WinNT4 guest network problemsFrom: Jeremy Wilkins <jeb at jeremywilkins.freeserve.co.uk>To: bochs-developers@lists.sourceforge.netSubject: [Bochs-developers] Odd network errors with NT4 Guest OSI'm having trouble transferring files over the network to the guest OS (NT4 SP1). If I'm using SMB then the it errors out early on with a session cancelled. The file is 36Mb (SP6). I've tried with various file sizes, 3Meg files work, 5 meg files do not.I've also tried shuffling the files over http with similar problems, small files are fine (can browse websites) but large files just error out.The system is a 1Ghz Windows XP SP1 box with bochs 2.02, guest OS is allocated 64Mb of RAM and running Windows NT4 SP1.Any clues, anyone experiencing similar problems?--From: didier <dgautheron at magic.fr>To: Jeremy Wilkins <jeb at jeremywilkins.freeserve.co.uk>Cc: bochs-developers@lists.sourceforge.netSubject: Re: [Bochs-developers] Odd network errors with NT4 Guest OSDid you try with a big IPS? start the guest clock applet and try to get a more or less accurate time, with 1 Ghz should be in the 50 000 000 range.IIRC NT timeout and abort before it send the whole packet.--From: Jeremy Wilkins <jeb at jeremywilkins.freeserve.co.uk>To: didier <dgautheron at magic.fr>, bochs-developers@lists.sourceforge.netSubject: Re: [Bochs-developers] Odd network errors with NT4 Guest OSThanks, 60 000 000 seems to have done the trick (I can copy sp6 across anyway). My original guess of 4000000 IPS was probably a bit low :)thanks again------------------------------------------TAP under FreeBSD Date: Fri, 14 Feb 2003 02:12:38 +0100From: Ronald Klop <ronald at echteman.nl>To: bochs-developers at lists.sourceforge.netI've made eth_tap.cc working under FreeBSD 4.7, because the fbsd network driverdidn't work for me.It's not a very clean patch, but the changes are minimal.Some notes:- I found that some of the includes aren't used at all (on FreeBSD).- The socket which is created before /dev/tap0 is opened doesn't work, becausetap0 is created after opening the device.- Maybe the eth_tap device can use a configure script like the eth_tuntapdevice, because the device must be configured after opening.- The padding of the ethernet frame with 2 bytes isn't needed in FreeBSD.- I didn't do any work to check for this in configure, because I don't know howconfigure works and don't have the time work it out now.- the guest os must set (maybe this can be documented somewhere):kldload if_tap (if tap is not compiled in the kernel)ifconfig tap0 inet 10.0.1.1 netmask 255.255.255.0sysctl net.inet.ip.forwarding=1sysctl net.link.ether.inet.proxyall=1

⌨️ 快捷键说明

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