For traditional compilation methods, see http://www.linuxidc.com/linux/2011-01/31456.htm. (The Ubuntu used by the author is the same as Fedora) preparation work su-c 'yuminstallrpmdevtool' (install rpmdevtools) yu
For traditional compilation methods, see http://www.linuxidc.com/linux/2011-01/31456.htm. (The author uses the same Ubuntu and Fedora)
Preparations
Su-c 'yum install rpmdevtool'(Install rpmdevtools)
Yum-utils must also be installed, but it is installed by default.
Step 1: Download the kernel source code package
Official Website: www.kernel.org
The latest version: 2.6.38-rc1, download URL: http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.38-rc1.tar.bz2
You can use wget http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.38-rc1.tar.bz2 to download
Step 2: extract the source code package
(Some people say that it is incorrect to decompress the source code to the/usr/src directory. You can decompress it to any directory)
Cd ~ Wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38-rc1.tar.bz2
Tar-jxvf linux-2.6.38-rc1.tar.bz2
Step 3: Configure options
Cd Linux-2.6.38-rc1
Cp / Boot / Config - 'Uname - R'. config
Make mrproper(Delete the garbage generated by the last compilation. This is not required for the first compilation)
Make menuconfig(Enable the kernel option configuration interface)
Select the second to last item, OK, and then exit.
Description, make menuconfig will find the. config configuration file under the linux-2.6.38-rc1 directory, if not found, use the CPU-related config file as the default configuration. Of course, we can also copy the configuration of the current system as a comparison, such as cp/boot/config-'uname-R'. config (. config is the hidden file ls-a to view)
Show me what I did after my success
Fedora