Booting using Bochs in Windows without a physical floppy

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
sfpiano
Posts: 8
Joined: Sat Apr 01, 2006 12:00 am

Booting using Bochs in Windows without a physical floppy

Post by sfpiano »

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.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Booting using Bochs in Windows without a physical floppy

Post by earlz »

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
sfpiano
Posts: 8
Joined: Sat Apr 01, 2006 12:00 am

Re: Booting using Bochs in Windows without a physical floppy

Post by sfpiano »

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.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Booting using Bochs in Windows without a physical floppy

Post by earlz »

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)
Last edited by earlz on Sun Apr 02, 2006 12:00 am, edited 1 time in total.
sfpiano
Posts: 8
Joined: Sat Apr 01, 2006 12:00 am

Re: Booting using Bochs in Windows without a physical floppy

Post by sfpiano »

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.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Booting using Bochs in Windows without a physical floppy

Post by earlz »

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

Code: Select all

PARTCOPY bootf.bin 0 3 -f1 0
PARTCOPY bootf.bin 3E 1C2 -f1 3E
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

Code: Select all

PARTCOPY bootf.bin 0 3 -f0 0
PARTCOPY bootf.bin 3E 1C2 -f0 3E
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

Code: Select all

-Ttext 0xFF800000
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)
Last edited by earlz on Sun Apr 02, 2006 12:00 am, edited 1 time in total.
sfpiano
Posts: 8
Joined: Sat Apr 01, 2006 12:00 am

Re: Booting using Bochs in Windows without a physical floppy

Post by sfpiano »

Great, thanks a lot.
Post Reply