LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-30-2008, 08:58 AM   #1
huhaizhi
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Unhappy How can i study linux kernel?


I want to study linux kernel,but i am a freshman.Who can provide some
methods and experience for me?
Thanks for your help!

Last edited by huhaizhi; 04-30-2008 at 09:05 AM.
 
Old 04-30-2008, 09:14 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,466

Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
Start here: http://kernelnewbies.org/
 
Old 04-30-2008, 09:19 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Linux Kernel in a Nutshell You can download a pdf free, or buy the book from O'Reilly.

Last edited by rickh; 04-30-2008 at 09:24 AM.
 
Old 04-30-2008, 03:24 PM   #4
codinflu
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
Smile Use KGDB

if you have c programming experience,
first prepare a debugging environment with KGDB,
then boot with kernel, using gdb.

Last edited by codinflu; 11-17-2008 at 04:48 PM.
 
Old 05-02-2008, 08:35 PM   #5
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Someone in the forum told me about the free kernel book too at http://www.kroah.com/lkn and I downloaded it and have been trying to understand it. I have been able to build the kernel 2.4.36 with it. Without some free books like that and the forum I think that I would have forgotten about Linux and had my mom and dad M$crosoft ME to Vista.

I want to learn more about it too.
"boot with kernel, using gdb"

I have no idea how to boot the Linux kernel with gdb. Can someone explain to me how to do that in a clear way so that I do not mess it up like I did when I tried to compile the kernel?
 
Old 05-04-2008, 03:34 PM   #6
maverik
LQ Newbie
 
Registered: May 2008
Location: Russia
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by huhaizhi View Post
I want to study linux kernel,but i am a freshman.Who can provide some
methods and experience for me?
Thanks for your help!
R.Love - Linux Kernel Development 2nd ed. may help
 
Old 05-04-2008, 09:41 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,311
Blog Entries: 4

Rep: Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152
"newtovanilla," good sir or madam, relax!

I mean that sincerely and with not-a-trace of disrespect to you.

The reality of this situation is that you are diving into something totally-new to your present experience, and therefore, "details are going to be hitting you in the face" just as surely as if your family car had just encountered a cloud of Junebugs while you were driving down the Interstate at 75MPH.

What you need to try to master is ... sorting it all out. In the short run, you're going to be inundated with apparently disconnected details all competing for attention. You'll go stir-crazy if you try to satisfy them.

I suggest that you get a loose-leaf notebook and a number-two pencil. (Seriously. It works for me.) When a thing you don't understand comes whizzing by ... write it down, (yes, in pencil) and once you've written it down you can "let it go."

For instance: this bit about "gdb." Okay, no answer yet, maybe no answer for several weeks: let it go. Don't go chasing after that rabbit. Instead, continue to gather information. Write down in that notebook as a task-specific journal. Capture the questions and leave space for answers. Periodically re-read the whole thing.

It works.
 
Old 05-04-2008, 10:18 PM   #8
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 175Reputation: 175
Join the Kernel.org mailing list.

http://kernel.org/pub/linux/docs/lkml/
 
Old 05-06-2008, 05:04 PM   #9
Constantine
LQ Newbie
 
Registered: Dec 2007
Posts: 13

Rep: Reputation: 1
Have a look at Linux kernel source from a bird's eye view

http://www.makelinux.net/kernel_map

and continue here:
http://kernelnewbies.org/KernelHacking
 
Old 05-28-2008, 05:37 AM   #10
codinflu
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
Thumbs up using kgdb

Quote:
Originally Posted by newtovanilla View Post
Someone in the forum told me about the free kernel book too at http://www.kroah.com/lkn and I downloaded it and have been trying to understand it. I have been able to build the kernel 2.4.36 with it. Without some free books like that and the forum I think that I would have forgotten about Linux and had my mom and dad M$crosoft ME to Vista.

I want to learn more about it too.
"boot with kernel, using gdb"

I have no idea how to boot the Linux kernel with gdb. Can someone explain to me how to do that in a clear way so that I do not mess it up like I did when I tried to compile the kernel?
Sorry for the late answer.

What I mean is once you set up a kernel debugging
environment(source level debugging environment),
you can set breakpoint, evaluate any variable,
step into and over in runtime just like any application.
So running kernel boot process line by line is possible.
(It may took days and nights booting line by line)

There are several options for that debugging environment.

Try this first.

http://kgdb.linsyssoft.com/quickstart.htm

It is also easier, debugging with UML.
User Mode Linux is a user space build of kernel.
just like any compiled linux application. So you can debug it with gdb.

The other option is kgdb + qemu sytle.
Google "howto kgdb with qemu" for that.

But you need to remember this operation needs c programming
experience. If not, it would be painful and discouraging.

Good luck.
 
  


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
Help....Linux + Study Guides! Dantana101 Linux - Certification 2 11-01-2007 03:09 PM
how to study linux sake Linux - Newbie 7 11-08-2005 06:29 AM
linux study... os2 General 4 11-04-2005 05:54 PM
Where to study linux at its best i chennai..? metoome General 3 03-27-2004 11:50 AM
Case Study For Linux OS varunbihani Linux - General 3 11-08-2003 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:46 PM.

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
Open Source Consulting | Domain Registration