Page 2 of 2

Re: Bootloader

Posted: Sat Oct 09, 2010 8:57 pm
by shikhin
Uhm.... So how to convert the Kernel into ELF format. Any clues? Or am I wrong and something else needs to be done?

Re: Bootloader

Posted: Sat Oct 09, 2010 9:04 pm
by quanganht
More readings, please. You can simply add a multiboot header to your binary file.

Re: Bootloader

Posted: Sat Oct 09, 2010 9:26 pm
by shikhin
And how to do that. Can you explain a bit thoroughly, or tell me what shall I read? And further more, what is a multi boot header?
Can you explain this to me?

Re: Bootloader

Posted: Sun Oct 10, 2010 3:56 am
by JamesM
http://wiki.osdev.org/GRUB # See the line "See the [[multiboot specification]] if you..."
http://www.jamesmolloy.co.uk/tutorial_h ... nesis.html # Tells you what the multiboot header is about.

Re: Bootloader

Posted: Sun Oct 10, 2010 5:07 am
by Combuster
Shikhin wrote:What is a multi boot header?
Have you even bothered to use google?

Re: Bootloader

Posted: Sun Oct 10, 2010 8:19 am
by shikhin
Yeah! I found everything needed and guess now this thread is OFFICIALLY SOLVED.

Re: Bootloader

Posted: Tue Oct 12, 2010 10:49 pm
by CelestialMechanic
Shikhin,

In looking at the code for your boot sector, two errors leaped out at me.

1) You have 0xf8 for the media byte in the BPB (boot parameter block). The value 0xf8 is for hard drives. The rest of the values in the BPB are those for a 3.5 inch 1440K floppy. The value should be 0xf0.

2) You have the file name in lower case, "krnldr sys". FAT only recognizes upper case. When the file is copied to a FAT12/16 volume the name is converted to upper case, "KRNLDR SYS". If you change the case on the string ImageName it will match the case on the floppy and then you won't get a "file not found" error.

I hope this helps.