Article title: Upgrade your linux kernel in five steps. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. download the kernel
Http://www.kernel.org
2. decompress the kernel
# Tar jvxf linux-2.6.6.tar.bz2/unzip the kernel installation package.
# Mv linux-2.6.6/usr/src // Move the unzipped kernel folder to the/usr/src directory.
3. configuration, compilation, and update
# Cd/usr/src/linux-2.6.6/go to the kernel directory after decompression and moving.
# Make mrproper/this command ensures that there are no correct. o files and file dependencies in the source code directory.
# Make menuconfig/configure kernel options (also available # make xconfig)
When # make menuconfig is used, a graphical interface is displayed. There are several options, and you can use the arrow keys to select sub-options, which are determined by the Y key. Several important options are described here:
(1) in the Loadable Module support option, you must select "Module unloading" and "Automatic kernel module loading;
(2) the Preemptible Kernel option must be selected in Processor type and features, which is one of the important reasons for 2.6.x Kernel to be better than 2.4.x Kernel;
(3) The loopback and ramdisk support must be selected in Device Drivers -- Block Devices; the "Device mapper" must be selected in device Drivers -- Multi-device support (RAID and LVM "; "Keyboards" and "Mice" must be selected for Device Drivers -- Input device support (otherwise, the keyboard and mouse cannot be recognized !); Device Drivers -- Graphics support ", which should be selected for frame buffer support;" oss api emulation "should be selected for ALSA options (it is more convenient to install sound cards in the future ); device Drivers -- select all USB parts;
(4) Remember to select NTFS for File system.
(5) you can take the default value for others. if you need other special support technologies, you can find the corresponding top selection options and exit and save them. The next step is to compile them on the terminal.
4. Compile the kernel
Enter the following command on the terminal:
# Make/this command runs for about 100 minutes.
# Make modules_install/This command is necessary only when "Yes" is selected in the response to Enable loadable module support (CONFIG_MODULES) during your configuration, the function is to copy the module to the required directory.
# Make install/the previous steps of copying the kernel and System. map and modifying Grub. conf are automatically implemented by make install.
5. restart
# Reboot
6. two linux options will appear in the grub menu, one of which is Red Hat Linux (2.6.29 *)
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