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

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
Ralakimus
Posts: 4
Joined: Mon Mar 24, 2014 4:11 pm
Location: I'm at home

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

Post 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.
Last edited by Ralakimus on Wed Mar 26, 2014 9:13 am, edited 3 times in total.
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

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

Post 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
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
Ralakimus
Posts: 4
Joined: Mon Mar 24, 2014 4:11 pm
Location: I'm at home

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

Post 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?
Ralakimus
Posts: 4
Joined: Mon Mar 24, 2014 4:11 pm
Location: I'm at home

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

Post 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?
Ralakimus
Posts: 4
Joined: Mon Mar 24, 2014 4:11 pm
Location: I'm at home

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

Post 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.
Post Reply