Kimm wrote:... I have tried to use bochs beafure withouth any luck, I just dont know how to configure the thing. So I was woundering if anyone where knows how to do it and can give me a detailed description of how to do this
Your best bet would be to create a bootable floppy image containing your OS then use a fairly vanilla (ie generic) Bochs config file.
My generic bochs config file looks like this.
Code: Select all
romimage: file=@ZYG_BOCHSDIR@/BIOS-bochs-2-processors, address=0xf0000
vgaromimage: @ZYG_BOCHSDIR@/VGABIOS-lgpl-latest
floppya: 1_44=@abs_top_builddir@/disk.img, status=inserted
boot: floppy
log: zygomatic.log
error: action=report
info: action=report
where
@ZYG_BOCHSDIR@ gets replaced (by autoconf) with the location of the Bochs installation and
@abs_top_builddir@ gets replaced with the locaton of my build directory, but you can just substitute by hand if you don't want to go all out.
You will have to replace the solidi with backslashes if you are running Bochs on a DOS-based platform (including Windows and Cygwin).
You just have to pass the name of the config file to Bochs on the command line using the -f switch. You probably also want to use the -q switch.
I use GNU automake and autoconf to customize my development environments (I have multiple development platforms). I have a make target to create the bootable floppy and to run Bochs automatically, so I just have to type "make bochs" and the kernel gets rebuilt, floppy image created, and up pops Bochs running my kernel. Much faster turnaround than to reboot hardware.
Kimm wrote:And does anyone know where I can find a BIOS image to use??
The Bochs distributions (source and binary) come with open-sourced BIOS images, both system BIOS and VGA BIOS. These are legal and (mostly) work.