linux-mips
[Top] [All Lists]

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

To: Alexander Clouter <alex@digriz.org.uk>
Subject: Re: [PATCH] MIPS: add support for gzip/bzip2/lzma compressed kernel images
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Mon, 10 Aug 2009 17:11:40 +0800
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=e9XvPoeq4RGWJp1ipOtu6w/j86h/LTqn40HKPS/7a/w=; b=LgYry5oIhpVZRjx84va1MS/Sthx05HBxxAUJnD+gbHEnC0uhGr/x3EbzP1yMgtnPJS hFIOzNKFZ1YDQFKpFUK2oSZgj4EamuxqDEOf8uEvkXzL0x5gEEYW8VbCPiLKKkokgZOI AS0N49GWMb4hvhldPwRLgDbL01Oxjf75z/Y9A=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=F9yInROhBHxZ9XbHXfnghE8x8KBbgEoTA/2+LbE4JQdylgH37s10nqiO7s2tdZqcUZ t9JDooGnjtQAJrKbW/v2HAkJSPtK4cnsRcy5rLXt0LIoBm4MjsJM7ahlINewZooImDod ptyQV0m36eErghBeb9cOPdpEAV8ZlpDfkdrPY=
In-reply-to: <e4s3l6-dou.ln1@chipmunk.wormnet.eu>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1249757707-8876-1-git-send-email-wuzhangjin@gmail.com> <e4s3l6-dou.ln1@chipmunk.wormnet.eu>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
Hi,

On Sun, 2009-08-09 at 22:36 +0100, Alexander Clouter wrote:
> 
> This has made my AR7[1] based Linksys WAG54Gv2 (16MB RAM and 4MB flash, 
> limited to a 768kB kernel) useful, finally...thanks!
> > 
> I got it working (LZMA kernel) however you have hardcoded a lot of bits 
> in there.  It looks to my uneducated eye most of the issues lie in that 
> getting a suitable PORT(x), KERNEL_START, KERNEL_SIZE, FREE_MEM_START 
> and FREE_MEM_END is non-trivial on the MIPS platform currently; 
> probably because of the lack of a generic lzma/gzip/bzip2 framework to 
> be used with.
> 
> For me I used:
>   #define FREE_MEM_START CKSEG0ADDR(0x94a00000)
>   #define FREE_MEM_END CKSEG0ADDR(0x94f00000)
> 
> I had to replace (you probably should move this from dbg.c to dbg.h):
>   #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset))
> 
> The load address is awkward, but I replaced your 0x8100000 in the 
> Makefile with 0x94400000.
> 
> Now, the big question is how to work this all out at compile time. :)
> 

Thanks very much for your suggestion, just rewritten it and removed
almost all of the hard-coded parts(except the size of the HEAP) and a
new patch was sent out. and this new one _should_ work for the other
MIPS-based machines if not missed something else.

looking forward to your test result on AR7 with the new patch and
welcome to comment to this new E-mail thread: [PATCH -v1] MIPS: add
support for gzip/bzip2/lzma compressed kernel images

> As a side note, I would personally leave the DEBUG non-optional and 
> turned on as it all disappears at runtime anyway, but I'm no kernel 
> developer :)

ooh, in reality, I'm looking forward to the comment of Ralf and somebody
else. to my point of view, this _debug_ interface is only need to help
the developers of the other MIPS variants ensure this patch work for
them.

Thanks & Regards,
Wu Zhangjin


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