A simple guide to GRUB 1.98 on Cygwin + Cross Compiler

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.
jbanes
Posts: 12
Joined: Mon Dec 30, 2013 11:54 pm

Re: A simple guide to GRUB 1.98 on Cygwin + Cross Compiler

Post by jbanes »

FYI, the problem appears to have something to do with header sizes being larger than expected. The issue is related to this problem:

http://lists.gnu.org/archive/html/grub- ... 00342.html

If you manage to get past the build of the "something.module.exe" -> "something.mod" file (screwing up the translation from COFF to ELF along the way), you'll find that you get the Decompressor error mentioned in the linked post.

Do this:

Code: Select all

export TARGET_CFLAGS="-Qn"
...and rebuild from a fresh grub-2.00 source directory. That fixed things up for me. I can't speak to Grub-1.98, but I suspect the problem is the same and thus the same solution should work.
Post Reply