Ubuntu download compiles the Linux kernel.

Source: Internet
Author: User
Tags git clone

1. Install Git tools

2, to the official website download Linux kernel https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git, this address is not very useful

Use the following Git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Http://vger.kernel.org/vger-lists.html#linux-kernel This is a discussion of Linux-driven mail groups

3. Linux tool Chain

ARM-LINUX-GCC and other compilation tools

LD and other link tools

Objdump Tools

4. Configuring the Kernel

Configuring the kernel is based on the hardware environment, compiling the relevant code, and ultimately generating the executable file.

Example: The process of compiling a core based on the Samsung 210 processor

    1. into the kernel file directory, extract the kernel files

      See the Makefile in the cross-tool chain? Cross_compile? = We're going to push the toolchain down there.
    2. Installation Tool Chain
      is to extract the relevant toolchain to the above position cross_compile? =
      1. Compile the kernel: Compile the relevant code according to the hardware environment, and eventually generate the executable file
        Select the required modules: Open the vi Config profile with macros that need to compile the module
        Choose a profile that is close to your development, and it is impossible to write the CP config_qt210. config from scratch.
      2. Make Menuconfig

Vmlinux is the original uncompressed executable file

Zimage is a compressed executable file, after compressing vmlinux, plus a header, these headers are composed of some programs that are used to decompress the

Uimage is a zimage for uboot booting, because uboot can boot other operating systems in addition to booting Linux.

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.