Upgrade the kernel to the latest stable version 2.6.20.

Source: Internet
Author: User
Upgrade the kernel to the latest stable version 2.6.20 -- general Linux technology-Linux programming and kernel information. For more information, see the following section. I have been using magic linux 2.0. I am very grateful to my friends from the linux community in China for providing such a good linux version. The kernel used in magic linux 2.0 is 2.6.15.3. Today, we upgraded kernel 2.6.20 to the latest stable version to prepare for the future expansion of the TCP/IP protocol layer. Haha.

1. download the latest stable version 2.6.20 from www.kernel.org. Select F for the full version.

2. decompress the package to/usr/src (any folder is acceptable./usr/src is just a habit)

[Linux/usr/src] # tar-xjvf linux-2.6.20.3.tar.bz2

3. Configure and compile the kernel

After decompression, the default ARCH is i386. If there are no special requirements, you can only compile it. Otherwise, use make menuconfig to configure

[Linux/usr/src/linux-2.6.20.3] # make

After compilation, the bzImage kernel compression file is generated under arch/i386/boot.

3. Compile and install the module

To reduce the kernel size, many functions are configured as modules and dynamically loaded at system startup. Make modules compiles the configured module into ko. make modules_install, and installs the module under/lib/moduels/2.6.20.3.

[Linux/usr/src/linux-2.6.20.3] # make modules
[Linux/usr/src/linux-2.6.20.3] # make modules_install

4. Install the kernel

It's easy to make install. Its function is to copy the bzImage to/boot, and renamed the vmlinux-2.6.20.3

There is also the establishment of System. map-2.6.20.3, initrd-2.6.20.3.img

Another key step is to add a new startup Item in/boot/grub. conf for your convenience.

[Linux/usr/src/linux-2.6.20.3] # make install
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.