All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Ian Campbell <ijc@hellion.org.uk>
Cc: Martin Schlemmer <Martin.Schlemmer@nwu.ac.za>,
	linux-kernel@vger.kernel.org
Subject: Re: Initramfs from existing vmlinuz
Date: Mon, 5 Jan 2009 12:47:30 +0100	[thread overview]
Message-ID: <20090105114730.GD3268@1wt.eu> (raw)
In-Reply-To: <1231153946.2648.49.camel@zakaz.uk.xensource.com>

On Mon, Jan 05, 2009 at 11:12:26AM +0000, Ian Campbell wrote:
> On Wed, 2008-12-24 at 00:34 +0100, Willy Tarreau wrote:
> > You first have to extract and uncompress the ELF image from vmlinuz.
> > For this, look for the gzip signature 1F 8B 08 in your vmlinuz, and
> > feed all data starting from this point to zcat.
> 
> Since v2.6.26 (I think, it was v2.08 of the x86 bzImage format anyhow,
> which was the same point the payload became ELF formatted) you can find
> it directly using the payload_offset and payload_length fields in the
> bzImage header. Attached bzexplode.c demonstrates this. e.g. "bzexplode
> vmlinuz | zcat > vmlinux.elf"

Thanks Ian.

Indeed, I'm sure this will be useful from time to time!

Cheers,
Willy


      reply	other threads:[~2009-01-05 11:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23 22:28 Initramfs from existing vmlinuz Martin Schlemmer
2008-12-23 23:34 ` Willy Tarreau
2008-12-24 11:37   ` Martin Schlemmer
2008-12-25 17:55     ` Martin Schlemmer
2008-12-25 18:17     ` Initramfs from existing vmlinuz (#2) Martin Schlemmer
2009-01-05 11:12   ` Initramfs from existing vmlinuz Ian Campbell
2009-01-05 11:47     ` Willy Tarreau [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=20090105114730.GD3268@1wt.eu \
    --to=w@1wt.eu \
    --cc=Martin.Schlemmer@nwu.ac.za \
    --cc=ijc@hellion.org.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.