How can I make a floppy immage of my kernel?

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
dayron
Posts: 7
Joined: Fri Nov 28, 2008 2:38 pm

How can I make a floppy immage of my kernel?

Post 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.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

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

Post by VolTeK »

i finnaly got it to work, but win image will let you choose a boot sector. my winimage keeps deleting it self
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

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

Post by Troy Martin »

Whaa??

What do you mean, keeps deleting itself?
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
dayron
Posts: 7
Joined: Fri Nov 28, 2008 2:38 pm

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

Post by dayron »

Can anyone explain to me how they personally make their (.img) file of their kernel.bin?

Thank you very much.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

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

Post 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.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
dayron
Posts: 7
Joined: Fri Nov 28, 2008 2:38 pm

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

Post 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.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

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

Post by Troy Martin »

Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
dayron
Posts: 7
Joined: Fri Nov 28, 2008 2:38 pm

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

Post 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.
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

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

Post by egos »

If you have seen bad English in my words, tell me what's wrong, please.
Post Reply