From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fred K Ollinger Newsgroups: gmane.linux.redhat.axp.kernel Subject: Re: hacking kernel Date: Mon, 24 Feb 2003 13:27:25 -0500 (EST) Sender: axp-kernel-list-admin@redhat.com Message-ID: References: <3E59B474.7030302@i-55.com> Reply-To: axp-kernel-list@redhat.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1046111289 31111 80.91.224.249 (24 Feb 2003 18:28:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 18:28:09 +0000 (UTC) Cc: khuwajashahzad@hotmail.com Return-path: Original-Received: from listman.redhat.com ([66.187.233.211]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18nNKe-00085S-00 for ; Mon, 24 Feb 2003 19:28:04 +0100 Original-Received: from listman.redhat.com (localhost.localdomain [127.0.0.1]) by listman.redhat.com (Postfix) with ESMTP id 2955E3EB52; Mon, 24 Feb 2003 13:28:16 -0500 (EST) Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 1B46C3EA2A for ; Mon, 24 Feb 2003 13:27:30 -0500 (EST) Original-Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h1OIRTn22700 for axp-kernel-list@listman.redhat.com; Mon, 24 Feb 2003 13:27:29 -0500 Original-Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h1OIRTq22696 for ; Mon, 24 Feb 2003 13:27:29 -0500 Original-Received: from orion.sas.upenn.edu (ORION.sas.upenn.edu [128.91.55.26]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h1OIRSe17488 for ; Mon, 24 Feb 2003 13:27:29 -0500 Original-Received: from mail2.sas.upenn.edu (follinge@MAIL2.SAS.UPENN.EDU [128.91.55.27]) by orion.sas.upenn.edu (8.12.2/8.12.1/SAS.05) with ESMTP id h1OIRP6L012032; Mon, 24 Feb 2003 13:27:25 -0500 (EST) Original-To: axp-kernel-list@redhat.com In-Reply-To: <3E59B474.7030302@i-55.com> X-Loop: axp-kernel-list@redhat.com Errors-To: axp-kernel-list-admin@redhat.com X-BeenThere: axp-kernel-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Alpha Kernel issues List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.linux.redhat.axp.kernel:116 X-Report-Spam: http://spam.gmane.org/gmane.linux.redhat.axp.kernel:116 > The best refrence is the source code itself. I think a few publishers > have printed > books with the kernel fully broke down. Try barnes and noble. > > In regards to services, services are not an function of the kernel they are > user level programs. I agree with the above poster. I have a few more suggestions. These are not to insult your intelligence as I can't possibly know what you know so skip it if it's too basic. Note, you should be doing a lot of this stuff simultaneously, though the earliest ones are important before you go on to later steps. 1. You must know unix before you can even hope to hack the kernel as this will save lots of time. 'grep' is really handy. 2. Learn and editor: emacs, vi or something else, doesn't matter as long as you can use it efficiently. 3. You won't get far if you don't know c especially pointers as well as unix function calls. I would start mastering c programs which are easy to recover from before I start hacking the kernel. 4. I would start compiling and running first normal kernels, then bleeding edge ones. Get a knack for menuconfig, this will help a lot when you actually go into the kernel tree. Also reading kernel mailing lists daily along w/ bug reports that should coorespond to troubles (smile) that you are having w/ bleeding edge kernel. I have a test box to run bleeding edge kernels on as well as other beta sw. 5. Learn to apply patches to the kernel and recompile. Now you can for the bleeding edge kernel and make your own w/ patches. Also, manually make changes as suggested from the kernel mailing list. Now you are really getting confident. 6. Now you are ready to dive into the source. Best way is to look around the tree especially if you have a book on the linux kernel. Get a lay of the land recall all that you learned from menuconfig. 7. Now you are ready for a project. Try to fix a bug on the bleeding edge kernel if the compile fails. Or you could go in and grep for bugs as given on the kernel janitors list: http://kerneljanitors.org/ Use cvs (you should know this by now) to check out the latest todo list and start on something simple. I'm trying to replace all instances of strtok w/ strsep, and it's harder for me than I thought. Guess I should go work on step #3. :) Welcome and good luck. Fred Ollinger