GRUB information required.
Posted: Sun Jan 16, 2011 9:27 pm
Hi,
I was trying to load a kernel in a flat binary image which is multiboot complaint. The GRUB manual says that it being a multiboot compliant boot loader should be able to load a kernel either in ELF format or having the multiboot header.
I set bit 16, and filled in the required offsets using the linker script for the addresses needed in offsets 12-24.
I'm not able to load the kernel though. Is it that i need it to be in elf format?
Secondly, i don't have a file system yet so i'm specifying the kernel (hd0)+10 (is it correct?) and it says executable format not recognized. The executable is only 4KB in size so i'm loading 5Kbs i think with this command for the kernel right?
Any help guys please... i'm so desperate now can't find this information and wasted almost 3 days trying to fix this!
Thanks for reading this.
I was trying to load a kernel in a flat binary image which is multiboot complaint. The GRUB manual says that it being a multiboot compliant boot loader should be able to load a kernel either in ELF format or having the multiboot header.
I set bit 16, and filled in the required offsets using the linker script for the addresses needed in offsets 12-24.
I'm not able to load the kernel though. Is it that i need it to be in elf format?
Secondly, i don't have a file system yet so i'm specifying the kernel (hd0)+10 (is it correct?) and it says executable format not recognized. The executable is only 4KB in size so i'm loading 5Kbs i think with this command for the kernel right?
Any help guys please... i'm so desperate now can't find this information and wasted almost 3 days trying to fix this!
Thanks for reading this.