U-boot Study Notes (1): basic concepts, u-boot Study Notes

Source: Internet
Author: User

U-boot Study Notes (1): basic concepts, u-boot Study Notes

1. U-Boot, the full name of Universal Boot Loader, is an open source project that complies with the GPL terms. U-Boot is used for system Boot. U-Boot evolved from FADSROM, 8 xxROM, and PPCBOOT. Its source code directory and compilation form are very similar to the Linux kernel. In fact, many U-Boot source codes are simplified based on the corresponding Linux kernel source program, especially the drivers of some devices, this can be reflected in the comments of the U-Boot source code.

 

2. U-Boot not only supports embedded Linux system Boot, but also supports NetBS

D, VxWorks, QNX, RTEMS, ARTOS, LynxOS, and android embedded operating systems. The target operating systems to be supported are OpenBSD, NetBSD, FreeBSD, 4.4BSD, Linux, SVR4, Esix, Solaris, Irix, SCO, Dell, NCR, VxWorks, LynxOS, pSOS, QNX, RTEMS, ARTOS, and android. This is one of the meanings of Universal in U-Boot, And the other meaning is that U-Boot not only supports PowerPC series Processors, it also supports many commonly used series of processors, such as MIPS, x86, ARM, NiO, and XScale. These two features are exactly the development goal of the U-Boot project, that is, supporting as many embedded processors and embedded operating systems as possible. At present, U-Boot has the most abundant support for PowerPC series Processors and the most complete support for Linux.

 

3. Advantages:

Reasons for selecting U-Boot: ① open source code; ② support multiple embedded operating system kernels, such as Linux, NetBSD, VxWorks, QNX, RTEMS, ARTOS, LynxOS, and android; ③ support multiple processor series, such as PowerPC, ARM, x86, and MIPS; ④ high reliability and stability; ⑤ highly flexible function settings, suitable for U-Boot debugging, different operating system Boot requirements, product release, etc.; 6 a wide range of device driver source code, such as serial port, Ethernet, SDRAM, FLASH, LCD, NVRAM, EEPROM, RTC, and keyboard; 7. Rich development debugging documents and powerful network technical support; 4. directory structure: * files related to the target board of the board, mainly including SDRAM and FLASH drives; * common Code independent of the processor architecture, such as memory size detection and fault detection; * cpu-related files. For example, the mpc8xx sub-directory contains files such as serial port, network port, LCD driver, and interrupt initialization; * driver general-purpose device driver, such as CFI FLASH driver (currently better support for INTEL FLASH) * doc U-Boot instructions; * examples sample programs that can be run under U-Boot, such as hello_world.c and timer. c; * include U-Boot header files. In particular, the configuration header files related to the target board in the configs subdirectory are frequently modified during transplantation; * files related to the lib_xxx processor system, for example, the lib_ppc and lib_arm directories contain files related to PowerPC and ARM architectures, and * net file directories related to network functions, such as bootp, nfs, and tftp; * directory of post power-on self-check files. Still need to be further improved; * rtc RTC driver; * tools for creating U-Boot S-RECORD and BIN image files; 5. the working mode of U-Boot includes the start loading mode and download mode. The boot loading mode is the normal working mode of the Bootloader. When an embedded product is released, the Bootloader must work in this mode. The Bootloader loads the embedded operating system from FLASH to the SDRAM for running, the entire process is automatic. In the download mode, Bootloader downloads the kernel image or root file system image from the PC to the FLASH of the target board through some communication means. You can use some command interfaces provided by Bootloader to perform the operations you want. The makefile file is analyzed below

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.