2004-06-03 14:10:43

by Francois Pernet

[permalink] [raw]
Subject: .config question

Hi,
Sorry to not be part of the mailing list and ask question. Please,
could you post any answer (CC) to this question, if relevant ? Many
TIA.

I've got a kernel already installed in my machine (SuSe Pro 9). I would
like to modify something and recompile the kernel. Since it has been
installed from rpm, there is no .config in /usr/src/linux. Is there any
way to create this file from the image and modules, so i do not need to
verify all my config prior to change something ?

Thx


2004-06-03 14:52:55

by Fabian Fenaut

[permalink] [raw]
Subject: Re: .config question

maybe /boot/config-`uname -r` ?

Francois Pernet a ecrit le 03.06.2004 16:10 :

> I've got a kernel already installed in my machine (SuSe Pro 9). I would like
> to modify something and recompile the kernel. Since it has been installed
> from rpm, there is no .config in /usr/src/linux. Is there any way to create
> this file from the image and modules, so i do not need to verify all my
> config prior to change something ?

2004-06-03 14:52:56

by Wolfgang Fritz

[permalink] [raw]
Subject: Re: .config question

Francois Pernet wrote:
> Hi,
> Sorry to not be part of the mailing list and ask question. Please,
> could you post any answer (CC) to this question, if relevant ? Many
> TIA.
>
> I've got a kernel already installed in my machine (SuSe Pro 9). I would

Make sure you have the kernel source package installed. Then read
/usr/src/linux/README.SuSE, especially "How to configure the kernel
sources" and "Where to find configuration files"

Wolfgang

> like to modify something and recompile the kernel. Since it has been
> installed from rpm, there is no .config in /usr/src/linux. Is there any
> way to create this file from the image and modules, so i do not need to
> verify all my config prior to change something ?
>
> Thx
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


2004-06-03 15:24:03

by Daniel Andersen

[permalink] [raw]
Subject: Re: .config question

Francois Pernet wrote:

> I've got a kernel already installed in my machine (SuSe Pro 9). I would
> like to modify something and recompile the kernel. Since it has been
> installed from rpm, there is no .config in /usr/src/linux. Is there any
> way to create this file from the image and modules, so i do not need to
> verify all my config prior to change something ?

Suse Pro 9.1 has a copy of the running kernelconfig in /proc/config.gz.
Type 'zcat /proc/config.gz > /usr/src/linux/.confg' to copy it to your
sourcetree.

Daniel Andersen

2004-06-03 18:19:59

by Klink

[permalink] [raw]
Subject: Re: .config question


Date: Thu, 03 Jun 2004 16:10:09 +0200
From: "Francois Pernet" <[email protected]>

Hi,
Sorry to not be part of the mailing list and ask question. Please,
could you post any answer (CC) to this question, if relevant ? Many
TIA.

Probably show up on the list, otherwise likely to be a silent fix RSN.
I was surprised that it hadn't been posted, spent time making sure
that I could repeat it....but it could still be something in my setup.


I've got a kernel already installed in my machine (SuSe Pro 9). I would
like to modify something and recompile the kernel. Since it has been
installed from rpm, there is no .config in /usr/src/linux. Is there any
way to create this file from the image and modules, so i do not need to
verify all my config prior to change something ?

There is an option in 2.6 to determine the .config that built the
kernel somehow. I've just noticed it while reading 'make xconfig',
but never use it (I don't lose track of my .config files, been doing
that tooo long). Try reading the source for how this is supposed to
work. You might look around a bit, such as in /boot, as many distros
include the config someplace.