Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2004, 11:06 PM   #1
LQ Newbie
Registered: May 2004
Posts: 18

Rep: Reputation: 0
kernel recompiling

Is there a way to get a configuration set up from an old kernel build
I just recently redid my kernel due to a "no rule to make target" error and now the usb mouse does not work in the new kernel
What I want to do is get the configuration I used in the 2175 or 2188 kernel to rebuild a new kernel
Old 05-18-2004, 11:16 PM   #2
Senior Member
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
In the source directory for the kernel with the working configuration, type

make cloneconfig

It should generate a conf file for that kernel.
Old 05-19-2004, 01:25 AM   #3
LQ Newbie
Registered: May 2004
Posts: 18

Original Poster
Rep: Reputation: 0
I tried that and got
No rule to make target 'cloneconfig'
Old 05-19-2004, 02:46 AM   #4
Registered: Mar 2004
Location: Colorado, US
Distribution: Debian "Sarge"
Posts: 228

Rep: Reputation: 30
~# make oldconfig

This option,I can not recall the details, may depend on the previous kernel configuration.

When you configure the kernel there is an option to enable such feature. If it was not enabled in the running kernel you wont be able to extract it's configuration.

A second feature can be enabled where your running kernel will create a file with its configuration in the userspace.

[edit] minor typo
Old 05-19-2004, 02:51 AM   #5
Registered: Mar 2004
Location: Colorado, US
Distribution: Debian "Sarge"
Posts: 228

Rep: Reputation: 30
Extracted from 'make xconfig':
Kernel .config support (IKCONFIG)

This option enables the complete Linux kernel ".config" file
contents, information on compiler used to build the kernel,
kernel running when this kernel was built and kernel version
from Makefile to be saved in the kernel. It provides documentation
of which kernel options are used in a running kernel or in an
on-disk kernel. This information can be extracted from the kernel
image file with the script scripts/extract-ikconfig and used as
input to rebuild the current kernel or to build another kernel.
It can also be extracted from a running kernel by reading
/proc/config.gz and /proc/config_built_with, if enabled (below).
/proc/config.gz will list the configuration that was used
to build the kernel and /proc/config_built_with will list
information on the compiler and host machine that was used to
build the kernel.
Enable access to .config through /proc/config.gz (IKCONFIG_PROC)

This option enables access to kernel configuration file and build
information through /proc/config.gz.
Old 05-19-2004, 11:32 AM   #6
LQ Newbie
Registered: May 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks I will try that
Old 05-19-2004, 01:39 PM   #7
LQ Newbie
Registered: Mar 2004
Location: coventry, connecticut, usa
Distribution: Puppy 5.6.1
Posts: 27

Rep: Reputation: 15
loading a .config file

If you" make xconfig " at the top left there is the load command that lets you load a .config file from any directory and use it to compile. works for rh9 I save usable configs in other directories so as not to lose them if I recompile. make clean or make proper seems to remove config files from directory you are in , as in /usr/src/linux-2.6.5. Marty


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 09:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
What does recompiling the kernel do? direwolf20 Linux - Newbie 2 10-08-2003 12:06 AM
What use does recompiling the kernel have? twinkers Debian 8 10-06-2003 10:46 AM
recompiling kernel slacknewbie Linux - General 3 05-08-2002 10:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration