Grub Won't Boot My Kernel
Posted: Sun Jun 19, 2005 6:01 pm
Hello. I got my kernel to compile (I'm referring to the kernel that I have posted here: http://www.mega-tokyo.com/forum/index.php?board=1, with some corrections). I installed a cross compiler for gcc and binutils (they're cross-compiled for i586-pc-elf.) However, I was unable to get Grub to boot my kernel. Here is what I did:
1. Compiled my kernel sources using nasm (for the assembly sources) and the gcc crosscompiler. All of them are in the elf binary format.
2. Checked to see if my kernel was multiboot compliant (it is, this is the following report):
3. Placed the resulting kernel binary into a GRUB floppy image.
Every time I try to boot the kernel, though, I get the following message:
Error 13: Invalid or unsupported executable format.
In case you are wondering, I'm using bochs as my tool for booting, and I developing the OS under FreeBSD 5.4. Thanks in advance.
1. Compiled my kernel sources using nasm (for the assembly sources) and the gcc crosscompiler. All of them are in the elf binary format.
2. Checked to see if my kernel was multiboot compliant (it is, this is the following report):
Code: Select all
kernel.bin: The Multiboot header is found at the offset 3997.
kernel.bin: Page alignment is turned on.
kernel.bin: Memory information is turned on.
kernel.bin: Address fields is turned off.
kernel.bin: All checks passed.
Every time I try to boot the kernel, though, I get the following message:
Error 13: Invalid or unsupported executable format.
In case you are wondering, I'm using bochs as my tool for booting, and I developing the OS under FreeBSD 5.4. Thanks in advance.