LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
I want to recompile the kernel


Hi,
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, 10:40 AM   #2
Lenard
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: 56
http://www.digitalhermit.com/linux/K...ild-HOWTO.html
 
Old 03-14-2006, 11:24 AM   #3
bc8o8
Member
 
Registered: Jun 2003
Location: Boston, MA
Distribution: Debian
Posts: 57

Rep: Reputation: 15
This thread will really be helpful:
http://www.linuxquestions.org/questi...ad.php?t=73436
 
Old 03-14-2006, 11:30 AM   #4
hexadecimal_0xF
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, 01:52 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,151

Rep: Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203
Well, there's http://www.kernel.org. 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, 09:08 PM   #6
hexadecimal_0xF
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 09:34 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Recompile harisund MEPIS 2 09-23-2005 03:57 AM
recompile kernel alaios SUSE / openSUSE 2 02-08-2005 04:29 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
kernel recompile uselinux34 Linux - General 5 03-08-2004 05:28 PM
How do I recompile the kernel? christong Linux - General 4 11-12-2003 12:29 PM


All times are GMT -5. The time now is 06:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration