LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Beginning Kernel Hacking (https://www.linuxquestions.org/questions/linux-newbie-8/beginning-kernel-hacking-737861/)

cheesysam 07-05-2009 11:20 AM

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.

Uncle_Theodore 07-05-2009 11:35 AM

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. :)

cheesysam 07-08-2009 10:06 AM

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.

Uncle_Theodore 07-08-2009 10:25 AM

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.


All times are GMT -5. The time now is 10:49 AM.