public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:21 Knowing what options a kernel was compiled with Jacob Anawalt
@ 2001-01-28  5:06 ` Keith Owens
  2001-01-28  5:13   ` Matthew Pitts
  0 siblings, 1 reply; 12+ messages in thread
From: Keith Owens @ 2001-01-28  5:06 UTC (permalink / raw)
  To: Jacob Anawalt; +Cc: linux-kernel

On Sat, 27 Jan 2001 22:21:41 -0700, 
Jacob Anawalt <anawaltaj@qwest.net> wrote:
>Is there a way to know what options a running kernel was compiled with,
>if you dont have access to the source or configure files it was compiled
>off of?

No.  You have to insist that whoever distributes the kernel binary also
distributes the .config file that it was compiled with.

Don't bother arguing that the kernel should record this info, it has
been discussed before and rejected.  This is a problem for the
distributors, not for the kernel.

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:06 ` Keith Owens
@ 2001-01-28  5:13   ` Matthew Pitts
  2001-01-28  5:29     ` Keith Owens
                       ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Matthew Pitts @ 2001-01-28  5:13 UTC (permalink / raw)
  To: Keith Owens, Jacob Anawalt; +Cc: linux-kernel

On Sun, 28 Jan 2001 16:06:57 +1100
 Keith Owens <kaos@ocs.com.au> wrote:
> On Sat, 27 Jan 2001 22:21:41 -0700, 
> Jacob Anawalt <anawaltaj@qwest.net> wrote:
> >Is there a way to know what options a running kernel was
> compiled with,
> >if you dont have access to the source or configure files
> it was compiled
> >off of?
> 
> No.  You have to insist that whoever distributes the
> kernel binary also
> distributes the .config file that it was compiled with.
> 
> Don't bother arguing that the kernel should record this
> info, it has
> been discussed before and rejected.  This is a problem
> for the
> distributors, not for the kernel.
Keith and Jacob,
Some distributions DO include the config. It may be located
in the /boot dir with a name CONFIG-2.2.10 or similar. I
know that Caldera 2.3 shiped that way(2.4 may also). If you
have the install CDROM, the kernel source install may have
it (e.g. Linux-Mandrake 7.x).

Matthew
mpitts@suite224.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Knowing what options a kernel was compiled with
@ 2001-01-28  5:21 Jacob Anawalt
  2001-01-28  5:06 ` Keith Owens
  0 siblings, 1 reply; 12+ messages in thread
From: Jacob Anawalt @ 2001-01-28  5:21 UTC (permalink / raw)
  To: linux-kernel

Is there a way to know what options a running kernel was compiled with,
if you dont have access to the source or configure files it was compiled
off of?

In particular, I am trying to discover if 'advanced router' and 'equal
cost multi path' options are compiled into RH7 kernel-2.2.16-22. I would
also like to know if there is a way to discover this information for
other settings that do not have a /proc entry or other visible object
(eg modules).

I am not following this list currently, so if you would please include
my email in the replies, I would appreciate it.

tia,
Jacob Anawalt

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:13   ` Matthew Pitts
@ 2001-01-28  5:29     ` Keith Owens
  2001-01-28 12:16       ` Andreas Ehliar
  2001-01-28  5:43     ` Jacob Anawalt
  2001-01-28 10:37     ` Chmouel Boudjnah
  2 siblings, 1 reply; 12+ messages in thread
From: Keith Owens @ 2001-01-28  5:29 UTC (permalink / raw)
  To: Matthew Pitts; +Cc: Jacob Anawalt, linux-kernel

On Sun, 28 Jan 2001 00:13:48 -0500, 
"Matthew Pitts" <mpitts@suite224.net> wrote:
>Some distributions DO include the config. It may be located
>in the /boot dir with a name CONFIG-2.2.10 or similar. I
>know that Caldera 2.3 shiped that way(2.4 may also). If you
>have the install CDROM, the kernel source install may have
>it (e.g. Linux-Mandrake 7.x).

I know that some distributions ship .config but not all do.  A long way
down on my TODO list is "submit a requirement to FHS that .config,
System.map and other kernel related text files must be shipped in
directory <foo>".  I would like <foo> to be /lib/modules/`uname -r`
since that directory is already kernel specific, but we have to handle
kernels without modules and disks with restricted size in /lib.
However that discussion is best held on the FHS/LSB lists, not l-k.

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:13   ` Matthew Pitts
  2001-01-28  5:29     ` Keith Owens
@ 2001-01-28  5:43     ` Jacob Anawalt
  2001-01-28  8:26       ` roger
  2001-01-28 10:37     ` Chmouel Boudjnah
  2 siblings, 1 reply; 12+ messages in thread
