Page 1 of 1
[Solved] kernel.bin->floppy img with GRUB
Posted: Sat Nov 06, 2010 10:54 am
by LegendDairy
Sorry for this nooby question, I am new to all this but please be patient
.
I was reading this.(
http://www.osdever.net/tutorials/brans- ... t-tutorial ) and at the end they link it to a kernel.bin, but they don't explain how they convert that to a nice floppy.img with GRUB. I've seen some ways but they all involve a real floppy drive which I don't have anymore
. Is there a way to make that img without putting it directly on a real floppy.
I'm working on Linux(Ubuntu)
I'm using Qemu to emulate.
Ty.
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sat Nov 06, 2010 5:47 pm
by thepowersgang
Since you are using ubuntu, you can use mtools to manipulate the disk image.
You will want to create a 1440KiB image, format it as FAT and install GrUB on it.
Then you can either loopback mount the image, or use mtools to copy your kernel to it
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sun Nov 07, 2010 1:55 am
by egos
Replace kernel.bin and compile floppy.asc by fasm.
GrubOnFloppy.zip
GrubOnFloppy-198.zip
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sun Nov 07, 2010 3:36 am
by LegendDairy
Thanks but 1 last question what is the command form fasm with that floppy.asc file?And could I use nasm or should i install fasm?
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sun Nov 07, 2010 4:17 am
by egos
Text of floppy.asc is fasm specific. Use fasm.
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sun Nov 07, 2010 4:58 am
by LegendDairy
oke sorry but how do I install fasm in ubuntu???
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sun Nov 07, 2010 5:32 am
by egos
Unpack executable file from distribution package. I think that's enough
Re: kernel.bin->floppy img with GRUB(Bran's Kernel Developme
Posted: Sun Nov 07, 2010 5:36 am
by LegendDairy
NVM after a long time of google'ing I found a deb file to install ty for everything
If someone is interested: here's the link to the "fasm.deb" file:
http://code.google.com/p/fasmdeb/downlo ... b&can=2&q=