[출처] http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=1264341

우분투에서 리눅스 커널 프로그래밍 / Linux kernel programming on Ubuntu

kernel programming using ubuntu

Hello,

I'm a linux kernel newbie and want to "play/dig deeper" into the linux kernel. I want to do this using Ubuntu (9.04 x86).

To be able to do this, I'd like to use the same kernel repository (pref.. svn) as the one that is being used by Ubuntu. I ofcourse won't be checking in any code into that repository. Can some one give me some pointers on how to go about doing this?

Re: kernel programming using ubuntu

just install the kernel source package:
sudo apt-get install linux-source
Thus you'll get always the same kernel-source as the currenty installed ubuntu-kernel.

Now move into the directory /usr/src .You will see a file called linux-source-2.6.28.tar.bz2
This is a zipped file. You can extract it with
cd /usr/src && sudo tar -xvjf linux-source-2.6.28.tar.bz2 in a terminal window
Now you have the linux-source code in the directory /usr/src/linux-source-2.6.28

If you want to compile your own kernel, take a look at the Master Kernel Thread: http://ubuntuforums.org/showthread.php?t=311158

But if it comes to point 4 (downloading the kernel sources from kernel.org), skip this point if you want the same kernel sources as your currently installed ubuntu, because if you download this source, you will get the sources from kernel.org, which does'nt have the ubuntu-patches
__________________
watch out where the huskies go
and don't you eat that yellow snow (Zappa)

http://www.youtube.com/watch?v=YGZ5isu23ow
http://www.youtube.com/watch?v=aKOy_q1ykP0

Last edited by hal10000; September 12th, 2009 at 04:44 AM..

+ Recent posts