From: Jacob Anawalt @ 2001-01-28  5:43 UTC (permalink / raw)
  To: Matthew Pitts, Keith Owens; +Cc: linux-kernel

Matthew and Keith,

Thank you to both of you for your input, info, and quick responses. I
just wanted to make shure there weren't tricks still in the bag that I
hadn't learned about in this area. I'll look for the config file.

Jacob Anawalt

Matthew Pitts wrote:

> On Sun, 28 Jan 2001 16:06:57 +1100
>  Keith Owens <kaos@ocs.com.au> wrote:
> > On Sat, 27 Jan 2001 22:21:41 -0700,
> > Jacob Anawalt <anawaltaj@qwest.net> wrote:
> > >Is there a way to know what options a running kernel was
> > compiled with,
> > >if you dont have access to the source or configure files
> > it was compiled
> > >off of?
> >
> > No.  You have to insist that whoever distributes the
> > kernel binary also
> > distributes the .config file that it was compiled with.
> >
> > Don't bother arguing that the kernel should record this
> > info, it has
> > been discussed before and rejected.  This is a problem
> > for the
> > distributors, not for the kernel.
> Keith and Jacob,
> Some distributions DO include the config. It may be located
> in the /boot dir with a name CONFIG-2.2.10 or similar. I
> know that Caldera 2.3 shiped that way(2.4 may also). If you
> have the install CDROM, the kernel source install may have
> it (e.g. Linux-Mandrake 7.x).
>
> Matthew
> mpitts@suite224.net

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:43     ` Jacob Anawalt
@ 2001-01-28  8:26       ` roger
  0 siblings, 0 replies; 12+ messages in thread
From: roger @ 2001-01-28  8:26 UTC (permalink / raw)
  To: anawaltaj; +Cc: mpitts, kaos, linux-kernel


Well, even if the config file hasn't been included you can
presumably _write_ the config file from the kernel setup
program...and that is _probably_ the configuration of the
kernel you are running n'est-ce-pas?

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:13   ` Matthew Pitts
  2001-01-28  5:29     ` Keith Owens
  2001-01-28  5:43     ` Jacob Anawalt
@ 2001-01-28 10:37     ` Chmouel Boudjnah
  2 siblings, 0 replies; 12+ messages in thread
From: Chmouel Boudjnah @ 2001-01-28 10:37 UTC (permalink / raw)
  To: Matthew Pitts; +Cc: Keith Owens, Jacob Anawalt, linux-kernel

"Matthew Pitts" <mpitts@suite224.net> writes:

> Some distributions DO include the config. It may be located
> in the /boot dir with a name CONFIG-2.2.10 or similar. I
> know that Caldera 2.3 shiped that way(2.4 may also). If you
> have the install CDROM, the kernel source install may have
> it (e.g. Linux-Mandrake 7.x).

no in Mandrake 7.x it shipped with the documentation of the kernel
package.

-- 
MandrakeSoft Inc                     http://www.chmouel.org
                      --Chmouel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-28  5:29     ` Keith Owens
@ 2001-01-28 12:16       ` Andreas Ehliar
  0 siblings, 0 replies; 12+ messages in thread
From: Andreas Ehliar @ 2001-01-28 12:16 UTC (permalink / raw)
  To: Keith Owens; +Cc: linux-kernel

On Sun, Jan 28, 2001 at 04:29:06PM +1100, Keith Owens wrote:
> On Sun, 28 Jan 2001 00:13:48 -0500, 
> "Matthew Pitts" <mpitts@suite224.net> wrote:
> >Some distributions DO include the config. It may be located
> >in the /boot dir with a name CONFIG-2.2.10 or similar. I
> >know that Caldera 2.3 shiped that way(2.4 may also). If you
> >have the install CDROM, the kernel source install may have
> >it (e.g. Linux-Mandrake 7.x).
> 
> I know that some distributions ship .config but not all do.  A long way
> down on my TODO list is "submit a requirement to FHS that .config,
> System.map and other kernel related text files must be shipped in
> directory <foo>".  I would like <foo> to be /lib/modules/`uname -r`
> since that directory is already kernel specific, but we have to handle
> kernels without modules and disks with restricted size in /lib.
> However that discussion is best held on the FHS/LSB lists, not l-k.

Speaking of .config, wouldn't it make sense to add some comments to the
beginning of that file detailing at least the kernel version this config
file was generated for?
Other information like the time the file was generated could be useful as well.

regards
Andreas Ehliar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: Knowing what options a kernel was compiled with
@ 2001-01-29 20:41 Torrey Hoffman
  2001-01-29 20:56 ` mirabilos
  2001-01-30  1:00 ` Keith Owens
  0 siblings, 2 replies; 12+ messages in thread
