Ok,
Firstly, is it really a kernel, or is it a boot loader? If it's a boot loader (and therefore needs to be on the first disk sector), see
http://www.osdever.net/tutorials/usingpcopy.php.
If you have a boot loader, and you simply want to put kernel.bin on that floppy disk (FAT12), just copy the file, as usual, in Windows using explorer. If you are using GRUB, you will need to navigate to [fddletter]:\boot\menu.cfg and edit a new entry for your kernel.
Now, for Bochs, create a new file called bochsrc.bxrc in notepad (not with a .txt extension). Add the following lines to the file:
Code: Select all
# Memory and BIOS
megs: 32
romimage: file="C:\Program Files\Bochs-2.3.5\BIOS-bochs-latest"
vgaromimage: file="C:\Program Files\Bochs-2.3.5\VGABIOS-lgpl-latest"
log: bochsout.txt
log: -
# Boot Source
boot: floppy
floppy_bootsig_check: disabled=0
floppya: 1_44="b:", status=inserted
You will, of course, need to exchange the letter 'b:' with whatever the letter of your disk drive is. If you are just developping a boot sector, you can replace:
Code: Select all
floppya: 1_44="b:", status=inserted
with
Code: Select all
floppya: 1_44=[path to kernel.bin], status=inserted
Save the file and double-click on it. Bochs should start and try to run your floppy image. If not, let me know the error message you get and we will try to sort it out.
Cheers,
Adam