Compile the Linux kernel (Ubuntu7.10)

Source: Internet
Author: User
Finally, a deb file of the kernel is compiled. I have checked the main parts: boot/System. map-2.6.22.9-wuxb-1boot/config-2.6.22.9-wuxb-1boot/vmlinuz-2.6.22.9-wuxb-1lib/modules/here a pair of modules usr/share/doc/Linux-image-2.6.22.9-wuxb-1/several documents and make

Finally, a deb file of the kernel is compiled. Let's take a look at the main parts:

Boot/System. map-2.6.22.9-wuxb-1

Config-2.6.22.9-wuxb-1/boot

Vmlinuz-2.6.22.9-wuxb-1/boot

Lib/modules/here is a pair of modules

Usr/share/doc/Linux-image-2.6.22.9-wuxb-1/several documents

It is basically the same as using make for compilation, but using deb package for installation is naturally easier and easier, and grub is automatically changed.

You can manually tune the grub sequence. The newly installed kernel is in the front by default.

Compilation process:

Obtain the kernel source code. sudo apt-get install Linux-kernel-source is a convenient method in Ubuntu.

Decompress the Linux kernel to a folder (any), copy the config * file in the. boot/directory to the source directory, and rename it. config.

Make-menuconfig

Well configured (it is best not to configure it at the beginning)

Sudo make-kpkg -- initrd -- append_to_version =-wuxb-1 kernel_image kernel_headers

After compilation, you can find the two deb packages in the previous folder and install them.

Haha, I haven't tried whether the compiled kernel can be used yet.

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.