* Re: In great need [not found] <fa.jh1e0kv.4k8ujg@ifi.uio.no> @ 2001-10-25 16:14 ` John Weber 0 siblings, 0 replies; 11+ messages in thread From: John Weber @ 2001-10-25 16:14 UTC (permalink / raw) To: linux-kernel I am a newbie/wannabe kernel hacker too :). Here are the steps I plan to take: [1] Take an Operating Systems class (or read through the syllabus materials). [2] Write a small operating system (to learn the stuff that OS courses/books don't teach... for example, it took me a while to realize where the BIOS loads the MBR... thank god lilo is open source). [3] Learn a little about hardware and hardware standards like PCI, PCMCIA, ACPI, USB, etc. [4] Read Oreilly's "Understanding the Linux Kernel". [5] Read the linux-kernel FAQ and archives [6] Read linux-kernel@vger.kernel.org (No Posting!) [7] Read linux source code [8] Read linux-kernel@vger.kernel.org (Post at Will!!) [9] Identify an area of need [10] Write code [11] Sacrifice a virgin pigeon and drink milk of an albino goat.... You are now a kernel hacker. I'm at step 2... perhaps as I go further a few of the steps will disappear :). Just my $0.02. Patrick Ouellet wrote: > > Hi to you all great Linux Kernel maintainers. > > As a follower of linux for a couple of years now > I wanted to go deeper into the madness, > so I said to myself, why no go as deep as you > can and get yourself into the Kernel. > > My simple question is this: > > Were should I start. > I would like to have a nice overview of the kernel > something that would help me understand all the part > of the kernel and how they work toghether. > > If anyone could tell me where I could get > such information.. I would be pleased. > > Thanx to you all and keep up the good work. > > -- > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-== > -=-=-=-=-=-= > Patrick Ouellet - Programmeur Sénior > patrick.ouellet@microtecsecurite.com > Recherche & Devloppement > Les Entreprise Microtec inc. > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-== > -=-=-=-=-=-= > "First they ignore you. Then they laugh at you. > Then they fight you. Then you win." > -Mohandas Gandhi > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-== > -=-=-=-=-=-= > All source code included (if any ) is > copyright Microtec Technologies Inc. 2001 > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-== > -=-=-=-=-=-= > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel"= > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 11+ messages in thread
* In great need @ 2001-10-25 15:32 Patrick Ouellet 2001-10-25 15:58 ` Rik van Riel 2001-10-25 16:34 ` Jonathan Corbet 0 siblings, 2 replies; 11+ messages in thread From: Patrick Ouellet @ 2001-10-25 15:32 UTC (permalink / raw) To: Kernel Mailing lists Hi to you all great Linux Kernel maintainers. As a follower of linux for a couple of years now I wanted to go deeper into the madness, so I said to myself, why no go as deep as you can and get yourself into the Kernel. My simple question is this: Were should I start. I would like to have a nice overview of the kernel something that would help me understand all the part of the kernel and how they work toghether. If anyone could tell me where I could get such information.. I would be pleased. Thanx to you all and keep up the good work. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Patrick Ouellet - Programmeur Sénior patrick.ouellet@microtecsecurite.com Recherche & Devloppement Les Entreprise Microtec inc. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "First they ignore you. Then they laugh at you. Then they fight you. Then you win." -Mohandas Gandhi =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= All source code included (if any ) is copyright Microtec Technologies Inc. 2001 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 15:32 Patrick Ouellet @ 2001-10-25 15:58 ` Rik van Riel 2001-10-25 18:52 ` Daniel Phillips 2001-10-25 16:34 ` Jonathan Corbet 1 sibling, 1 reply; 11+ messages in thread From: Rik van Riel @ 2001-10-25 15:58 UTC (permalink / raw) To: Patrick Ouellet; +Cc: Kernel Mailing lists, kernelnewbies On Thu, 25 Oct 2001, Patrick Ouellet wrote: > As a follower of linux for a couple of years now > I wanted to go deeper into the madness, > so I said to myself, why no go as deep as you > can and get yourself into the Kernel. > > My simple question is this: > > Were should I start. A good place to start would be http://kernelnewbies.org/ and also the kernelnewbies mailing list and IRC channel. > I would like to have a nice overview of the kernel > something that would help me understand all the part > of the kernel and how they work toghether. The book "Understanding the Linux Kernel" by O'Reilly is nice, also see http://kernelnewbies.org/books.php3 regards, Rik -- DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/ http://www.surriel.com/ http://distro.conectiva.com/ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 15:58 ` Rik van Riel @ 2001-10-25 18:52 ` Daniel Phillips 2001-10-25 19:37 ` EvilTypeGuy 0 siblings, 1 reply; 11+ messages in thread From: Daniel Phillips @ 2001-10-25 18:52 UTC (permalink / raw) To: Rik van Riel, Patrick Ouellet; +Cc: Kernel Mailing lists, kernelnewbies On October 25, 2001 05:58 pm, Rik van Riel wrote: > On Thu, 25 Oct 2001, Patrick Ouellet wrote: > > > As a follower of linux for a couple of years now > > I wanted to go deeper into the madness, > > so I said to myself, why no go as deep as you > > can and get yourself into the Kernel. > > > > My simple question is this: > > > > Were should I start. > > A good place to start would be http://kernelnewbies.org/ > and also the kernelnewbies mailing list and IRC channel. Highly recommended. > > I would like to have a nice overview of the kernel > > something that would help me understand all the part > > of the kernel and how they work toghether. > > The book "Understanding the Linux Kernel" by O'Reilly > is nice, also see http://kernelnewbies.org/books.php3 More than nice, I'd say essential. Even though it's based on the 2.2 series it's still 95% relevant. Here's the best place to start: http://lxr.linux.no/source/init/main.c#L793 -- Daniel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 18:52 ` Daniel Phillips @ 2001-10-25 19:37 ` EvilTypeGuy 2001-10-25 19:45 ` Jonathan Corbet 0 siblings, 1 reply; 11+ messages in thread From: EvilTypeGuy @ 2001-10-25 19:37 UTC (permalink / raw) To: Kernel Mailing lists On Thu, Oct 25, 2001 at 08:52:01PM +0200, Daniel Phillips wrote: > On October 25, 2001 05:58 pm, Rik van Riel wrote: > > The book "Understanding the Linux Kernel" by O'Reilly > > is nice, also see http://kernelnewbies.org/books.php3 > > More than nice, I'd say essential. Even though it's based on the 2.2 series > it's still 95% relevant. The 2nd edition is updated for 2.4...(2nd edition is in print, don't know if it's on that site...) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 19:37 ` EvilTypeGuy @ 2001-10-25 19:45 ` Jonathan Corbet 2001-10-25 19:54 ` Tahar 2001-10-25 20:08 ` EvilTypeGuy 0 siblings, 2 replies; 11+ messages in thread From: Jonathan Corbet @ 2001-10-25 19:45 UTC (permalink / raw) To: EvilTypeGuy; +Cc: linux-kernel > > > The book "Understanding the Linux Kernel" by O'Reilly > > > is nice, also see http://kernelnewbies.org/books.php3 > > > > More than nice, I'd say essential. Even though it's based on the 2.2 series > > it's still 95% relevant. > > The 2nd edition is updated for 2.4...(2nd edition is in print, don't know if > it's on that site...) I think you're thinking of _Linux_Device_Drivers_. The authors are working on an updated edition of the kernel book, but it's not out yet. jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 19:45 ` Jonathan Corbet @ 2001-10-25 19:54 ` Tahar 2001-10-25 20:08 ` EvilTypeGuy 1 sibling, 0 replies; 11+ messages in thread From: Tahar @ 2001-10-25 19:54 UTC (permalink / raw) To: Jonathan Corbet; +Cc: EvilTypeGuy, linux-kernel Jonathan Corbet wrote: > > > > > The book "Understanding the Linux Kernel" by O'Reilly > > > > is nice, also see http://kernelnewbies.org/books.php3 > > > > > > More than nice, I'd say essential. Even though it's based on the 2.2 series > > The 2nd edition is updated for 2.4...(2nd edition is in print, don't know if > > it's on that site...) > > I think you're thinking of _Linux_Device_Drivers_. The authors are working > on an updated edition of the kernel book, but it's not out yet. The second edition of _Linux_Device_Drivers_ is out and it is online on : http://www.xml.com/ldd/chapter/book/ Tahar ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 19:45 ` Jonathan Corbet 2001-10-25 19:54 ` Tahar @ 2001-10-25 20:08 ` EvilTypeGuy 2001-10-25 20:13 ` Robert Love 1 sibling, 1 reply; 11+ messages in thread From: EvilTypeGuy @ 2001-10-25 20:08 UTC (permalink / raw) To: linux-kernel On Thu, Oct 25, 2001 at 01:45:28PM -0600, Jonathan Corbet wrote: > > > > The book "Understanding the Linux Kernel" by O'Reilly > > > > is nice, also see http://kernelnewbies.org/books.php3 > > > > > > More than nice, I'd say essential. Even though it's based on the 2.2 series > > > it's still 95% relevant. > > > > The 2nd edition is updated for 2.4...(2nd edition is in print, don't know if > > it's on that site...) > > I think you're thinking of _Linux_Device_Drivers_. The authors are working > on an updated edition of the kernel book, but it's not out yet. > > jon Yes, but the understanding linux kernel does include some material on 2.4, granted it's mostly previews of the 2.4 arch, but it's there nonetheless... ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 20:08 ` EvilTypeGuy @ 2001-10-25 20:13 ` Robert Love 0 siblings, 0 replies; 11+ messages in thread From: Robert Love @ 2001-10-25 20:13 UTC (permalink / raw) To: EvilTypeGuy; +Cc: linux-kernel On Thu, 2001-10-25 at 16:08, EvilTypeGuy wrote: > > I think you're thinking of _Linux_Device_Drivers_. The authors are working > > on an updated edition of the kernel book, but it's not out yet. > > > > jon > > Yes, but the understanding linux kernel does include some material on 2.4, > granted it's mostly previews of the 2.4 arch, but it's there nonetheless... True, it does have a paragraph or two at the end of each chapter on what 2.4 is including, but its still entirely a 2.2 book otherwise. Also, there is no 2E so I can understand the confusion. On the other hand, Linux Device Drivers does have a 2E, and it is 2.4 oriented. Regardless, I think both books are great. Robert Love ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 15:32 Patrick Ouellet 2001-10-25 15:58 ` Rik van Riel @ 2001-10-25 16:34 ` Jonathan Corbet 2001-10-25 20:10 ` Daniel Phillips 1 sibling, 1 reply; 11+ messages in thread From: Jonathan Corbet @ 2001-10-25 16:34 UTC (permalink / raw) To: Patrick Ouellet; +Cc: linux-kernel > Were should I start. KernelNewbies.org is intended to be a starting place for kernel hackers. May I also humbly suggest _Linux_Device_Drivers_? It's online at http://www.xml.com/ldd/chapter/book/index.html But, of course, you'll want to buy a copy at the bookstore of your choice as well :) jon Jonathan Corbet Executive editor, LWN.net corbet@lwn.net ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: In great need 2001-10-25 16:34 ` Jonathan Corbet @ 2001-10-25 20:10 ` Daniel Phillips 0 siblings, 0 replies; 11+ messages in thread From: Daniel Phillips @ 2001-10-25 20:10 UTC (permalink / raw) To: Jonathan Corbet, Patrick Ouellet; +Cc: linux-kernel On October 25, 2001 06:34 pm, Jonathan Corbet wrote: > > Were should I start. > > KernelNewbies.org is intended to be a starting place for kernel hackers. > > May I also humbly suggest _Linux_Device_Drivers_? It's online at > > http://www.xml.com/ldd/chapter/book/index.html > > But, of course, you'll want to buy a copy at the bookstore of your choice > as well :) Yes, that's where I started. Being somewhat impatient, I just flipped to chapter two, which has a 4 line example of a kernel module which I'll paraphrase here: #define MODULE #include <linux/module.h> int init_module(void) { printk("Hello kernel!\n"); return 0; } void cleanup_module(void) { printk("Goodbye kernel!\n"); } Then I did (more or less): cc -c hello.c -I/usr/src/2.4.12/include su insmod hello.o dmesg lsmod rmmod hello dmesg lsmod So my first kernel hack took about 5 minutes, with the help of this book. Note: some of that 5 minutes was spent figuring out that kernel messages don't get printed to the console if you're running X, hence the dmesg's. You'll have to update the example in the book - simply doing "cc -c hello.c" works only when the /usr/include/version.h happens to match your running kernel, which isn't very likely.[1] The big advantage of starting with module programming is, you don't necessarily have to understand the entire kernel to get started - the interfaces available to modules tend to be easier to understand and work with than the other, often subtle and sparsely documented interfaces used internally by the kernel itself. And yes, I do have to go out and get the 2nd edition of LDD, co-starring you :-) [1] Because /usr/include/linux is no longer allowed to symlink to /usr/src/linux/include/linux. -- Daniel ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-10-25 20:13 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <fa.jh1e0kv.4k8ujg@ifi.uio.no>
2001-10-25 16:14 ` In great need John Weber
2001-10-25 15:32 Patrick Ouellet
2001-10-25 15:58 ` Rik van Riel
2001-10-25 18:52 ` Daniel Phillips
2001-10-25 19:37 ` EvilTypeGuy
2001-10-25 19:45 ` Jonathan Corbet
2001-10-25 19:54 ` Tahar
2001-10-25 20:08 ` EvilTypeGuy
2001-10-25 20:13 ` Robert Love
2001-10-25 16:34 ` Jonathan Corbet
2001-10-25 20:10 ` Daniel Phillips
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox