Page 1 of 1

Grub is Being mean

Posted: Fri Dec 17, 2004 3:36 pm
by keeper
I have programmed a kernel that does basic math functions ans a test. but grub will not load the kernel. why is this? my kernel worx under a homemade bootloader. i tried two versions of grub, but neither worked.

is it my pc? floppy? mother board? i am totally clueless, any help would be greatly helpfull.(cuz i dont want to design an entire bootloader cuz grub is having a bad day.)

Re:Grub is Being mean

Posted: Fri Dec 17, 2004 3:44 pm
by distantvoices
have you included the multiboot header to the very beginning of your kernel image (i think it has to be in the first kB of the kernel or so -- better look it up)?

Have you set the correct flags/values in the multiboot header? Look at the OSFAQ - there's an example kernel thing showing how it should look like, grace a solar. :-)

Re:Grub is Being mean

Posted: Fri Dec 17, 2004 5:11 pm
by keeper
...jesz...byond man youv answered all my questions so far...thanx dude....you asome!

ok ill try the multi boot header.

Re:Grub is Being mean

Posted: Fri Dec 17, 2004 9:42 pm
by AR
It must be in the first 8KBs.
You can find the multiboot specification here: http://www.gnu.org/software/grub/manual ... iboot.html