Android system Boot

Source: Internet
Author: User

The Android system start-up process consists of a Linux system start-up phase and an Android system boot connection.

1.linux system Boot

The Android operating system boot sequence is system power up, bootloader boot, Linux kernel boot, init initialization system service, etc. In fact, each step of the initiation process contains different security implications, especially when it comes to the choice between system security and user freedom that requires more technology and wisdom.

1.1 System power up and boot ROM

Like a traditional PC device, after the CPU on the Android system resets, the program pointer (PC) points to the 0 address at Reset (start address), the executable code that reads the startup program from that address runs directly, or the executable code and data are loaded into the CPU's built-in RAM. In the so-called boot ROM curing has a boot code, its starting address is located at the start address after the CPU reset (0 address), the CPU reset after the PC pointer to the place, to start code execution.

The boot ROM of an early PC is usually a prom, EPROM, or EEPROM, and the internally solidified procedure is the so-called BIOS, which is part of the bootloader we discuss later. The BIOS runs for initialization of the hardware device, and the system will not start booting the operating system until the primary boot sector MBR of the hard disk is loaded.

Embedded devices such as Android are different, there is no standardized bios, and there are no storage devices such as hard drives. The boot ROM is usually nor flash, or just NAND flash, loaded with the so-called boot code. Similar to the PC's BIOS and MBR, called bootloader. Of course, the start address of bootloader in poor Rom must exactly be the address pointed to by the CPU reset.

NOR Flash and NAND flash startup process are outlined below:

NOR Flash as the boot ROM startup process. Rom can be byte addressable, and the program executes sequentially. Because nor Flash has this nature, the startup code is placed in nor flash. The execution process is summarized as follows:

    • Nor flash at the beginning of the startup code, the program from nor Flash start;
    • Configure the EMI registers to set the address and access rules for each memory.
    • Configure the Power Management module, each module is powered
    • The startup code is copied to memory in the formal execution code in nor flash to improve execution efficiency.
    • Set the PC pointer to a fixed address in nor flash.
    • Set up address mappings to map 0 addresses to memory RAM space
    • Set the PC pointer to an incident code in RAM and start pointing to the code.

Android system Boot

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.