Installing 386BSD on BOCHS
Template:Newpage
This is the procedure that I have used to install 386BSD onto a patched version of the Bochs IA-32 emulator. This is based on ancient FAQs and trial & error. It is assumed you use a modern Linux with a kernel that features the ip_tables packet filter and TUN/TAP as host OS. If you want to use a different platform you can still follow the tutorial as a guideline but you are on your own figuring out how to get the emulator networked. A good starting point is http://bochs.sourceforge.net/doc/docbook/user/bochsrc.html#AEN1831
Special attention has been given to the ability to run the emulator in the background.
Requirements
You will need the following to get a 386BSD system patched and installed:
- A modern linux system with iptables
- A working copy of gunzip
- An http/ftp client like wget
- An acceptable C compiler like gcc to compile Bochs
- The curses/ncurses library for Bochs to simulate a monitor in a terminal
- An ftp server for the distribution files
On a stock Basic Fedora Core 8 box you have these in no time with
yum -y install wget yum -y install gcc yum -y install gcc-c++ yum -y install ncurses-devel yum -y install vsftpd
You also need
- The bochs 2.4.2 sources
- A patched pic.cc
- The 386BSD distribution and patchkits
but we will get to that later in the tutorial.
For those attempting to install on a different platform:
You can download the Bochs sources from sourceforge
A patched pic.cc can be found at http://www.xs4all.nl/~dugo/pic.cc
The 386BSD 1.0 distribution and patchkits can be found at