- Learning Embedded Linux Using the Yocto Project
- Alexandru Vaduva
- 337字
- 2021-07-16 13:49:34
The Yocto Project
The Yocto Project uses various recipes to define interactions to each of the supported bootloaders. Since there are multiple stages of booting, there are also multiple recipes and packages required inside the BSP. The recipes available for various bootloaders are not different from any other recipes available in the Yocto world. However, they have some details that make them unique.
The board that we will focus on here is the sama5d3_xplained
development board, and it is available inside the meta-atmel
layer. Inside this layer, the corresponding recipes for the first and second stage bootloaders can be found inside the recipes-bsp
directory. Here, I am referring to the at91bootstrap
and u-boot
recipes. There are some misconceptions about first stage and second stage bootloaders. They might be referred to as second level and third level bootloaders, because the boot ROM code may or may not be taken into account during a discussion. In this book, we prefer to call them as first stage and second stage bootloaders.
The AT91bootstrap
package represents the first-stage bootloader from Atmel available for their SOCs. It manages hardware initialization and also executes the second stage bootloader download from a boot media inside the memory; it starts it at the end. In the meta-atmel
layer, the second stage bootloader is u-boot
, and it is later used for the Linux operating system boot.
Usually, inside a BSP layer, the support for multiple development boards is offered, and this means that multiple versions and bootloader packages are offered as well. The distinction between them, however, is on the basis of machine configurations. For the SAMA5D3 Xplained development board, the machine configuration is available inside the conf/machine/sama5d3_xplained
file. In this file, the preferred bootloader versions, providers, and configurations are defined. If these configurations are not MACHINE
specific, they could very well be performed inside the package
recipe.
This is one example of the configurations available for the sama5d3_xplained
development board:
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-at91" UBOOT_MACHINE ?= "sama5d3_xplained_nandflash_config" UBOOT_ENTRYPOINT = "0x20008000" UBOOT_LOADADDRESS = "0x20008000" AT91BOOTSTRAP_MACHINE ?= "sama5d3_xplained"
- 深入理解Bootstrap
- TypeScript Blueprints
- Photoshop智能手機(jī)APP UI設(shè)計(jì)之道
- Mastering Spring MVC 4
- 我的第一本算法書
- Object-Oriented JavaScript(Second Edition)
- Microsoft System Center Orchestrator 2012 R2 Essentials
- SQL Server 2016數(shù)據(jù)庫(kù)應(yīng)用與開發(fā)習(xí)題解答與上機(jī)指導(dǎo)
- Learning Data Mining with R
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題解析與實(shí)驗(yàn)指導(dǎo)
- Python+Tableau數(shù)據(jù)可視化之美
- Python計(jì)算機(jī)視覺(jué)和自然語(yǔ)言處理
- Arduino機(jī)器人系統(tǒng)設(shè)計(jì)及開發(fā)
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript
- Apache Solr for Indexing Data