From: Werner Almesberger <wa@almesberger.net>
To: Jeff Chua <jchua@fedex.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] initrd >24MB corruption (fwd)
Date: Sat, 14 Sep 2002 00:02:00 -0300 [thread overview]
Message-ID: <20020914000159.A3352@almesberger.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0208271038450.25059-100000@boston.corp.fedex.com>; from jchua@fedex.com on Tue, Aug 27, 2002 at 10:49:13AM +0800
Jeff Chua wrote:
> Who else can help with this problem? I tried to write to Werner
> Almesberger <werner.almesberger@epfl.ch> (no such email)
That one is gone. wa@almesberger.net should work for the
forseeable future.
> I'm suspecting that somehow part of initrd is being corrupted during boot
The initrd is typically loaded below 16 MB. Your bzImage
uncompresses after the loaded kernel, so if your kernel is, say,
3 MB and compresses to 1 MB (that's a reasonably lean 2.4.19 kernel),
up to about 4.5 MB are overwritten already when getting the kernel
in place. A 6 MB/2 MB kernel would happy scribble over ~8.5 MB.
See also figures 7 and 8 of
http://www.almesberger.net/cv/papers/ols2k-9.ps
> ... does that mean the gzipped fs can only be <8MB? That could explain why
> the ram6MB.gz worked and ram8MB.gz doesn't.
The 8 MB mapping affects mainly the maximum kernel size and
shouldn't matter in this case. If you want to try anyway, you
should be able to increase the mapping by pushing
arch/i386/kernel/head.S:empty_zero_page down by a page, and
adjusting the .org below too.
So, assuming the problem is indeed the kernel overwriting initrd,
there are three things you can do to avoid this:
- use a smaller initrd (they were never meant to be quite
*that* big anyway :-)
- make your kernel smaller
- get your boot loader to load the initrd at a higher
address, or find a boot loader that does (no, I don't
know which ones do, and whether they do this reliably.
Section 2.5 of my booting paper (see above) explains
some potential pitfalls.)
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
next prev parent reply other threads:[~2002-09-14 2:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-27 2:49 [BUG] initrd >24MB corruption (fwd) Jeff Chua
2002-08-27 2:56 ` Erik Andersen
2002-08-27 8:55 ` Jeff Chua
2002-08-27 9:30 ` Russell King
2002-08-28 5:37 ` Jeff Chua
2002-08-28 5:59 ` Jeff Chua
2002-08-30 7:12 ` Jeff Chua
2002-09-14 3:02 ` Werner Almesberger [this message]
2002-09-14 3:35 ` Jeff Chua
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020914000159.A3352@almesberger.net \
--to=wa@almesberger.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jchua@fedex.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox