Introduction to bootloader for video learning in China

Source: Internet
Author: User

I. Introduction to bootloader

1. Definition:

A short program before the operating system runs

2. features:

Initialize hardware devices;

Call the operating system;

3. installation:

After resetting, the system starts execution from the address 0x00000000. When nandflash is started, at the address 0, the first 4 kb is Ram. After power-on, the system copies the content of the first 4 kb of nandflash to ram.

4. Porting:

Bootloader depends on the specific CPU architecture and the configuration of embedded board-level devices.

5. Start the process:

Stage 1:

A. Hardware Device initialization (mainly registers inside the CPU)

B. Prepare the ram space for the second stage of loading bootloader

C. Copy the second stage of bootloader to the ram space.

D. Set the stack: the stack used by stage C code

E. Jump to the C entry point of stage2

Stage 2:

A. initialize the hardware (onboard device) to be used in this phase)

B. Read the kernel image and root file system image from flash to ram.

C. Call the kernel

6. startup and Development Modes

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.