Linux Kernel Configuration and compilation

Source: Internet
Author: User

Linux Kernel Configuration and compilation

One. Configuring the Kernel

(1). Why to configure the kernel

1. Hardware Requirements

2. Software Requirements

Pick what you need and get rid of it.

(2). How to configure the kernel

1. Make Config

Interactive configuration based on text mode

2. Make Menuconfig

Menu-based configuration with text mode

Advantages: Intuitive, simple, efficient

< > Do not select this feature

<m> kernel module is not ready to use the B.O file to be stored on the hard disk, need to add to the memory. Save Memory

<*>B.O files are stored in memory and can be used anytime, anywhere.

(3). Kernel Configuration Results

ls-a Command View configuration results, save in kernel

Two. Compiling the kernel

(1). Compile kernel----<*>

1.make Zimage

2.make Bzimage

* Difference: On X86 platform, Zimage can only be used for cores less than 512K

* For detailed compilation information, you can use:

#make Zimage V=1

#make Bzimage V=1

* * The compiled kernel is located in the arch/<cpu>/boot/directory * *

(2). Compile kernel module----<M>

Make modules compilation

(3). Making RAMDisk

Three. Installing the kernel

Four. Clean up the kernel

1. Makeclean

2. Makedisclean

Linux Kernel Configuration and compilation

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.