Re: How to check the kernel compile options ?

From: Ville Herva (vherva@niksula.hut.fi)
Date: Tue Feb 12 2002 - 17:10:26 EST


On Tue, Feb 12, 2002 at 02:06:24PM -0700, you [Andreas Dilger] wrote:
>
> You can also extract it from an uncompressed kernel (vmlinux) or the
> module with "strings <file> | grep '[A-Z]*=[ym]$'". It is simple
> enough to search for the gzip magic (1f 8b 08 00 at about 16-18kB)
> in a zImage or bzImage, and then pipe it to gunzip and strings as above.

Such script could live in /usr/src/linux/scripts. The same script could
perhaps extract the version string as well. Anybody got a clue how to find
it reliably? Is this reliable

strings /boot/bzImage |
 egrep '^[0-9]+\.[0-9]\.+.*\(.*@.*\).*[0-9]+:[0-9]+:[0-9]+' |
 head -1

-- v --

v@iki.fi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:00:51 EST