[Top] [All Lists]

Re: [PATCH -v1] MIPS: add support for gzip/bzip2/lzma compressed kernel

To: Wu Zhangjin <>
Subject: Re: [PATCH -v1] MIPS: add support for gzip/bzip2/lzma compressed kernel images
From: Alexander Clouter <>
Date: Sat, 26 Sep 2009 13:33:20 +0100
Cc:, Ralf Baechle <>
In-reply-to: <>
Organization: diGriz
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.5.18 (2008-05-17)

* Wu Zhangjin <> [2009-08-10 16:49:14+0800]:
> This patch will help to generate smaller kernel images for linux-MIPS,
> Here is the effect when using lzma:
> $ ls -sh vmlinux
> 7.1M vmlinux
> $ ls -sh arch/mips/boot/compressed/vmlinuz
> 1.5M arch/mips/boot/compressed/vmlinuz
> Have tested the 32bit kernel on Qemu/Malta and 64bit kernel on FuLoong
> Mini PC. both of them work well.
> and this revision incorporates the feedback from Alexander Clouter
> <>, he helped to test it on AR7[1] based Linksys
> WAG54Gv2 and gave good suggestion on board-independence.
> NOTE: this should work for the other MIPS-based machines, but I have
> used the command bc in the Makefile to calculate the load address of the
> compressed kernel. I'm not sure this is suitable.  perhaps I need to
> rewrite this part in C program or somebody help to simplify the current
> implementation.
Finally Fleabay'ed a replacement WAG54Gv2 to replace the one I 
bricked to try this new patch.

Works perfectly....I finally can cooked more or less vanilla kernels on 
my board now :)

> Signed-off-by: Wu Zhangjin <>
Tested-by: Alexander Clouter <>


Alexander Clouter
.sigmonster says: My computer can beat up your computer.
                                -- Karl Lehenbauer

<Prev in Thread] Current Thread [Next in Thread>