Debian's kernel compilation tool

Source: Internet
Author: User
Debian's kernel compilation tool-the Linux Release Technology-Debian information. The following is a detailed description. If you want to (or must) customize the kernel, we recommend that you download the kernel-package, which contains the script for building the kernelpackage and provides the Debian kernel-image package, run the following command in the top directory of the kernel source file:

Make-kpkg kernel_image

For help, run make-kpkg -- help

If there is no ready-made kernel-source-version package (here "version" refers to the kernel version number), you must download the new version of the kernel (or the desired version) on the Linx site ).

In/usr/doc/kernel-package/README, detailed instructions on kernel-package are provided.

Main steps:
Unpackage the Kernel source code and switch to the new directory.

Run the following (any) command to modify the kernel configuration.
Make config (command line interface ).
Make menuconfig note that the libncurses5-dev package must be installed.
Make xconfig (X11 Interface), you need to install the relevant X and Tcl/TK software packages.

After the configuration is complete, A. config file is generated in the top directory of the kernel source file.

Run the command: make-kpkg-rev Custom. N kernel_image, N indicates the version number specified by the user. A new Debian package for M.1 is generated, for example, the Linux 2.2.14 kernel, which is a kernel-image-2.2.14_Custom.1_i386.deb.

Install the generated Software Package
Run dpkg -- install/usr/src/kernel-image-VVV_Custom.N.deb to install the kernel. The installation script will:

Run the start loader, LILO (if installed ).
Install the custom kernel in the boot/vmlinuz_VVV-Custom.N and generate a symbolic connection.
The user is prompted to create a boot floppy disk. The Boot Disk only contains the basic kernel.

If you start the loader, such as grub or loadin, take the image to the appropriate location (such as/boot/grub or MS-DOS partition)
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.