Detailed steps for correctly installing the kernel source code in FC3
Source: Internet
Author: User
Detailed steps for correctly installing the kernel source code in FC3-Linux general technology-Linux programming and kernel information. The following is a detailed description. Although the release notes of Fedora Core 3 and related posts on the Forum have explained how to install the kernel source code in FC3, I think it is still unclear in some places, so here are the detailed steps for your reference.
Prerequisites: First, you must know the architecture of your machine, whether it is i386 or i686. You can see the result of executing the command uname-rm.
1. Download the kernel source code package
Connection http://download.fedora.redhat.com/pu...i386/ OS /SRPMS/
Download kernel-2.6.9-1.667.src.rpm
2. Installation
Rpm-ivh kernel-2.6.9-1.667.src.rpm
The file is extracted to the SPECS directory under the/usr/src/redhat folder, which contains a kernel-2.6.spec
Go to/usr/src/redhat/SPECS and execute the command rpmbuild-bp -- target = i686 kernel-2.6.spec
In this case, a directory kernel-2.6.9 will be created in/usr/src/redhat/SOURCES, and a sub-directory linux-2.6.9 (this is the source code) will be created under the directory ), but don't be too happy. compile it again.
3. Compile
Go to the directory cd/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs, which contains several kernel configuration files based on your own machine architecture (i386 or i686 ), select kernel-2.6.9-i686.config (my machine is i686) and execute cp kernel-2.6.9-i686.config .. /. config. It must be noted that .. /. config, because this is to copy the kernel configuration file to the kernel source directory (/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9,
Finally, execute the command make oldconfig in the/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 directory
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.