Compile UBUNTU7.04 System Kernel

Source: Internet
Author: User
1. install required toolkit packages are: libncurses5-dev (menuconfig required) and essentialsudoaptitudeinstallbuild-essentialbin86kernel-packagesudoaptitudeinstalllibqt3-headerslibqt3-mt-devsudoaptitudeinstallmakesudoapt 1. install required Toolkit

Includes: libncurses5-dev (required by menuconfig) and essential

Sudo aptitude install build-essential bin86 kernel-package
Sudo aptitude install libqt3-headers libqt3-mt-dev
Sudo aptitude install make
Sudo aptitude install gcc // it is best to update the gcc even if it has been installed.
In addition, enter sudo mki on the terminal and press "Tab" twice to check whether the terminal displays
Mkinitramfs mkisofs
These two tools are used to generate *. imgfile during kernel compilation. If not, install them.

Step 2 download the kernel

Download the new kernel to/home at www.kernel.org.
Download linux-2.6.21.1.tar.bz2 (the original kernel is 2.6.21.1)

Step 3 preparations before Compilation

View the current kernel version
Uname-
2.6.15-26-server
If the downloaded kernel version is the same as the current kernel version:
Cd/lib/modules
Rename the folder under it
At the same time, you need to modify some items under/boot, and then modify/boot/grub/menu. lst.
It is troublesome. It is recommended to download a kernel higher than the current installed version.

Extract the linux-2.6.16.2 folder from linux-2.6.16.2.tar.bz2 and put it under/usr/src.
Sudo ln-s linux-2.6.16.2 linux // If the folder already has a link named linux, change it to linux. old first

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.