linux-mips
[Top] [All Lists]

Re: [PATCH] Probe initrd header only if explicitly specified

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: [PATCH] Probe initrd header only if explicitly specified
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 26 Aug 2008 22:29:07 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <20080826.223457.41872931.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20080826.223457.41872931.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
On Tue, Aug 26, 2008 at 10:34:57PM +0900, Atsushi Nemoto wrote:

> Currently init_initrd() probes initrd header at the last page of
> kernel image, but it is valid only if addinitrd was used.  If
> addinitrd was not used, the area contains garbage so probing there
> might misdetect initrd header (magic number is not strictly robust).
> 
> This patch introduces CONFIG_PROBE_INITRD_HEADER to enable this
> probing explicitly.

Applied though I think the solution isn't quite the most elegant ...

  Ralf

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