Getting a kernel's .config without running it
Ilya A. Volynets-Evenbakh
ilya at total-knowledge.com
Tue Nov 10 10:02:30 IST 2009
Shachar Shemesh wrote:
> Hi all,
>
> I have a kernel image that was compiled by someone else for a platform
> I don't own. The kernel was (probably) compiled to export its
> configuration parameters via /proc/config.gz. I want to get that file.
>
> The problem is, of course, that I cannot run the kernel.
>
> Does anyone know how I can extract the kernel's config without running it?
>
> Thanks,
> Shachar
>From Kconfig:
│
CONFIG_IKCONFIG:
│
│
│
│ This option enables the complete Linux kernel ".config"
file
│
│ contents to be saved in the kernel. It provides
documentation
│
│ of which kernel options are used in a running kernel or in
an
│
│ on-disk kernel. This information can be extracted from the
kernel
│
│ image file with the script scripts/extract-ikconfig and used
as
│
│ input to rebuild the current kernel or to build another
kernel.
│
│ It can also be extracted from a running kernel by
reading
│
│ /proc/config.gz if enabled
(below).
│
--
Ilya A. Volynets-Evenbakh
http://www.total-knowledge.com
More information about the Linux-il
mailing list