Booting using Bochs in Windows without a physical floppy
Booting using Bochs in Windows without a physical floppy
I'm Windows, and I've been trying to figure out how to get code to boot up using Bochs without a physical floppy since I don't have any. Just take this code as my example. I compile it, and link it into kernel.bin, but then I'm stuck. I downloaded grub, and combined the two stages into one image, and loaded that up with bochs. But then I don't know how to get my kernel running.
Re: Booting using Bochs in Windows without a physical floppy
I Recommend using vfd as it also lets you easily write to the floppy from windows
website: http://chitchat.at.infoseek.co.jp/vmware/vfd.html
It behaves just like a physical floppy except for super fast and never an error or bad sector
website: http://chitchat.at.infoseek.co.jp/vmware/vfd.html
It behaves just like a physical floppy except for super fast and never an error or bad sector
Re: Booting using Bochs in Windows without a physical floppy
Ok, I don't quite understand how I'm supposed to use this to get my kernel to boot. I can't even get anything to mount because all of my images are under 1.44M, and I'm not even sure I have the right things imaged.
Re: Booting using Bochs in Windows without a physical floppy
hmmm
you don't mean by image your compiled kernel binary do you?
edit:
try going to open then leaving the filename blank
that should create a blank image, now just write your bootsector and copy your kernel to B: (or whatever you chose for the drive)
you don't mean by image your compiled kernel binary do you?
edit:
try going to open then leaving the filename blank
that should create a blank image, now just write your bootsector and copy your kernel to B: (or whatever you chose for the drive)
Last edited by earlz on Sun Apr 02, 2006 12:00 am, edited 1 time in total.
Re: Booting using Bochs in Windows without a physical floppy
Ok, I'm using the Bootf02 bootsector, I have my kernel.bin, and I have the grub image. However because I am an idiot or something, I still can't figure out how to get them to work together.
Re: Booting using Bochs in Windows without a physical floppy
which bootloader are you going to use, bootf02 or grub
you can't use both.
if your goign to use bootf02 then
open vfdwin.exe and goto open and then just push ok
if the emulated floppy drive is B: then
goto the command prompt and in bootf02 dir there should be partcopy
and do this
at the command line then just copy your kernel.bin to the floppy and boot it
if the emulated floppy drive is A: then
goto the command prompt and in bootf02 dir there should be partcopy
and do this
at the command line then just copy your kernel.bin to the floppy and boot it
and that should do it
but if your using grub, i have no idea
btw
with bootf02
add this to your linker options
if you don't then hardly anything will work
edit:
if you are using bootf then download this image and load it and just replace kernel.bin
http://jouleos.byethost33.com/latest.zip (don't worry its just 23kb)
you can't use both.
if your goign to use bootf02 then
open vfdwin.exe and goto open and then just push ok
if the emulated floppy drive is B: then
goto the command prompt and in bootf02 dir there should be partcopy
and do this
Code: Select all
PARTCOPY bootf.bin 0 3 -f1 0
PARTCOPY bootf.bin 3E 1C2 -f1 3E
if the emulated floppy drive is A: then
goto the command prompt and in bootf02 dir there should be partcopy
and do this
Code: Select all
PARTCOPY bootf.bin 0 3 -f0 0
PARTCOPY bootf.bin 3E 1C2 -f0 3E
and that should do it
but if your using grub, i have no idea
btw
with bootf02
add this to your linker options
Code: Select all
-Ttext 0xFF800000
edit:
if you are using bootf then download this image and load it and just replace kernel.bin
http://jouleos.byethost33.com/latest.zip (don't worry its just 23kb)
Last edited by earlz on Sun Apr 02, 2006 12:00 am, edited 1 time in total.
Re: Booting using Bochs in Windows without a physical floppy
Great, thanks a lot.