Originally Posted by
k210in
a. Now to get started to write a simple char driver, i need to get the kernel source tree on my disk. How do i do this (get the source tree) on ubuntu 10.04?
If you want to download the kernel with Ubuntu patches, you can either download the source package of one of the binary kernels:
Code:
apt-get source linux-image-2.6.32-24-generic
which downloads and decompresses the source of the 'linux-image-2.6.32-24-generic' package, or you can install the 'linux-source' package:
Code:
sudo apt-get install linux-source
which drops a tarball of the kernel in /usr/src.
You might also need all the build dependencies for the Linux image:
Code:
sudo apt-get build-dep linux-image-2.6.32-24-generic
Bookmarks