public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Linux-kernel <linux-kernel@vger.kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>, Alain Knaff <alain@knaff.lu>
Subject: Re: initramfs unpacking failed: junk in compressed archive
Date: Fri, 12 Jun 2009 03:56:55 +0400	[thread overview]
Message-ID: <4A3199C7.5030700@msgid.tls.msk.ru> (raw)
In-Reply-To: <4A2CFC51.1040604@msgid.tls.msk.ru>

Replying to my own email, after quite some talks and
debugging between HPA, Alain Knaff and me.

The problem turned out to be in LILO, not in kernel.
LILO loads initrd below 15Mb by default.  But it looks
like starting with 2.6.30 64bits, in my configuration
anyway, the kernel become larger and were overwriting
the initrd area.  LILO has an option now, "large-memory",
to remedy this situation - which in turn cured the issue
for me.

Hopefully newcomers will not hit this trap since most
distributions nowadays switched from lilo to grub or
something else, or with new installs, lilo.conf gets
that 'large-memory' parameter by default.  Because it
wasn't the easiest thing to debug ;)

I used lilo for >10 years and treated it as always
working... Not anymore ;)

By the way, syslinux was a good surprize to me too,
it looks like I'll switch from lilo to extlinux
soon.

Thanks!

/mjt

Michael Tokarev wrote:
> [Cc'd HPA since he touched this code recently]
> 
> My second issue with 2.6.30-rc8, this time without any
> additional patches.
> 
> It fails to decompress gzip-compressed initramfs here, says this
> way before many other things and continues booting, failing down
> the line obviously, but the root cause is already gone off the
> screen (previously it paniced if it were unable to unpack initramfs).
> 
> the key error message is like in $subject.
> 
> I've added a printk right when it sets the above error in 
> unpack_to_rootfs(),
> right after the ckeck for "state != Reset".  The `state' value is 0 there,
> for "Start".
> 
> The kernel is x86-64, machine is AMD x2-64 with 4G RAM.
> The problem does not occur when running in a KVM virtual machine with only
> 512 megs of ram, the same kernel and the same initramfs (so this eliminates
> corrupt initramfs, which also passes `gzip -t' test).
> 
> The same config (mkinitrd/modules/etc) worked for me on every kernel since
> a stone age maybe (early 2.6 series).
> 
> I'll do some more experiments with it later today, hopefully - like
> trying 32bits kernel, reducing amount of memory etc.
> 
> Thanks.
> 
> /mjt
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


      reply	other threads:[~2009-06-11 23:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08 11:56 initramfs unpacking failed: junk in compressed archive Michael Tokarev
2009-06-11 23:56 ` Michael Tokarev [this message]

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=4A3199C7.5030700@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=alain@knaff.lu \
    --cc=hpa@zytor.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