From: Jesse Barnes <jesse.barnes@intel.com>
To: linux-ia64@vger.kernel.org
Subject: Re: initrd_size inflation breaks initramfs
Date: Mon, 28 Nov 2005 16:15:31 +0000 [thread overview]
Message-ID: <200511280815.31626.jesse.barnes@intel.com> (raw)
In-Reply-To: <1133159027.6062.98.camel@localhost>
On Sunday, November 27, 2005 10:23 pm, dann frazier wrote:
> hey,
> I've been trying to track down why initramfs seems to be broken on
> ia64 when passed using the initrd= flag. This appears to be due to an
> inflated ia64_boot_param->initrd_size. In my case, initrd_size got
> set to 1957888 (which happens to be a multiple of 4K), when my
> initramfs file is actually 1957415 bytes.
>
> unpack_to_rootfs() expects gunzip() to succeed until it has reached
> the initrd_size. Since it thinks the image is larger than it actually
> is, it runs off the end of the initrd and the initramfs footprinting
> fails. I can get unpack_to_rootfs to succeed by hardcoding my
> initrd_size.
>
> My guess is that this is a bug in elilo.
>
> initrd.c has:
> /* round up to get required number of pages (4KB) */
> initrd->pgcnt = pgcnt = EFI_SIZE_TO_PAGES(size);
>
> initrd->pgcnt is later used to calculate the initrd_size boot param,
> but it is now (size % 4096) bytes too big.
I thought this bug was fixed? I remember Erik J. and I seeing the same
thing, and iirc we corrected elilo and sent the patch upstream. Or is
this a different problem maybe?
Jesse
next prev parent reply other threads:[~2005-11-28 16:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-28 6:23 initrd_size inflation breaks initramfs dann frazier
2005-11-28 9:44 ` Andreas Schwab
2005-11-28 15:57 ` dann frazier
2005-11-28 16:15 ` Jesse Barnes [this message]
2005-11-28 16:24 ` dann frazier
2005-11-28 16:27 ` Matthew Wilcox
2005-11-28 16:28 ` dann frazier
2005-11-28 16:45 ` Brett Johnson
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=200511280815.31626.jesse.barnes@intel.com \
--to=jesse.barnes@intel.com \
--cc=linux-ia64@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