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 08-15-2007, 01:29 PM   #1
aaargh486
LQ Newbie
 
Registered: Jun 2007
Location: Huizingen, Belgium
Distribution: Ubuntu 7.04
Posts: 20

Rep: Reputation: 0
Want to become a kernel hacker


I've been using Linux (Ubuntu) for a while now, and I think it's time to do wherefore I came to Linux in the first time, kernel hacking.

Do you guys and gals have some advice for a newbie like me where to begin?

And I have one flaming question: if I change 1 tiny byte in for example /usr/src/linux/net/ipv4/udp.c do I have to recompile the whole kernel again or is there a shortcut?

Thanks in advance, aaargh486
 
Old 08-15-2007, 01:34 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
You might want to check out the Linux Kernel In A Nutshell website.
 
Old 08-16-2007, 12:40 PM   #3
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
Quote:
Originally Posted by aaargh486 View Post
And I have one flaming question: if I change 1 tiny byte in for example /usr/src/linux/net/ipv4/udp.c do I have to recompile the whole kernel again or is there a shortcut?
Every directory has it's own makefile, so in your case

make net/ipv4

would compile the files in that directory.

make M=net/ipv4

would compile and create the .o files. However, the file you mentioned has to be linked into the kernel-image, which is not done by the above command. You have to type 'make' again to do that and see your change in action. This last 'make' will only look for changed files and link them to the kernel image, given you have compiled the kernel before and the .o files are still there (so don't run 'make clean' after kernel compile in case you work on the source code).
 
Old 08-17-2007, 09:24 AM   #4
aaargh486
LQ Newbie
 
Registered: Jun 2007
Location: Huizingen, Belgium
Distribution: Ubuntu 7.04
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, Thanks a lot.
 
Old 09-03-2007, 09:39 AM   #5
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by aaargh486 View Post
I've been using Linux (Ubuntu) for a while now, and I think it's time to do wherefore I came to Linux in the first time, kernel hacking.

Do you guys and gals have some advice for a newbie like me where to begin?
Yeah, start by reading Greg Kroah-Hartman's book

"Linux Device Drivers 3."

You can download it (as a single web-page) from

http://m.domaindlx.com/LinuxHelp/ldd3/about-ldd3.htm

Last edited by jtshaw; 04-06-2008 at 12:39 PM.
 
Old 09-17-2007, 11:29 AM   #6
gauthamk
Member
 
Registered: Jun 2007
Location: Chennai-India
Posts: 39

Rep: Reputation: 15
Thumbs up

Hi thanks for the links.
 
Old 09-17-2007, 02:49 PM   #7
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
And if you want to go from someone who merely writes kernel code (modules or otherwise) to someone who is a part of the kernel development community, take a look at Linux Kernel Newbies.
 
  


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
Could it be a hacker? Madone_SL_5.5 Linux - Server 19 12-15-2006 11:31 AM
becoming a kernel hacker skywalker27182 Programming 4 08-03-2004 12:01 AM
Want to be a Kernel hacker/programmer uglyugly Programming 2 03-21-2004 05:46 PM
help much required against hacker TagnikZur Linux - General 7 03-08-2004 06:26 AM
hacker attack? zetsui Linux - General 4 08-04-2003 07:03 AM

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

All times are GMT -5. The time now is 02:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration