scripts/extract-ikconfig only works on uncompressed and CONFIG_KERNEL_GZIP kernels
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?
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 ***
Quoted 3 lines · Randy Dunlap <rdunlap <at> xenotime.net> writes:
Please test the patch from Dick Streefland at
https://bugzilla.kernel.org/show_bug.cgi?id=19852
and report how it works for you.
Works perfectly, thank you! I wonder why it didn't come up at _all_ in Google.
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.
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. :)