Bochs/bochs/doc/docbook/misc.txt

393 lines
14 KiB
Plaintext
Raw Normal View History

$Id: misc.txt,v 1.4 2001-11-13 00:01:57 bdenney Exp $
2001-10-31 22:42:15 +03:00
This is a temporary place to paste in stuff that should go into the docs one
day. When it is transferred into docbook, let's remove it from misc.txt.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
From yakovlev@mac.com Wed Oct 31 14:51:48 2001
Date: Tue, 09 Oct 2001 12:51:36 -0500
From: Greg Alexander <yakovlev@mac.com>
To: bochs-developers@lists.sourceforge.net
Subject: [Bochs-developers] Documentation - How to make a disk image under
UNIX/linux
0.) What you need:
1.) An executable version of bochs. See "obtaining a bochs executable"
or "compiling the bochs source"
2.) The bximage program, included with bochs
3.) A FreeDOS boot disk, or a boot disk from another OS capable of
producing DOS partitions (i.e. a linux install disk.)
4.) (optional) mtools, a program for manipulating DOS disks/images.
1.) Creating an image file.
Run `bximage` to create a disk image file. You will be greeted with the
following prompt:
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: misc.txt,v 1.4 2001-11-13 00:01:57 bdenney Exp $
========================================================================
Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd]
Since we are creating a hard disk image, accept the default of hd by
pressing <enter> or typing 'hd' and pressing <enter>. Next, bximage
will ask for the size of the disk image you want to create, in
Megabytes:
Enter the hard disk size in megabytes, between 1 and 32255
[10]
Enter the size of the hard disk you want to create, and press <enter>.
Bochs will give you some information about the image it is creating, and
ask you for a filename to use for the file it is creating. I told it to
use the default of 10 megabytes, and was given the following information
along with the prompt for a filename:
[10] 10
I will create a hard disk image with
cyl=20
heads=16
sectors per track=63
total sectors=20160
total size=9.84 megabytes
What should I name the image?
[c.img]
At this point, type in the filename you want to use for the image. The
default of "c.img" is appropriate if this will be your only hard disk
image. After you have typed in the name of the filename you want to
use, press <enter>. Bximage will tell you it is writing the disk and
will display a status bar as you wait. When it is finished, it will
give you a final status report and tell you a line that should be added
to your .bochsrc file when you want to use this disk image. I named my
10 Megabyte image "teaching.img" and the output of bximage looked like
this:
[c.img] teaching.img
Writing: [..........] Done.
I wrote 10321920 bytes to teaching.img.
The following line should appear in your bochsrc:
diskc: file="teaching.img", cyl=20, heads=16, spt=63
At this point, a file called "teaching.img" was created in my current
directory and is ready to be used as an image file for a bochs session.
2.) Partition and format your image file.
Option 1: Using FreeDOS (Advantages: Creates a MBR on the partition.)
First, you need to edit the .bochsrc file that bochs uses for
configuration information. Open the file .bochsrc with a text editor.
Remove any lines in the file beginning with "diskc:". Add the "diskc:"
line that was displayed when you ran bximage to the .bochsrc file in the
same place that you removed the old "diskc:" lines from.
Also, you need to download or create a FreeDOS (or DOS, or Windows, or
linux) disk image. Modify the "floppya:" line in your .bochsrc file to point
at the downloaded FreeDOS image and change its status to "status=inserted".
Save and close your .bochsrc. Now run bochs. (see: "Running bochs from
the command line.")
Use the standard FreeDOS commands fdisk and format to format your hard
drive image. You must make the image bootable to be able to boot
without a hard drive. However, creating a bootable disk image is best
done with a boot disk from the OS you intend to install on the image.
Option 2: Using mtools (Disadvantages: cannot create bootable images
without a MBR image)
Use a text editor to add the following line to the file ~/.mtoolsrc:
drive c: file="<path>/filename.img" partition=1
Save and close .mtoolsrc. Next, execute the following commands to
create a partition table for the drive image:
mpartition -I -s <spt> -t <cyl> -h <heads> c:
mpartition -cpv -s <spt> -t <cyl> -h <heads> c:
For example, for my 10 meg drive, I used:
mpartition -I -s 63 -t 20 -h 16 c:
mpartition -cpv -s 63 -t 20 -h 16 c:
Next, format the partition you just created using the mformat command:
mformat c:
And you now have a formatted disk image containing a single DOS
partition.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
2001-10-31 23:53:18 +03:00
Date: Sun, 21 Oct 2001 02:24:22 -0700 (PDT)
From: Sancho Roberto <rsanchov@yahoo.com>
To: bochs-developers@lists.sourceforge.net
Subject: [Bochs-developers] WinMe install tips
Parts/Attachments:
Instalation of WinMe
1) Install Win98
My Windows Me is an update version, that is, it upgrades over Win98.
So the first think I have to do is to install on a HD image a
Win98
It is not necessary to do the full install. What I've done is
- Create a HD image (Win98.img) with 500MB
- Format It, install MSDOS6 on it so I can boot from c
- Make a W98 directory.
- Copy using mtools the instalation directory from the original
Win98 CD
- Run bochs
- run the setup program into the W98 directory
- Select WIN98 as Windows directory. All other setup options
are left by default.
- I don't care about HW detection, etc. Just uncompressing
the cab files to the WIN98 directory es enought for WinMe.
(Note that Win98 is not functional and cannot boot)
2) Copy the WinMe install files to the HD
In Win98.img, with mtools, I create a directory called WinMe.
Again, I copy the contents of the Win9x directory from the original
WinMe CD. Note that I copy the CD to my HD, and then with mtools
from my HD to win98.img. I also delete then W98 directory.
3) Create WinMe.img
Now, I created another blank HD called WinMe.img with 500MB.
I format it and install MSDOS6 so I an boot using it.
4) Prepare the instalation Bochs
I edit the bochsrc.txt file so
- WinMe.img is diskc
- Win98.img is diskd
5) Running setup
I start bochs: the C: drive is empty (it only contains the
MSDOS6 command.com, IO.SYS, etc). The D: drive has:
D:\W98 - The "installed" Windows 98
D:\WINME - Windows Me setup files
I go to the WINME directory and run:
SETUP xxxx
The description of the setup options can be found in the Microsoft Knowledge page as
Q186111 - Description of the Windows 95, Windows 98, and Windows Me Setup Switches
I've done a lot of trials with this setup options until I finally
found a correct way to finnish the installation. These are the setup
options I used. I've copied a brief description (from the KB) and added
my comments.
/m - bypass the playing of the Setup sound (.wav) files.
Not necessary as my Bochs has no sound device activated
/nf - Do not prompt to remove the floppy disk from the drive
Maybe not necessary. Just in case
/nh - This switch bypasses running the Hwinfo.exe program at 0
percent files and RunOnce.
If not present, freezes on HW detection
/ie - This switch bypasses the Windows 98 Startup Disk wizard screens.
To speed things up - I allways can create a Statup disk latter
/iv - This switch bypasses displaying the Setup screens during
an upgrade within Windows.
To speed things up
/c - This switch bypasses running SMARTDrive.
Maybe not necessary. Just in case
/im - Causes setup to ignore the conventional memory check.
Maybe not necessary. Just in case
/is - This switch causes Setup not to run ScanDisk.
Very important as SCANDISK freezed bochs
/iq - If you use the /is switch to bypass ScanDisk or if ScanDisk
does not complete successfully, Setup checks your drive for cross-linked files.
The /iq switch prevents Setup from doing this.
Very important. If not used, Setup stop the installation
with a message "error found in C:, run scandisk and setup again"
(or something like this). Of course, there is no errors in C:
because is an empty, just formatted disk, but the WinMe setup
thinks so. The only way to progress from this point is
with this switch
/it - This switch bypasses checking for the presence of "dirty" or "deadly" terminate-and-stay-resident programs (TSRs) that are known to cause problems with Windows Setup.
Maybe not necessary. Just in case
/p b;g=3
b: This switch enables Prompt Before mode. It prompts
you before a detection module is called so that you can
step through each detection module manually and decide
if you want to skip it.
Very important. See bellow
g: This switch controls how verbose the built-in progress bar is
There is another main issue that must be handled
WinMe requires a 150Mhz computer as a minimum. If you try to run
the WinMe setup, you will receive a message telling you so, and the
installation will stop.
The only way I found to solve this problem is to change the IPS
value in bochsrc.txt. I raised the IPS value until setup stop
complaining. In my machine (P3 @ 450MHz), I achieved this with
ips: 500000000
This this IPS value, the keyboard and mouse are updated each
100 seconds. This makes very dificult to type the CD-KEY numbers,
select type of instalation, etc.
One way to solve this is to lower the vga_update_interval and
the keyboard_serial_delay. I lower the value until
- I have a minimum respons from keyboard and mouse (say
1 second delay between keypress/mousemove and the
screen update)
- I still pass the 150 Mhz check
The values I used are
vga_update_interval: 10000
keyboard_serial_delay: 200
They may be diferent for other computers.
Note that bochs, on starting up complains about vga_update_interval
with the message "bochsrc.txt: vga_update_interval not big enough!":
ignore it.
6) Follow the Windows Me setup instruction ...
Just a warning: it is very, very, very, *VERY* (very) slow ...
Two days running non stop on my PC.
Don't wait ... enjoy yourself during the process ... you that the time.
7) Hardware nightmare
At a given moment, you are prompted to detect the hardware.
There is a prompt for each type of device: Bus, keyboard, mouse,
HD, CDROM, etc.
Say NO to everything.
If you say YES, sometimes setup will detect your HW, but normaly
it will crash with GPF on COMMCTRL.DLL (setup crash, but bochs
still alive. Nice!).
If you sat CANCEL, setup will stay in this screen forever (ok, ok,
I have just wait 10 hours).
8) Configuring
Setup will configure you PC. You can set your timezone, etc.
Then Setup will create the Statup menu icons. Here, time to time,
you will get a GPF in PIFMGR.DLL. Just press Ok and continue.
Again this procedure is very very very very very very slow.
Worse of all, you cannot leave it running by night. You must
press Ok a lot of times to clean the GPF.
9) Restart.
At last, setup will restart the PC. Exit Bochs. I recomend to make
a copy of WinMe.img just to save all your time.
10) Run bochs again
Setup will do some stuff ... just wait
After a while, the Start button appearch on the lower left corner
of the screen!
Just for safe, I executed within WinMe msconfig.exe, and in the
advanced tab set the Disk Compatibility mode". Also, I've turned
of the menu and windows animations, to speed thinks up a bit. Also
it may be a good idea to turn off scandisk on setup.
Do not forget to exit from Windows with the Shutdown menu ...
11) That's all
Now you can comment out the diskd line in the bochsrc.txt. WinMe.img
contains a working WinMe.
NOTE: if you lower the IPS, WinMe will be unstable ... surelly
a timing issue. But even if IPS is high, lowering
vga_update_interval and keyboard_serial_delay will help
on getting an acceptable usability.
DO not forget to use your Pentium 10 at 500 GHz to get a
good speed within Windows.
Some bugs i've found
- MSDOS Scandisk freeze
- Hw detection is very problematic
- If bochs is visible when it switchs from text mode to grafic mode,
the size of the window is correct. But if Bochs is minimized when
doing so, the size of the Bochs window is incorrect. It does not
take into account the height of the top banner (the one with the
disk icons, mouse, snapshot, etc), so the botton of the screen
is clipped.
- Dont expect to run WinMe at full speed unless you use your Pentium10 at 1500 GHz
- (not a bug, but a comment) The splash screen when booting/shutdown
WinMe is double height. I personally prefer to see the full image
as it was time ago.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------