Bochs

Chris Caudle chris at chriscaudle.org
Thu Dec 5 23:13:30 UTC 2002


> Was this with current RTEMS sources?

Just tried it out with the 1118 snapshot.
Haven't gotten as far as network configured yet, but tried all the sample 
tests.

Paranoia seemed to hang partway through, but some of the tests completed.
CDTest worked.
Unlimited test ran.  At the very end it has a message about failing creating 
a task because the id already existed.  Is that normal?  It's been so long 
since I ran the samples I can't remember.
Ticker ran.
base_sp ran.
Below are the instructions for setting everything up.  Not much extra beyond 
installing bochs.
-- 
Chris Caudle

These instructions apply to Linux.  Much of this will work on a Windows 
platform, but things like device access will obviously be different.  
Consult the Bochs documentation if you need access to the floppy or hard 
drive under Windows and can't use the /dev/fd0 suggestion below.

Download Bochs from Sourceforge.  Lots of new features are going into 2.0, 
so I would skip the 1.4 release, and go with one of the 2.0 release 
candidates until 2.0 is actually released.
Main site:
http://bochs.sourceforge.net/
Prerelease RPM's:
http://bochs.sourceforge.net/release2_0.html

You may need a new wxWindows to fulfill some dependencies.  You can get 
2.3.3 from the same page as the 2.0 prerelease RPM.

Install bochs using rpm, and browse around the documentation on 
Sourceforge a bit to get familiar with what it can do.

Move the sample bochs configuration file into the directory from which you 
will be running bochs.
If you installed from RPM, the sample file is located in:
/usr/share/doc/bochs/bochsrc-sample.txt
Rename the file bochsrc (I think .bochsrc may also work if you want the file
hidden).
Comment out the ATA drive line, and change the floppy drive line to point to 
either /dev/fd0 or a file that you have created from a floppy 
(using "dd if=/dev/fd0 of=flop.img" or a bootable image file you have
downloaded).

Assuming your floppy drive image file is "flop.img" and you have a directory
/mnt/image, you can mount the floppy image for modification with the loop
option:
mount flop.img /mnt/image -o loop
You can mount the image for modification more easily if you add an entry 
like this to your /etc/fstab file:
flop.img    /mnt/image    auto    noauto,user,loop    0 0
Then the command "mount /mnt/image" will mount the image for you.  If you 
have multiple disk images, you can give them different names and create a 
symbolic link from flop.img to whichever image file you want to use at that 
time, or you could of course set up multiple entries in fstab and have 
/mnt/image1, /mnt/image2, etc.

After mounting your floppy disk image and putting whichever files you want 
onto the image, make sure you unmount the image before starting bochs.
Just run the command "bochs," and when the simulation window starts, pick 
the "Simulate" menu and select "Start."  You should see the normal startup
messages in the window at that point.




More information about the users mailing list