Skip to contentSkip to conversation

scripts/extract-ikconfig only works on uncompressed and CONFIG_KERNEL_GZIP kernels

DISCUSSION Alex Elsayed 3 participants 5 messages Oct 18, 2010

lore
Share & tools
lore
#0 lore raw

I have a kernel that was compiled with LZMA compression (CONFIG_KERNEL_LZMA). I wish to extract the .config from it without running it, but the script to do so does not support such kernels. How could I go about fixing this, so that the script supports other compression modes than just gzip?

#1 lore raw
Quoted 4 lines · On Mon, 18 Oct 2010 00:48:46 +0000 (UTC) Alex Elsayed wrote:

I have a kernel that was compiled with LZMA compression (CONFIG_KERNEL_LZMA). I wish to extract the .config from it without running it, but the script to do so does not support such kernels. How could I go about fixing this, so that the script supports other compression modes than just gzip?

Please test the patch from Dick Streefland at
https://bugzilla.kernel.org/show_bug.cgi?id=19852
and report how it works for you.

thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#3 lore raw
In reply to Alex Elsayed
Quoted 7 lines · Alex Elsayed <eternaleye <at> gmail.com> writes:

I have a kernel that was compiled with LZMA compression (CONFIG_KERNEL_LZMA). I wish to extract the .config from it without running it, but the script to do so does not support such kernels. How could I go about fixing this, so that the script supports other compression modes than just gzip?

I managed to extract the .config by abusing dd's skip= parameter to try feeding every byte-offset to unlzma, but I am still interested in making the script work with non-gzipped compressed kernels.

#4 lore raw
In reply to Alex Elsayed
Quoted 5 lines · Alex Elsayed

I have a kernel that was compiled with LZMA compression (CONFIG_KERNEL_LZMA). I wish to extract the .config from it without running it, but the script to do so does not support such kernels. How could I go about fixing this, so that the script supports other compression modes than just gzip?

I am not surprised at all, that program looks for gzip signature, which is gzip only apparently. :)