Bootloader
Re: Bootloader
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
More readings, please. You can simply add a multiboot header to your binary file.
"Programmers are tools for converting caffeine into code."
Re: Bootloader
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?
Can you explain this to me?
Re: Bootloader
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.
http://www.jamesmolloy.co.uk/tutorial_h ... nesis.html # Tells you what the multiboot header is about.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Bootloader
Have you even bothered to use google?Shikhin wrote:What is a multi boot header?
Re: Bootloader
Yeah! I found everything needed and guess now this thread is OFFICIALLY SOLVED.
-
- Member
- Posts: 52
- Joined: Mon Oct 11, 2010 11:37 pm
- Location: Milwaukee, Wisconsin
Re: Bootloader
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.
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.
Microsoft is over if you want it.