Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-14-2006, 09:32 AM   #1
LQ Newbie
Registered: Nov 2005
Posts: 15

Rep: Reputation: 0
I want to recompile the kernel

I want to recompile my kernel at my own terms. Please tell me from where I can get study material for doing so.

Thanks in advance.
Old 03-14-2006, 09:40 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Old 03-14-2006, 10:24 AM   #3
Registered: Jun 2003
Location: Boston, MA
Distribution: Debian
Posts: 57

Rep: Reputation: 15
This thread will really be helpful:
Old 03-14-2006, 10:30 AM   #4
LQ Newbie
Registered: Nov 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for reply.

I am reading all those. Well, if anyone come with source for more in depth knowledge of kernel, kindly post it here.

Dont get shocked,
Actually, I am thinking of writing the driver for my sound card.
Old 03-14-2006, 12:52 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,455
Blog Entries: 4

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Well, there's Actually there are dozens upon dozens of "Linux kernel hacker's" sites.

In a nutshell...

(1) Set up cvs or subversion and commit a copy of the kernel to it, so that you can easily distinguish your changes from what comes in from the distro vendor.

(2) The kernel source usually lives in /usr/src/linux and it is normally rebuilt with the simple sequence: make && make modules && make install.

(3) It may well be that you only need to make modules because, if your driver is simply a module, you don't need to recompile anything else.

(4) The best approach is to look at someone else's code that is very close to what you're doing, then adapt it. As a learning exercise, it's fine to reimplement something that, you discover, has already been done.

(5) O'Reilly Publishing does put out some really good titles about Linux, some of which are available on-line.
Old 03-14-2006, 08:08 PM   #6
LQ Newbie
Registered: Nov 2005
Posts: 15

Original Poster
Rep: Reputation: 0
oh! That was very informative post. Thank you.

It would be very kind of you, if you could explain me what is cvs and subersion.

Actually, I dont want to restrict myself to just writing driver. Instead,I want to contribute to GNU community. Thats why I needed to know inside out of kernel.

Well, I have Red hat linux 9, if I am not wrong, it is NOT a debian based OS?

Last edited by hexadecimal_0xF; 03-14-2006 at 08:34 PM.


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
Kernel Recompile harisund MEPIS 2 09-23-2005 02:57 AM
recompile kernel alaios SUSE / openSUSE 2 02-08-2005 03:29 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
kernel recompile uselinux34 Linux - General 5 03-08-2004 04:28 PM
How do I recompile the kernel? christong Linux - General 4 11-12-2003 11:29 AM > Forums > Linux Forums > Linux - Newbie

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