Compile Linux kernel 2.6.21.5unicon-general Linux technology-Linux programming and kernel information. For details, see the following. Vi/etc/make. conf
Download the kernel, decompress it to/usr/src/, and create a new directory
Cd/usr/src/
Ln-s linux-2.6.21.5 linux
The following is the README of the kernel.
If you install the full sources, put the kernel tarball in a directory where you have permissions (eg. your home directory) and unpack it:
Gzip-cd linux-2.6.XX.tar.gz | tar xvf-
Or
Bzip2-dc linux-2.6.XX.tar.bz2 | tar xvf-
Replace "XX" with the version number of the latest kernel.
Do NOT use the/usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files. they shocould match the library, and not get messed up by whatever the kernel-du-jour happens to be.
Do what he says best, no matter whether it is done or not. If something goes wrong, you have to do what he says.
Make proper
Make menuconfig
Make
Make modules_install
Make install
After executing the make mrproper command, you can copy config-xxx to the/usr/src/linux directory under the/boot directory. Run the make menuconfig command to directly call the./config File copied to the File from the Load an Alternate Configuration File option for Kernel Configuration. This configuration file is the default configuration option on the machine. This makes it much easier. After all, there are many complicated kernel options. Unless you are familiar with each option, we recommend that you call the original configuration of the machine for adjustment.
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