Debian-Based Kernel compilation-Linux Release Technology-Debian information. The following is a detailed description. The traditional kernel compilation method involves many steps. Debian provides users with the debian method to compile the kernel. You can directly generate a deb package and decompress it to install it.
2. Go to kernel.org to download the kernel source code you want to compile. For example, the current stable version is 2.6.22.1. Unpack it.
3. make menuconfig select the function to be compiled. Or copy the. config file of the old version you used to the kernel source tree and use make oldconfig to select the new function to generate the new Kernel configuration file.
4: $ make-kpkg clean (this step is required, man make-kpkg)
Compile the deb package of the kernel. After compilation, install and restart the application. The uname-r displays 2.6.22.1-bigsmp, which is officially controlled by the two parameters -- append_to_version-bigsmp; dpkg-l | grep linux-image, you will find that the deb package is described as 2850, which is the -- revision parameter. If initrd is not required, the -- initrd parameter can be left blank. This command actually runs make oldconfig and make dep.
5. After compilation, cd .. will find that A. deb package is generated. After you install dpkg-I, it uninstalls the kernel, initrd, modules, and grub, which means you can restart the machine without having to set anything. The system will apply the new kernel.
Conclusion: The deb package of the kernel is compiled to facilitate kernel upgrade of a large-scale debian system. After logging on to the machine, download the deb package, install, restart, and run the three commands to upgrade the kernel.
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