2003-09-15 06:59:31

by Amir Hermelin

[permalink] [raw]
Subject: Developing Kernel Code newbie

Hi,
I've recently started development on the Linux Kernel, and wondered if
there's any kernel-dev FAQ/Howto/online courses/etc to help me get started
with debugging techniques. Any help would be greatly appreciated.

Thanks,
Amir.



2003-09-15 08:35:38

by Nick Piggin

[permalink] [raw]
Subject: Re: Developing Kernel Code newbie



Amir Hermelin wrote:

>Hi,
>I've recently started development on the Linux Kernel, and wondered if
>there's any kernel-dev FAQ/Howto/online courses/etc to help me get started
>with debugging techniques. Any help would be greatly appreciated.
>

Understanding the Linux Kernel and Linux Device Drivers (free online I
think) are 2 good books to start with. Also http://www.kernelnewbies.org.


2003-09-15 09:44:08

by Daniel Drake

[permalink] [raw]
Subject: Re: Developing Kernel Code newbie

I'm in a similar situation here.. a C/C++ beginner, very keen to work on
the Linux kernel.
Those two books you mentioned, the latest editions cover the 2.4 series
kernel. Would reading these still be useful for working on the 2.6 (and
onwards) kernels?

Thanks.

Nick Piggin wrote:
>
>
> Amir Hermelin wrote:
>
>> Hi,
>> I've recently started development on the Linux Kernel, and wondered if
>> there's any kernel-dev FAQ/Howto/online courses/etc to help me get
>> started
>> with debugging techniques. Any help would be greatly appreciated.
>>
>
> Understanding the Linux Kernel and Linux Device Drivers (free online I
> think) are 2 good books to start with. Also http://www.kernelnewbies.org.
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2003-09-15 09:53:07

by Nick Piggin

[permalink] [raw]
Subject: Re: Developing Kernel Code newbie



Daniel Drake wrote:

> I'm in a similar situation here.. a C/C++ beginner, very keen to work
> on the Linux kernel.
> Those two books you mentioned, the latest editions cover the 2.4
> series kernel. Would reading these still be useful for working on the
> 2.6 (and onwards) kernels?


Yes.

If you are a _programming_ beginner, you're setting your sights a too high
and will probably get frustrated.


2003-09-15 13:57:42

by Alan

[permalink] [raw]
Subject: Re: Developing Kernel Code newbie

On Llu, 2003-09-15 at 10:49, Daniel Drake wrote:
> I'm in a similar situation here.. a C/C++ beginner, very keen to work on
> the Linux kernel.
> Those two books you mentioned, the latest editions cover the 2.4 series
> kernel. Would reading these still be useful for working on the 2.6 (and
> onwards) kernels?

The kernel is cool, but it is a large piece of code with a lot of ideas
in it that some folks find challenging (interrupts, multiprocessing,
threads and locking) [One thing to be said at least the Java taught
university folks understand some of this unlike those they used to feed
pascal]

Have fun but if you find the kernel daunting and hard work, don't give
up but pick up something smaller, easier to understand and use a
debugger on - like desktop applications, then come back and try the
kernel again later.


2003-09-15 15:05:46

by Daniel Drake

[permalink] [raw]
Subject: Re: Developing Kernel Code newbie



Nick Piggin wrote:
> If you are a _programming_ beginner, you're setting your sights a too high
> and will probably get frustrated.

I'm not a beginner to programming, been doing it since an early age.
That said, I have very little experience of "pro" programming - I am
still in full time education.
Still, it is definately a high target, and will take some time getting
used to.

I wrote my first patch yesterday, very very basic but its a start! (just
simply makes the usblp driver output its debug info into dmesg when
CONFIG_USB_DEBUG is set).

Alan Cox wrote:
> The kernel is cool, but it is a large piece of code with a lot of ideas
> in it that some folks find challenging (interrupts, multiprocessing,
> threads and locking) [One thing to be said at least the Java taught
> university folks understand some of this unlike those they used to feed
> pascal]
>
> Have fun but if you find the kernel daunting and hard work, don't give
> up but pick up something smaller, easier to understand and use a
> debugger on - like desktop applications, then come back and try the
> kernel again later.

I think thats where I'm heading, thanks for the advice.



Amir: Here are a few URL's I have stored for this topic. I have yet to
study them in detail.

http://jungla.dit.upm.es/~jmseyas/linux/kernel/hackers-docs.html
http://www.kernelnewbies.org
http://en.tldp.org/LDP/khg/HyperNews/get/khg.html

Thanks.