public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Opdenacker <michael-lists@free-electrons.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: How to extract the cpio archive in the kernel image?
Date: Wed, 31 May 2006 23:16:17 +0200	[thread overview]
Message-ID: <447E07A1.1030601@free-electrons.com> (raw)

Hello,

Does anyone know a simple, command line way to extract the cpio archive 
embedded in a (compressed) kernel image?

That would be useful to modify the initramfs included in the kernel 
image even if one only has the kernel binary and sources, but not the 
initramfs sources.

Of course, it is always possible to get the initramfs contents from the 
running kernel and dump them somewhere, or to write a custom program for 
this purpose (accessing and uncompressing the embedded cpio archive as 
the kernel does), but it would be nice it there was a simpler way with 
regular Unix commands (I guess involving gunzip and cpio).

In a nutshell, how to open the penguin and still get the golden egg? ;-)

    Cheers,

    Michael.  

-- 
Michael Opdenacker, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1000 pages!)


                 reply	other threads:[~2006-05-31 21:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=447E07A1.1030601@free-electrons.com \
    --to=michael-lists@free-electrons.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