Start of with downloading the latest bochs source from this site.
I have downloaded this snapshot.
Extract to a folder
tar -zxvf bochs-20070421.tar.gz
Change to the bochs extracted folder
Configure the bochs to be built in Debug mode
./configure --enable-debugger --enable-disasm
Check that debugger flags are enabled config.h
#define BX_DEBUGGER 1
#define BX_DISASM 1
Compile the bochs in debugger mode
Install the bochs in debugger mode
Bochs is all set to run in the DEBUG Mode :)
What next, I need OS for Boch machine, I have tried Linux, Windows, Mac OS all these are stupid they dint work on my Bochs machine, so I took the simple and the best OS Unix v6 from one of the google code.
Check some of the configuration parameter to be set properly
ROM images path is correct, have to be changed for Ubuntu.
# filename of ROM images
romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000
Display library is commented out at all places - nothing worked for me term/nogui/textconfig.
Path the kernel image is correct from this line.
ata0-master: type=disk, mode=flat, path="./obj/kern/bochs.img", cylinders=20, heads=16, spt=63
Now you are all set to run bochs command.
This is show the menu and select menu #6 to start stimulation.
1. Restore factory default configuration
2. Read options from...
3. Edit options
4. Save options to...
5. Restore the Bochs state from...
6. Begin simulation
7. Quit now
NOTE: This did not work for me on 64-bit Ubuntu machine due to some library issues and the instruction set being different bla bla ...