Page 1 of 1

How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 5:55 pm
by dayron
Hello everyone,

I've been reading the tutorials on the Wiki section of this website and I can't understand how to make a (.img) Floppy Image File which I can run on Bochs. I'm using Windows. I see the part of the tutorial where it says:

Code: Select all

cp stage1+stage2+pad >> floppy.img
I type type that on Cygwin and I get the following error:

Code: Select all

cp: missing destination file operand after 'stage1+stage2+pad+kernel.bin'
Try 'cp --help' for more information
I already have the stage1 and stage2 files on the same directory.

Please tell me how I can make this (.img) file so that I can run the kernel on Bochs Virtual Machine.

Thank You.

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 6:01 pm
by tantrikwizard

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 6:11 pm
by VolTeK
i finnaly got it to work, but win image will let you choose a boot sector. my winimage keeps deleting it self

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 6:22 pm
by Troy Martin
Whaa??

What do you mean, keeps deleting itself?

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 10:20 pm
by dayron
Can anyone explain to me how they personally make their (.img) file of their kernel.bin?

Thank you very much.

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 10:26 pm
by Troy Martin
I created an empty 1440 KB file named tbos.img, opened it in Virtual Floppy Drive, formatted it with FAT12, put my bootloader in place of the DOS bootloader that the floppy is formatted with, and then I can copy my kernel to the floppy with Windows whenever I build it.

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 10:37 pm
by dayron
Troy Martin wrote:I created an empty 1440 KB file named tbos.img, opened it in Virtual Floppy Drive, formatted it with FAT12, put my bootloader in place of the DOS bootloader that the floppy is formatted with, and then I can copy my kernel to the floppy with Windows whenever I build it.
Hello, Troy Martin,

could you please explain to me how can I do that?
Thank you very much.

Re: How can I make a floppy immage of my kernel?

Posted: Fri Nov 28, 2008 11:14 pm
by Troy Martin

Re: How can I make a floppy immage of my kernel?

Posted: Sat Nov 29, 2008 12:21 am
by dayron
Troy Martin wrote:http://wiki.osdev.org/Category:Disk_Image_Utilities
How exactly do you do it? I visited the link you posted but I don't know about those programs. I have tried them all and still can't figure out how to make the (.img) file of my kernel.

thank you.

Re: How can I make a floppy immage of my kernel?

Posted: Sat Nov 29, 2008 2:12 am
by egos