Debian kernel Compilation

Source: Internet
Author: User
Debian compilation kernel-Linux Release Technology-Debian information. The following is a detailed description. Learning references

1. download the latest kernel from the official website.
Wget-c http://www.kernel.org/pub/linux/... ux-2.6.20.6.tar.bz2

2. Update the software package Database
Aptitude update

3. install necessary packages
Aptitude install kernel-package libncurses5-dev fakeroot
Aptitude install bzip2 build-essential udev

4. Put the kernel under/usr/src and decompress it.
Cp yourkernelPATH/linux-2.6.20.6.tar.bz2/usr/src
Cd/usr/src
Tar jxvf linux-2.6.20.6.tar.bz2

5. linux-2.6.20.6 folder
Cd linux-2.6.20.6

6. Configure The Kernel
Make clean & make mrproper
To save trouble, copy and use the previous config File
Cp/boot/config-'uname-R'. config

7. Configure the kernel
Make menuconfig
If the specific configuration has time, follow the steps below:
Http://lamp.linux.gov.cn/Linux/kernel_options.html

8. Build The Kernel
Make-kpkg clean
Fakeroot make deb-pkg
This process is very long, depending on the speed and character of your machine.
Files that will generate linux-2.6.20.6_2.6.20.6_i386.deb under/usr/src

9. Install The New Kernel
Dpkg-I linux-2.6.20.6_2.6.20.6_i386.deb

10. Create A Ramdisk
Install several necessary packages first
Aptitude install libhtml-template-perl libparse-recdescent-perl
Aptitude install yaird

Create our ramdisk:
Mkinitrd. yaird-o/boot/initrd. img-2.6.20.6 2.6.20.6

11. Configure The GRUB Boot Loader
Update-grub
(If this command does not exist, reinstall grub: aptitude install grub and then update-grub)

12. Restart
Reboot

13. Check
Uname-r
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.