Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. Thankx
Hi, I assume that you would like to add a kernel patch?? If this is the case, then it is much better to use "modprobe", as this will add the the patch to it, without having to recompile your kernel. HTH, Thomas Adam ----- Original Message ----- From: dc@k-net.de To: suse-linux-e@suse.com Sent: Thursday, June 07, 2001 12:52 PM Subject: [SLE] Recompile kernel with old settings Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. Thankx
No, I want to turn on/off a few features. Is it possible to read the current config? I've heard something about a config.gz but am too new to this to be able to tell. With my 6.4 SUSE; when I started the config the options were already answered. Under 7.1 it gives me a blank template. Daryn ----- Original Message ----- From: n6tadam To: dc@k-net.de ; suse-linux-e@suse.com Sent: Wednesday, June 06, 2001 2:09 PM Subject: Re: [SLE] Recompile kernel with old settings Hi, I assume that you would like to add a kernel patch?? If this is the case, then it is much better to use "modprobe", as this will add the the patch to it, without having to recompile your kernel. HTH, Thomas Adam ----- Original Message ----- From: dc@k-net.de To: suse-linux-e@suse.com Sent: Thursday, June 07, 2001 12:52 PM Subject: [SLE] Recompile kernel with old settings Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. Thankx
Hi, I'm sorry for my ignorance with my last reply. I see what you are asking me now :-) It is indeed possible to read your current config options!! If you take a look in the folder "/boot", you should see a file called "vmlinuz.config". If you take a look at this file, using a text editor such as jed or emacs, this should list all your config options from your last built kernel. Now all you have to do, is substitue this configfile for the one contained in you new kernel sources. Unfortunately, I do not know the name of the configfile in your kernel sources off by hand, but it should be fairly obvious. Then all you have to do, is run: make install and your kernel should be installed (with a bit of luck). If I can be of any more help, then do not hesitate to contact me. Kind Regards, Thomas Adam From: dc@k-net.de To: n6tadam ; suse-linux-e@suse.com Sent: Thursday, June 07, 2001 1:16 PM Subject: Re: [SLE] Recompile kernel with old settings No, I want to turn on/off a few features. Is it possible to read the current config? I've heard something about a config.gz but am too new to this to be able to tell. With my 6.4 SUSE; when I started the config the options were already answered. Under 7.1 it gives me a blank template. Daryn ----- Original Message ----- From: n6tadam To: dc@k-net.de ; suse-linux-e@suse.com Sent: Wednesday, June 06, 2001 2:09 PM Subject: Re: [SLE] Recompile kernel with old settings Hi, I assume that you would like to add a kernel patch?? If this is the case, then it is much better to use "modprobe", as this will add the the patch to it, without having to recompile your kernel. HTH, Thomas Adam ----- Original Message ----- From: dc@k-net.de To: suse-linux-e@suse.com Sent: Thursday, June 07, 2001 12:52 PM Subject: [SLE] Recompile kernel with old settings Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. Thankx
* n6tadam
I'm sorry for my ignorance with my last reply. I see what you are asking me now :-) It is indeed possible to read your current config options!! If you take a look in the folder "/boot", you should see a file called "vmlinuz.config". If you take a look at this file, using a
Check whether you're using a 2.2 or a 2.4 kernel for a 2.4 kernel it's called /boot/vmlinuz_2.4.config (or somesuch) Copy this to /usr/src/linux/.config (after making sure that /usr/src/linux points to the correct kernel sources) also copy vmlinuz_24.autoconf.h to /usr/src/linux/include/linux/autoconf.h and vmlinuz_24.version.h to /usr/src/linux/include/linux/version.h
text editor such as jed or emacs, this should list all your config Learn vi .
Vi is available on all Unix flavours, whereas emacs and jed are not. Kind regards, -- Gerhard den Hollander Phone +31-10.280.1515 Global Technical Support Fax +31-10.280.1511 Jason Geosystems BV (When calling please note: we are in GMT+1) gdenhollander@jasongeo.com POBox 1573 visit us at http://www.jasongeo.com 3000 BN Rotterdam JASON.......#1 in Reservoir Characterization The Netherlands This e-mail and any attachment is/are intended solely for the named addressee(s) and may contain information that is confidential and privileged. If you are not the intended recipient, we request that you do not disseminate, forward, distribute or copy this e-mail message. If you have received this e-mail message in error, please notify us immediately by telephone and destroy the original message.
Check whether you're using a 2.2 or a 2.4 kernel for a 2.4 kernel it's called /boot/vmlinuz_2.4.config (or somesuch) Copy this to /usr/src/linux/.config
Good. I want to use the 2.4.
(after making sure that /usr/src/linux points to the correct kernel sources)
Link is correctly set.
also copy vmlinuz_24.autoconf.h to /usr/src/linux/include/linux/autoconf.h and vmlinuz_24.version.h to /usr/src/linux/include/linux/version.h
Good to know.
text editor such as jed or emacs, this should list all your config Learn vi .
Done. Don't know too much about the whole system but I can normally get things to work the way I'd like it. vi is one of the best editors I've ever seen. Thankx also for your assistance. Daryn
Hi! Thankx for the prompt reply. I'll give it a try. Daryn ----- Original Message ----- From: n6tadam To: dc@k-net.de ; suse-linux-e@suse.com Sent: Wednesday, June 06, 2001 2:26 PM Subject: Re: [SLE] Recompile kernel with old settings Hi, I'm sorry for my ignorance with my last reply. I see what you are asking me now :-) It is indeed possible to read your current config options!! If you take a look in the folder "/boot", you should see a file called "vmlinuz.config". If you take a look at this file, using a text editor such as jed or emacs, this should list all your config options from your last built kernel. Now all you have to do, is substitue this configfile for the one contained in you new kernel sources. Unfortunately, I do not know the name of the configfile in your kernel sources off by hand, but it should be fairly obvious. Then all you have to do, is run: make install and your kernel should be installed (with a bit of luck). If I can be of any more help, then do not hesitate to contact me. Kind Regards, Thomas Adam From: dc@k-net.de To: n6tadam ; suse-linux-e@suse.com Sent: Thursday, June 07, 2001 1:16 PM Subject: Re: [SLE] Recompile kernel with old settings No, I want to turn on/off a few features. Is it possible to read the current config? I've heard something about a config.gz but am too new to this to be able to tell. With my 6.4 SUSE; when I started the config the options were already answered. Under 7.1 it gives me a blank template. Daryn ----- Original Message ----- From: n6tadam To: dc@k-net.de ; suse-linux-e@suse.com Sent: Wednesday, June 06, 2001 2:09 PM Subject: Re: [SLE] Recompile kernel with old settings Hi, I assume that you would like to add a kernel patch?? If this is the case, then it is much better to use "modprobe", as this will add the the patch to it, without having to recompile your kernel. HTH, Thomas Adam ----- Original Message ----- From: dc@k-net.de To: suse-linux-e@suse.com Sent: Thursday, June 07, 2001 12:52 PM Subject: [SLE] Recompile kernel with old settings Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. Thankx
You can also run: make cloneconfig Which will make a kernel with the current running configuration using the config.gz in /proc. Cheers, Leah dc@k-net.de (dc@k-net.de) [010606 05:43]: - > Hi! - > - > Thankx for the prompt reply. I'll give it a try. - > - > Daryn - > ----- Original Message ----- - > From: n6tadam - > To: dc@k-net.de ; suse-linux-e@suse.com - > Sent: Wednesday, June 06, 2001 2:26 PM - > Subject: Re: [SLE] Recompile kernel with old settings - > - > - > Hi, - > - > I'm sorry for my ignorance with my last reply. I see what you are asking me now :-) It is indeed possible to read your current config options!! If you take a look in the folder "/boot", you should see a file called "vmlinuz.config". If you take a look at this file, using a text editor such as jed or emacs, this should list all your config options from your last built kernel. - > - > Now all you have to do, is substitue this configfile for the one contained in you new kernel sources. Unfortunately, I do not know the name of the configfile in your kernel sources off by hand, but it should be fairly obvious. - > - > Then all you have to do, is run: - > - > make install - > - > and your kernel should be installed (with a bit of luck). - > - > If I can be of any more help, then do not hesitate to contact me. - > - > Kind Regards, - > - > Thomas Adam - > - > - > From: dc@k-net.de - > To: n6tadam ; suse-linux-e@suse.com - > Sent: Thursday, June 07, 2001 1:16 PM - > Subject: Re: [SLE] Recompile kernel with old settings - > - > - > No, I want to turn on/off a few features. Is it possible to read the current config? I've heard something about a config.gz but am too new to this to be able to tell. With my 6.4 SUSE; when I started the config the options were already answered. Under 7.1 it gives me a blank template. - > - > Daryn - > ----- Original Message ----- - > From: n6tadam - > To: dc@k-net.de ; suse-linux-e@suse.com - > Sent: Wednesday, June 06, 2001 2:09 PM - > Subject: Re: [SLE] Recompile kernel with old settings - > - > - > Hi, - > - > I assume that you would like to add a kernel patch?? If this is the case, then it is much better to use "modprobe", as this will add the the patch to it, without having to recompile your kernel. - > - > HTH, - > - > Thomas Adam - > ----- Original Message ----- - > From: dc@k-net.de - > To: suse-linux-e@suse.com - > Sent: Thursday, June 07, 2001 12:52 PM - > Subject: [SLE] Recompile kernel with old settings - > - > - > Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. - > - > Thankx - > I can't believe it's not UNIX!!! ------------------------------------------------------------ Leah Cunningham | PPC QA, Business Support & www.heinous.org | QA & Linux geek, et al.
I'm not certain I understand what you mean by "make changes during that call"? I usually use it like so: make cloneconfig make menuconfig (to make any changes to the cloneconfig) Cheers, Leah dc@k-net.de (dc@k-net.de) [010606 07:21]: - > - > > You can also run: - > > - > > make cloneconfig - > > - > I'm not so informed, but isn't it so that you cannot make changes during - > that call. As far as I remember it is to be used after patching, for example - > for an Oracle installation. - > - > Daryn I can't believe it's not UNIX!!! ------------------------------------------------------------ Leah Cunningham | PPC QA, Business Support & www.heinous.org | QA & Linux geek, et al.
I usually use it like so:
make cloneconfig make menuconfig (to make any changes to the cloneconfig)
This is great!! I'm learning someting here..... I understood that fixed everything up the way that the system running at the time so that one could run dep, clean and co. afterwards. Does cloneconfig really do anything other than unpack the files in /proc/config.gz? Daryn
- > > make cloneconfig - > > make menuconfig (to make any changes to the cloneconfig) - > - > This is great!! I'm learning someting here..... - > - > I understood that fixed everything up the way that the system running at the - > time so that one could run dep, clean and co. afterwards. Does cloneconfig - > really do anything other than unpack the files in /proc/config.gz? I'm not positive, but I don't think it does much more than that. The same effect could probably be achieved by doing: zcat /proc/config.gz >> /usr/src/linux/.config make menuconfig I can't believe it's not UNIX!!! ------------------------------------------------------------ Leah Cunningham | PPC QA, Business Support & www.heinous.org | QA & Linux geek, et al.
On Wednesday 06 June 2001 07:35, Leah Cunningham wrote:
- > > make cloneconfig - > > make menuconfig (to make any changes to the cloneconfig) - > - > This is great!! I'm learning someting here..... - > - > I understood that fixed everything up the way that the system running at the - > time so that one could run dep, clean and co. afterwards. Does cloneconfig - > really do anything other than unpack the files in /proc/config.gz?
I'm not positive, but I don't think it does much more than that. The same effect could probably be achieved by doing:
zcat /proc/config.gz >> /usr/src/linux/.config
Oops Leah, I think you meant: zcat /proc/config.gz > /usr/src/linux/.config Or am I drunk :-)?
make menuconfig
I can't believe it's not UNIX!!! ------------------------------------------------------------ Leah Cunningham | PPC QA, Business Support & www.heinous.org | QA & Linux geek, et al.
-- Cheers, Joost
- > > - > I understood that fixed everything up the way that the system running - > > at the - > time so that one could run dep, clean and co. afterwards. Does - > > cloneconfig - > really do anything other than unpack the files in - > > /proc/config.gz? - > > - > > I'm not positive, but I don't think it does much more than that. - > > The same effect could probably be achieved by doing: - > > - > > zcat /proc/config.gz >> /usr/src/linux/.config - > - > Oops Leah, - > I think you meant: - > - > zcat /proc/config.gz > /usr/src/linux/.config - > - > Or am I drunk :-)? No, no! It is I, who are drunk. :-) I can't believe it's not UNIX!!! ------------------------------------------------------------ Leah Cunningham | PPC QA, Business Support & www.heinous.org | QA & Linux geek, et al.
* Leah Cunningham
- > > - > I understood that fixed everything up the way that the system running - > > at the - > time so that one could run dep, clean and co. afterwards. Does - > > cloneconfig - > really do anything other than unpack the files in - > > /proc/config.gz? - > > - > > I'm not positive, but I don't think it does much more than that. - > > The same effect could probably be achieved by doing: - > > - > > zcat /proc/config.gz >> /usr/src/linux/.config - > - > Oops Leah, - > I think you meant: - > - > zcat /proc/config.gz > /usr/src/linux/.config - > - > Or am I drunk :-)?
No, no! It is I, who are drunk. :-)
Hehe. Be aware that if one ever (hopefully not) end up on other dists than suse - the /proc/config.gz and make cloneconfig does not exist. In that case you have to take care of your configurations manually. -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
- > > - > > - > I understood that fixed everything up the way that the system running - > > - > > at the - > time so that one could run dep, clean and co. afterwards. Does - > > - > > cloneconfig - > really do anything other than unpack the files in - > > - > > /proc/config.gz? - > > - > > - > > - > > I'm not positive, but I don't think it does much more than that. - > > - > > The same effect could probably be achieved by doing: - > > - > > - > > - > > zcat /proc/config.gz >> /usr/src/linux/.config - > > - > - > > - > Oops Leah, - > > - > I think you meant: - > > - > - > > - > zcat /proc/config.gz > /usr/src/linux/.config - > > - > - > > - > Or am I drunk :-)? - > > - > > No, no! It is I, who are drunk. :-) - > - > Hehe. Be aware that if one ever (hopefully not) end up on other dists - > than suse - the /proc/config.gz and make cloneconfig does not exist. In - > that case you have to take care of your configurations manually. Unless you are very sneaky and steal the patch . . . I can't believe it's not UNIX!!! ------------------------------------------------------------ Leah Cunningham | PPC QA, Business Support & www.heinous.org | QA & Linux geek, et al.
Mads Martin Jørgensen wrote:
Be aware that if one ever (hopefully not) end up on other dists than suse - the /proc/config.gz and make cloneconfig does not exist. In that case you have to take care of your configurations manually.
Not exactly. There's "make oldconfig", which is standard with the kernel.org kernels. But I don't know how well it works if you're switching from a SuSE kernel to a kernel.org kernel. My expectation would be that it would require some extra tweaking but still avoid most of the work of reconfiguring the kernel. Paul
I'm not positive, but I don't think it does much more than that. The same effect could probably be achieved by doing:
zcat /proc/config.gz >> /usr/src/linux/.config make menuconfig I just try them both out on my test maschine and see what happens.
Thankx for the info. Daryn
"dc" == dc
writes:
>> You can also run: >> >> make cloneconfig >> dc> I'm not so informed, but isn't it so that you cannot make dc> changes during that call. As far as I remember it is to be dc> used after patching, for example for an Oracle installation. No, make cloneconfig only means to take the the setting from the current system. You could change it any way you like after that via make menuconfig, make xconfig, etc. Charles
Paul Abrahams schrieb:
dc@k-net.de wrote:
Can anyone tell me how I can start xconfig or menuconfig so that it sets the options to the current running configuration. The configuration that I have is fine and I just want to add a few things to it. Thankx
Depending on whether you're recompiling a stock kernel or a SuSE kernel, use
make oldconfig
or
make cloneconfig
That will reproduce the config file, asking you what you want to do about the new stuff.
What precisely is the difference between
1) make oldconfig
and
2) make cloneconfig
#tia#
secondly,
is this below listed way not enough to run on an existing/running
config?
* Oliver Ob
What precisely is the difference between 1) make oldconfig
and 2) make cloneconfig Specific to SuSE kernels. It will create a .config file based on the current running kernel. For example yopu have installed a SuSE compiled kernel and you want to change things starting make cloneconfig will dump the kernel configuration from the memory /proc
start configuring the kernel based on your previous settings that means you do not have to go over every single option again again. directory and then you will have to configure your kernel the same old way. It is a time saver IMO
mv /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz mv /usr/src/linux/System.map /boot/System.map /sbin/lilo
use of make bzlilo will save all those steps HTH -- Togan Muftuoglu
participants (10)
-
Charles Philip Chan
-
dc@k-net.de
-
Gerhard den Hollander
-
Joost van der Lugt
-
Leah Cunningham
-
Mads Martin Jørgensen
-
n6tadam
-
Oliver Ob
-
Paul Abrahams
-
Togan Muftuoglu