SV: Determining config options?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






Well, I would think it is possible... but, definitly not trivial.
Using the different strings found in the kernel and/or System.map and
comparing them to the names found in the source it might be possible...

You would also need to know where the modules are stored (ie.
/lib/modules/`uname -r`/) too find out what was configured as modules.

Even then, some options that was set might be forgotten...


Christian Vik
(yes, I am a kernel newbie...)



-----Opprinnelig melding-----
Fra: kernelnewbies-bounce@nl.linux.org
[mailto:kernelnewbies-bounce@nl.linux.org]Pa vegne av Seth Arnold
Sendt: 24. juni 2002 07:16
Til: 'kernelnewbies@nl.linux.org'
Emne: Re: Determining config options?


On Mon, Jun 24, 2002 at 03:02:19PM +1000, Steven Micallef wrote:
> It is possible to determine the configuration options a kernel was
compiled
> with purely from the kernel binary itself? Ideally I would like to
find this
> out without booting the kernel, however any suggestions would be
helpful.

If you got the kernel from a vendor, chances are good the source RPM or
source DEB has their default .config file located within that you can
use as a starting point for your own kernel .config files.

There is no mechanism to generate a .config from a kernel binary.

-- 
http://immunix.org/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux