Linux system kernel compilation method guidance

Source: Internet
Author: User
Keywords nbsp kernel compile install APT
Tags aliyun application apt code compile configuration developers development

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; With the wide application of Linux operating system, especially the development of Linux in the embedded field, more and more people begin to devote themselves to the development of Linux kernel level. Faced with the increasingly large Linux kernel source code, developers will have to complete their own kernel code after the same problem, that is, how to integrate the source code into the Linux kernel, add the appropriate Linux configuration options, and eventually compiled into the Linux kernel. This requires understanding the Linux kernel configuration system.

As we all know, the Linux kernel is developed by Linux enthusiasts distributed around the world, and the Linux kernel faces many new changes every day. However, the Linux kernel organization does not appear to be chaotic, but it is very concise, and has a good extensibility, developers can easily add new content to the Linux kernel. One of the reasons is that Linux uses a modular kernel configuration system to ensure the extensibility of the kernel.

1. Need to install the compilation environment first

Enter root account:

> su

Enter password

Install the necessary tools:

> Apt Install build-essential

(Install GCC, make, etc.)

> Apt Install Libncurses-dev

(The library file required to install make Menuconfig)

> Apt install kernel-package, fakeroot

(Some of the configuration files and tools that generate kernel-image in the Debian system)

> Apt install initramfs-tools, module-init-tools

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.