Problems with grub

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
booe

Problems with grub

Post by booe »

Before yesterday, i used to boot my kernel with grub and it used to work. But when i have added to my kernel a few code, it stopped to work. Grub now says: "invalid or unsupported executable format". Can you help me?

(sorry or the bad english)
Dangamoose

RE:Problems with grub

Post by Dangamoose »

Basically, since you edited your kernel, you've changed it in some way so that Grub can not recognise the format, or you've made it an invalid format.

The multiboot header info in your kernel must be within the first 8kb of your kernel, if its not, Grub wont boot.
I think other things apply such as this header needs to be 4b aligned too.
If you've changed the file format but not changed the spec info for the header. e.g. elf files dont require some header info, if you started with an elf file and have decided to change to a.out or another format then you need to add some info to the header.

http://www.mcc.ac.uk/Documentation/grub ... t_toc.html
That url is a spec of the multiboot standard. Check what you have against the requirements.

Danagmoose.
Post Reply