The directory of kernel sources might not be there unless you have installed the kernel sources package. It is available from the standard reposities (if you have upgraded your kernel from an internet reposity), or in the installation cd (note: in Fedora's case it's probably a src/srpm disk, not one of the binary ones you used to install) - newer sources are in the internet reposities. Or you could fetch the sources from kernel.org - just download the (full) source package and extract it to /usr/src/.
It's common that /usr/src/ has linux-version directories which contain source code for the given versions (may be more sources than just one version), and a symlink called just 'linux' (/usr/src/linux) that points to the (usually newest) wanted source directory.
So get a kernel source package. They are available at rpm.pbone.net too if I'm right. Install that, and the sources should be there..
NOTE: after getting the sources there, before making any further questions or going about configuring or compiling, read at least the README (and INSTALL if it exists) file that is included in the source directory. It contains information about how you use the sources (might be version-dependent), and more information is available in the docs directory. That file tells, among other things, how to compile the kernel - Fedora might offer another way, for example it allows you probably to build your own .rpm from the compiled sources for easy upgrade, but still, read the README text file.
Last edited by b0uncer; 01-17-2008 at 01:30 PM.
|