LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2009, 11:20 AM   #1
cheesysam
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
Question Beginning Kernel Hacking


I'm going to be doing some kernel hacking as part of a final year compsci project.

What is the best way of starting this, for instance is there some sort of sandbox mode for running the kernel. My current attempts have been with Arch and slackware linux running in a VM but has proven to be a nightmare even getting a stable installation.

Where do I start with this? Any suggestions are welcomed.
 
Old 07-05-2009, 11:35 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Why do you need a VM? Generally, you get the source, compile your kernel, install it alongside with the existing stable kernel in your system, boot it, see how it goes, reboot the stable kernel and continue hacking.
 
Old 07-08-2009, 10:06 AM   #3
cheesysam
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
That's excellent. I found a guide and did that. Thanks for the help.

How easy is it to recompile modules on their own so I don't have to sit through the whole compile process again? That took ages.
 
Old 07-08-2009, 10:25 AM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
You can certainly issue the make modules and make modules_install commands without rebuilding the kernel binary. You can even recompile a single module without rebuilding the whole tree, there are threads here that discuss that. But everything depends on how you changed your configuration before recompiling modules. If, for example, some section was deselected in config and you you compile a standalone module from that section without recompiling the kernel binary, that module will not load correctly.
 
  


Reply



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
Kernel Hacking LinuxNoob75 Linux - Kernel 6 02-21-2008 10:54 AM
Kernel Hacking Siva4Linux Linux - Kernel 3 11-20-2006 01:27 AM
Beginning Kernel Programming -- where to start? koodoo Programming 7 11-17-2005 01:08 PM
Kernel Hacking sigep739 Linux - Software 2 01-08-2005 12:30 AM
Kernel hacking AMDPwred Linux - General 5 06-22-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 AM.

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