[ILUG] Extracting Kernel Config Info

Kenn Humborg kenn at bluetree.ie
Tue Jan 22 15:31:04 GMT 2002


> Does anyone know if there's a way to 'extract' the kernel config 
> used for a
> running (or compiled) kernel ?
> 
> I've an older kernel here that I want to replicate with one or two mods,
> only I'm not entirely sure what was compiled in to begin with ... 
> (came with
> smoothwall, if nobody else noticed my original question yesterday)
> 
> Essentially I need to build in basic SCSI disk support to the supplied
> smoothwall kernel (2.2.19) so I can install onto a SCSI hard disk ...
> 
> Any suggestions ?

Surely a kernel compiled with a certain .config is a derived
work of the GPL-ed kernel.  And the .config should be considered
a "source" file.  Therefore smoothwall are obliged to provide
you with their .config.  So it must be there...

As an aside, I believe the new kbuild/CML2 stuff will have the
infrastructure available to implement /proc/config which would
let the kernel dump out its own config.

Another way might be to run strings on the (uncompressed) vmlinux
binary.  Probably won't give you the level of detail that you
need, though.

Later,
Kenn






More information about the ILUG mailing list