Manual compilation and upgrade of Kernel-general Linux technology-Linux programming and Kernel information. The following is a detailed description. Today, I glanced at the Internet and found that the Kernel was 2.6.23. Maybe this version has been out for a while, but I didn't notice it. However, the source of Fedora does not have an rpm package, so I downloaded one and manually compiled and installed it. The following describes the entire process.
Step 1: Download the source code:
There is nothing to say about this. Kernel.org: Find a useful image and download the latest source code. NOTE: For the sake of stability, it is best not to download the test version.
Step 2: extract the source code:
Move the downloaded source code to the/usr/src/kernel/folder and decompress it.
Step 3: Configure:
There are many configuration methods, such as make menueconfig or make gconfig. In this process, you must configure the kernel based on your machine and requirements and select the appropriate configuration. This process is very important and should be carefully carried out. If your system uses an ext3 disk, pay attention to the configuration file system (FS) compile etx3 support into the kernel instead of configuring it as a module (that is, convert the square brackets before the ext3 support into * instead of M ). If you do not pay attention to it, the system may encounter problems during startup.
Step 4: Compile
Follow these steps:
(1) make all
(2) make modules
(3) make modules_install
(4) make install
This completes the compilation and installation of the kernel.
Final adjustment
This final adjustment refers to some minor modifications to the grub. conf after make install. The modified part is at the end of the line of kernel/vmlinuz, And the automatically generated root = LABEL =/is changed to root =/dev/sdan (hdan ), here, n is the disk where your directory is located. As for whether it is hda or sda, check your current/dev/directory.
My modified grun. conf is as follows:
Default = 1
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu
Title Fedora (2.6.22.9-91. fc7)
Root (hd0, 0)
Kernel/vmlinuz-2.6.22.9-91.fc7 ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.22.9-91.fc7.img
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service