From: Torrey Hoffman @ 2001-01-29 20:41 UTC (permalink / raw)
  To: 'Keith Owens', Matthew Pitts; +Cc: Jacob Anawalt, linux-kernel

Should someone submit a patch to copy the .config to a standard location as
part of "make install" or "make modules_install"? If included in the
official sources, that good example would encourage the distribution
maintainers do the same. 

Torrey Hoffman


>-----Original Message-----
>From: Keith Owens [mailto:kaos@ocs.com.au]
>[...]
>I know that some distributions ship .config but not all do.  A long way
>down on my TODO list is "submit a requirement to FHS that .config,
>System.map and other kernel related text files must be shipped in
>directory <foo>". 
>[...]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-29 20:41 Torrey Hoffman
@ 2001-01-29 20:56 ` mirabilos
  2001-01-29 21:01   ` Ville Herva
  2001-01-30  1:00 ` Keith Owens
  1 sibling, 1 reply; 12+ messages in thread
From: mirabilos @ 2001-01-29 20:56 UTC (permalink / raw)
  To: Torrey Hoffman, 'Keith Owens', Matthew Pitts
  Cc: Jacob Anawalt, linux-kernel

From: "Torrey Hoffman" <torrey.hoffman@myrio.com>
> Should someone submit a patch to copy the .config to a standard location as
> part of "make install" or "make modules_install"? If included in the
> official sources, that good example would encourage the distribution
> maintainers do the same. 
> 
> Torrey Hoffman

I dont do make install because it could do something unwanted.
modules_install isn't good either because some prefer monolithic
kernels. But split-include could do the job, as it's called as of 2.2
for each compile.

-mirabilos

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12+(proprietary extensions) # Updated:20010129 nick=mirabilos
GO/S d@ s--: a--- C++ UL++++ P--- L++$(-^lang) E----(joe) W+(++) loc=.de
N? o K? w-(+$) O+>+++ M-- V- PS+++@ PE(--) Y+ PGP t+ 5? X+ R+ !tv(silly)
b++++* DI- D+ G(>++) e(^age) h! r(-) y--(!y+) /* lang=NASM;GW-BASIC;C */
------END GEEK CODE BLOCK------


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-29 20:56 ` mirabilos
@ 2001-01-29 21:01   ` Ville Herva
  0 siblings, 0 replies; 12+ messages in thread
From: Ville Herva @ 2001-01-29 21:01 UTC (permalink / raw)
  To: linux-kernel

On Mon, Jan 29, 2001 at 08:56:12PM -0000, you [mirabilos] claimed:
> From: "Torrey Hoffman" <torrey.hoffman@myrio.com>
> > Should someone submit a patch to copy the .config to a standard location as
> > part of "make install" or "make modules_install"? If included in the
> > official sources, that good example would encourage the distribution
> > maintainers do the same. 

I find this neat:

http://www.it.uc3m.es/~ptb/proconfig/

It created /proc/config entry with obvious functionality, but wastes
pretty little ram.


-- 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
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Knowing what options a kernel was compiled with
  2001-01-29 20:41 Torrey Hoffman
  2001-01-29 20:56 ` mirabilos
@ 2001-01-30  1:00 ` Keith Owens
  1 sibling, 0 replies; 12+ messages in thread
From: Keith Owens @ 2001-01-30  1:00 UTC (permalink / raw)
  To: Torrey Hoffman; +Cc: Matthew Pitts, Jacob Anawalt, linux-kernel

On Mon, 29 Jan 2001 12:41:31 -0800, 
Torrey Hoffman <torrey.hoffman@myrio.com> wrote:
>Should someone submit a patch to copy the .config to a standard location as
>part of "make install" or "make modules_install"? If included in the
>official sources, that good example would encourage the distribution
>maintainers do the same. 

Not until FHS decide what that standard location is.  An entry in FHS
will carry far more weight with distributors than a kernel Makefile
patch.

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-01-30  1:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-28  5:21 Knowing what options a kernel was compiled with Jacob Anawalt
2001-01-28  5:06 ` Keith Owens
2001-01-28  5:13   ` Matthew Pitts
2001-01-28  5:29     ` Keith Owens
2001-01-28 12:16       ` Andreas Ehliar
2001-01-28  5:43     ` Jacob Anawalt
2001-01-28  8:26       ` roger
2001-01-28 10:37     ` Chmouel Boudjnah
  -- strict thread matches above, loose matches on Subject: below --
2001-01-29 20:41 Torrey Hoffman
2001-01-29 20:56 ` mirabilos
2001-01-29 21:01   ` Ville Herva
2001-01-30  1:00 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox