LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-01-2006, 04:39 PM   #1
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
Another kernel recompile question


I want to recompile my existing kernel to make a few minor changes but using the rest of the configuration as it is without having to go through every compile option. So after doing;

cp /boot/config-kernel_version .config

do I run make menuconfig or make oldconfig ?
 
Old 09-01-2006, 04:49 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
This should answer your question.

http://kerneltrap.org/node/2550
 
Old 09-01-2006, 04:56 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by mikieboy
I want to recompile my existing kernel to make a few minor changes but using the rest of the configuration as it is without having to go through every compile option. So after doing;

cp /boot/config-kernel_version .config

do I run make menuconfig or make oldconfig ?
Use make menuconfig then second option from bottom once it loads is Load configuration from file type in /boot/config-2.?.??-??? replacing the question marks with the actual numbers of the file then go through and change the configuration as you want when you exit it will ask you if you want to save new configuration say yes.
 
Old 09-01-2006, 07:17 PM   #4
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Original Poster
Rep: Reputation: 33
Thanks guys.

Since my original post I have read that /boot/config-kernel_version should be copied as .config to my quote: "kernel source directory".

Is this /usr/src or /usr/src/linux?
 
Old 09-01-2006, 07:38 PM   #5
Jukas
Member
 
Registered: Mar 2005
Posts: 141

Rep: Reputation: 15
Quote:
Originally Posted by mikieboy
Thanks guys.

Since my original post I have read that /boot/config-kernel_version should be copied as .config to my quote: "kernel source directory".

Is this /usr/src or /usr/src/linux?

Yup, however, the /linux is a symlink so you will want to double check and make sure you've got it pointing to the correct source directory.

My /usr/src/ dir looks like

Code:
$ ls -lh
total 40M
lrwxrwxrwx  1 root src    39 2006-08-31 10:23 linux -> /usr/src/linux-headers-2.6.16-2-686-smp
drwxr-xr-x 17 root root 4.0K 2006-08-31 09:28 linux-headers-2.6.16-2
drwxr-xr-x  5 root root 4.0K 2006-08-31 09:28 linux-headers-2.6.16-2-686-smp
drwxr-xr-x 21 root root 4.0K 2006-08-30 18:03 linux-source-2.6.16
-rw-r--r--  1 root root  40M 2006-08-18 14:59 linux-source-2.6.16.tar.bz2
 
Old 09-01-2006, 07:39 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by mikieboy
Thanks guys.

Since my original post I have read that /boot/config-kernel_version should be copied as .config to my quote: "kernel source directory".

Is this /usr/src or /usr/src/linux?
Well /usr/src/linux is a symbolic link you create to where you have your real kernel sources but that would be essentially correct except nothing would go into the /usr/src/linux but the actual source tree your better off just loading the file into menuconfig make the changes then save.

Code:
ls -l /usr/src/linux
lrwxrwxrwx 1 root src 21 2006-08-27 23:09 /usr/src/linux -> /usr/src/linux-2.6.17
 
Old 09-02-2006, 02:26 PM   #7
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Original Poster
Rep: Reputation: 33
Thanks again for all your replies. I reckon I now have a better understanding of what to do.
 
  


Reply



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
Newbie kernel recompile question johngcarlsson Mandriva 8 12-06-2004 03:45 PM
kernel recompile question Danforth Linux - General 2 04-26-2004 12:36 AM
kernel recompile question akshunj Linux - Software 7 09-21-2003 09:05 AM
Quick Kernel Recompile Question PrimaryDataLoop Linux - Newbie 1 07-18-2003 04:10 AM
Kernel recompile question... phishman3579 Slackware 2 06-27-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:50 PM.

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