Linux system startup Process analysis

Source: Internet
Author: User

Guo Xiaoxing
Weibo: Guo Xiaoxing's Sina Weibo
Email:[email protected]
Blog: http://blog.csdn.net/allenwells
Github:https://github.com/allenwells

One system power up and boot ROM

NOR Flash as the boot ROM system boot process

    1. Nor flash at the beginning of the startup code, the program from nor Flash started.

    2. Configure the EMI registers to set the address and access rules for each memory.

    3. Configure the Power management module. Power up each module.

    4. The boot code copies the official running code in nor flash into memory. To improve operational efficiency.

    5. Set the PC pointer to a fixed address in nor flash.
    6. Set the address map to map to memory RAM space with 0 addresses.

    7. Set the PC pointer to the initialization code in RAM. Start running the code.

NAND Flash as the boot ROM system startup process

    1. Power on the initial. The DMA default setting moves the data stored in the first page of NAND flash into internal RAM, and then sets the address of the PC to the beginning of the internal RAM. Start running the code.
    2. Set the interrupt vector and hardware configuration in the startup code.
    3. Move the running code to an external SDRAM or DDR=RAM, leaving the location of the startup code.
    4. Move the boot code to the first address in the SDRAM or Ddr-ram.

    5. Set the remap. Maps the 0 address to the SDRAM or Ddr-ram first address again.
    6. Set the PC pointer and start running the official run code.
Two bootloader boot three Linux kernel boot

Non-compressed kernel: Image

Compression cores: Zimage

    1. Kernel initialization
    2. Device initialization
    3. Boot the kernel
    4. Mount File System
    5. Start the user space process
Four Init initialization system services
    1. Initializing the log system
    2. Parse the/init.rc and/init.%hardware%.rc files, run the Early-init, and run the parsed init, early-boot, boot, and execute property actions.
    3. For device initialization, property server initializes and opens the property service.

    4. Enter the wireless loop to wait for property settings or child process exit events.

Linux system startup Process analysis

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.