LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-25-2005, 12:22 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Rep: Reputation: 32
Question How do you rebuild a kernel?


I've got to add a patch to my kernel that requires rebuilding the kernel... I was told to go to the usr/src directory and issue the patch: patch -p0 < [patch-file-name-here] With the kernel source in the working directory and then to rebuild the kernel... How do I rebuild the kernel?
 
Old 07-25-2005, 12:55 PM   #2
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 210

Rep: Reputation: 31
What distribution are you using?

You specify 'any' in your profile and that's not too helpfull.

Different distributions have different mechanisms to get the source code. What's more, different distributions include different kernel patches (That's part of the added value of each distribution).

e.g. Fedora is an RPM. For Gentoo you get it when you are installing, other distros use the pristine official kernel, etc.

So in theory you could grab any kernel and put it into any distro, but then you would have to recompile everything. I don't think you want to do that.
 
Old 07-25-2005, 02:34 PM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 32
I'm using Turbo Linux... it's Red Hat based.... likes rmps... etc. I don't mind recompiling from scratch as long as somebody can help me with the optimization flags for a P3-M 1.13ghz (IBM Laptop - Turbo Linux 10F - 2.6.0)
 
Old 07-26-2005, 01:14 PM   #4
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 210

Rep: Reputation: 31
I did a quick search for 'Trubolinux kernel source' and I found this

http://rpm.pbone.net/index.php3/stat...o%20Linux.html

I would recommend doing a google search before asking in the forum. It may save you a lot of time waiting for a response.
 
Old 07-26-2005, 01:15 PM   #5
rarsa
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 210

Rep: Reputation: 31
Ok, and bear in mind that patches are usually 'version specific', meaning that you have to apply the patch that corersponds to your kernel.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to rebuild kernel bhanu12 Linux - Newbie 2 10-26-2005 05:42 PM
Help (!?) with rebuild kernel 2.4.26 WoofDeF Debian 1 06-22-2005 10:11 AM
kernel rebuild Present Yoper 9 11-26-2004 07:08 PM
Rebuild kernel And then !!! left-hand Linux - Software 4 02-06-2004 10:59 AM
No poweroff after kernel rebuild sleddog Linux - Software 4 01-27-2002 09:39 PM


All times are GMT -5. The time now is 03:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration