Page 1 of 1

[SOLVED]"grub-mkimage: error: Decompressor is too big" Help?

Posted: Mon Mar 24, 2014 4:16 pm
by Ralakimus
I've made a cross compiler using the wiki's tutorial and I've followed the Bare Bones tutorial and everything went well, until I had to use grub-mkrescue. Whenever I try to build the ISO, I get a message like this:

Code: Select all

grub-mkimage: error: Decompressor is too big
.
What is causing this error and how can I fix it?

EDIT: It may help to know that I am using Windows with cygwin and GRUB 2.00, you'll probably need to know I am using GCC 4.8.2.

Re: "grub-mkimage: error: Decompressor is too big" Help?

Posted: Mon Mar 24, 2014 6:34 pm
by Bender
Yeah, it seems to be a Cygwin related problem.
There was a discussion on the GNU Lists not long ago.
Maybe you'll find it useful.
http://lists.gnu.org/archive/html/grub- ... 00338.html

Re: "grub-mkimage: error: Decompressor is too big" Help?

Posted: Tue Mar 25, 2014 6:30 am
by Ralakimus
I've found the problem: lzma_decompress.img. The last $13 bytes causes the error. But when I delete it, the ISO builds, but when I test it, it crashes. What should I do to those bytes?

Re: "grub-mkimage: error: Decompressor is too big" Help?

Posted: Tue Mar 25, 2014 10:37 am
by Ralakimus
Now I tested it on QEMU, I get this:

Code: Select all

could not read the boot disk
I still have the $13 bytes deleted (and backed up), but what should I do to fix it? TARGET_CFLAGS didn't do anything, and I know the bytes are involved, because it causes the decompressor to be too big. But, what should I do involving the bytes?

Re: "grub-mkimage: error: Decompressor is too big" Help?

Posted: Wed Mar 26, 2014 9:13 am
by Ralakimus
I found a way around this. First I normally build my BIN file, then I move the BIN file into Ubuntu and use the built in grub-mkrescue to make the ISO. It's a slower process, but it works.