Messages in this thread | | | Date | Fri, 19 Aug 2011 09:52:29 +0200 | Subject | Re: [PATCH v3] scripts: add extract-vmlinux | From | Corentin Chary <> |
| |
On Fri, Aug 19, 2011 at 8:51 AM, Ian Campbell <ijc@hellion.org.uk> wrote: > On Tue, 2011-08-16 at 10:46 +0200, Corentin Chary wrote: >> This script can be used to extract vmlinux from a compressed >> kernel image (bzImage, etc..). It's inspired from (a subset of) >> extract-ikconfig. > > FWIW I wrote the attached way back when, it uses the payload_* fields in > the bzImage to find the payload rather than scanning (these are present > in bzImages from somewhere in the mid 2.6.2x range). I'd be happy to > license it under the GPLv2 if that is helpful.
I think it's good to know that this code exist, but it's better to keep the current code that's both simple and stupid because I'd really want to avoid implemeting a specific method for bzImages if the generic one is solid enought. The current method has the great advantage of being esasy to port to other formats.
>> It's something a lot of people have been looking for (mainly >> people with xen < 4 that doesn't support bzImages at all). > > xen 3.4 does, doesn't it (at least the tip of 3.4-testing.hg does)? And > I thought e.g. RHEL5 (which uses an older base version) had it > backported. Possibly what is missing is support for all the various > compression options.
Well I don't know about RHEL5, but I know that it doesn't work on ubuntu 8.04 (and unfortunatly I'm stuck with one of these servers). But this script can also be used for debuging purpose, or anything else needing the raw vmlinux.
Thanks for the tips anyway :).
-- Corentin Chary http://xf.iksaif.net
| |