Hola!
I just wanted to check the configuration of a kernel for a pre-built
system. But because I just had the plain kernel image (/boot/vmlinuz)
and I was too lazy to boot it up, I had to find another way to get the
configuration.
Luckily in the kernel sources (kernel.org)
there's a script called [
extract-ikconfig](http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=scripts/extract-ikconfig;hb=HEAD), which does exactly that. The procedure is straight forward:
``` {.lang:sh .decode:true} $ ./linux/scripts/extract-ikconfig -h Usage: extract-ikconfig
$ ./linux/scripts/extract-ikconfig vmlinux >kernel_config $ wc -l kernel_config 1381 kernel_config
And there we go, we have now the needed configuration 'template' and we
can start read / modify the configuration and maybe rebuild the kernel
we want..
I'm not 100% certain, which option in the original kernel configuration
is needed, but I guess the 'CONFIG\_IKCONFIG' is the only one needed. In
my case, both of the values below were enabled, so I can't tell for
sure.
``` {.lang:default .decode:true}
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
Cheers,
Raphi