Debian kernel Compilation

Source: Internet
Author: User
Debian kernel compilation-Linux Release Technology-Debian information. See the following for details. 1. download the new kernel.

Www.kernel.org recommends "the latest stable kernel (latest stable kernel )"

2. install necessary tools.

Apt-get install ncurses-dev bzip2 make patch kernel-package initrd-tools

3. Copy the downloaded compressed file to/usr/src.

Cp linux-2.6.21.1.tar.bz2/usr/src

4. Use the combination of bzip2 and tar for decompression.

Bunzip2-c linux-2.6.21.1.tar.bz2 | tar-x

5. Traditionally, the source code is stored in the/usr/src/linux directory, so a symbolic connection is required.

Ln-s linux-2.6.21.1 linux

Then use the cd to enter:

Cd linux

6. Run make mrproper to clear the next package.

7. You can use an existing configuration file as the basis for the new Kernel configuration file. First, copy the existing configuration file to the/usr/src/linux directory.

Cp/boot/config-'uname-R'./. config

Make oldconfig

When asked whether the features in the new kernel are included, it is always safe to select the default option.

8. Select the kernel compilation option.

Make menuconfig

9. Dependency generation

Make dep

10. Remove Old Data

Make clean

11. Build the kernel

Make bzImage

If a failure occurs, you can use make mrproper to clean the kernel source code tree (kernel soruce tree ~ Step 9.

12. Compilation Module

Make modules

13. Installation Module

Make modules_install

Install data in/lib/modules/'uname-R'

14. Install the core

Cp-I./arch/i386/boot/bzImage/boot/vmlinuz-2.6.21.1

15. Update the Startup Menu

/Sbin/update-grub
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.