LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want to recompile the kernel (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-recompile-the-kernel-424734/)

hexadecimal_0xF 03-14-2006 09:32 AM

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.

Lenard 03-14-2006 09:40 AM

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

bc8o8 03-14-2006 10:24 AM

This thread will really be helpful:
http://www.linuxquestions.org/questi...ad.php?t=73436

hexadecimal_0xF 03-14-2006 10:30 AM

:) 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. :)

sundialsvcs 03-14-2006 12:52 PM

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 :study: 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.

hexadecimal_0xF 03-14-2006 08:08 PM

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?


All times are GMT -5. The time now is 12:23 PM.