LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-08-2005, 06:02 PM   #1
jimbo-62
Member
 
Registered: May 2005
Location: Utah
Posts: 102

Rep: Reputation: 15
Kernel Questions


OK, I know just enough about compiling kernels to be dangerous. I have compiled a new kernel for a Slackware installation by following a very simple procedure.

1. Download the kernel source from kernel.org and put it in /usr/src.
2. Unpack the tar ball.
3. CD to the new directory.
4. Make menuconfig - set kernel options.
5. make bzImage
6. make modules
7. make modules_install

(Several steps regarding cp and ln -s have not been shown.)

Everything seems to be working perfectly.

But, when I look at Debian procedures for compiling a new kernel, I am confused.

Must I use a Debian source for a new kernel or can I use one from kernel.org?

If I used a kernel from Debian unstable on a Sarge installation, will something break? (I want a kernel version at least 2.6.11.)

Last, is there a way to use my current kernel configuration and make changes to it in make menuconfig rather than starting all over with a stock configuration?

The sticky thread here uses the "Debian Way" to compile a kernel, apt-get, etc. Why can't I just use the simple method described at the beginning of this post which has worked with no problems on three other distros?

Thanks for any help and insight, jimbo
 
Old 08-08-2005, 09:10 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You can use any kernel. However, you may regress some patches provided by your distribution, which are not in the mainline (kernel.org) kernel. Unstable kernels are (surprise) not as stable, so there may be some breakage. Depending on your specific configuration, it may or may not impact you. Easiest way to find out is to try it (and report problems to where you got the kernel, so bugs can be fixed).

You can use your old config file. Before the "make menuconfig", copy the ".config" to the new kernel's directory, and "make oldconfig". This will apply applicable existing configuration items, and prompt you for new items. You can then "make menuconfig" if needed.

Last edited by macemoneta; 08-08-2005 at 09:11 PM.
 
Old 08-08-2005, 09:49 PM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
i use the more "slackware"-like method you describe on my debian box, and i've never had a problem (that i could trace to the kernel, at least ). there are probably a zillion reasons i don't know of why that's a bad idea, but as much as i wanted to, i could never get the "debian way" to freaking work. so i just stuck with the "regular" method and it's been okay.
 
  


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
kernel questions... bong.mau Linux - General 3 11-13-2005 10:12 PM
kernel 2.6.10 - few questions tisam Linux - Software 0 02-11-2005 09:00 AM
Kernel Questions. rvijay Linux - General 3 01-09-2005 04:33 PM
kernel questions vito_huang Linux - Newbie 2 12-03-2004 10:09 AM
kernel questions... hollywoodb Slackware 1 08-23-2003 12:07 PM

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

All times are GMT -5. The time now is 01:31 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