image-terminology.rst 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. Image Terminology
  2. =================
  3. This page contains the current name, abbreviated name and purpose of the various
  4. images referred to in the Trusted Firmware project.
  5. Common Image Features
  6. ---------------------
  7. - Some of the names and abbreviated names have changed to accommodate new
  8. requirements. The changed names are as backward compatible as possible to
  9. minimize confusion. Where applicable, the previous names are indicated. Some
  10. code, documentation and build artefacts may still refer to the previous names;
  11. these will inevitably take time to catch up.
  12. - The main name change is to prefix each image with the processor it corresponds
  13. to (for example ``AP_``, ``SCP_``, ...). In situations where there is no
  14. ambiguity (for example, within AP specific code/documentation), it is
  15. permitted to omit the processor prefix (for example, just BL1 instead of
  16. ``AP_BL1``).
  17. - Previously, the format for 3rd level images had 2 forms; ``BL3`` was either
  18. suffixed with a dash ("-") followed by a number (for example, ``BL3-1``) or a
  19. subscript number, depending on whether rich text formatting was available.
  20. This was confusing and often the dash gets omitted in practice. Therefore the
  21. new form is to just omit the dash and not use subscript formatting.
  22. - The names no longer contain dash ("-") characters at all. In some places (for
  23. example, function names) it's not possible to use this character. All dashes
  24. are either removed or replaced by underscores ("_").
  25. - The abbreviation BL stands for BootLoader. This is a historical anomaly.
  26. Clearly, many of these images are not BootLoaders, they are simply firmware
  27. images. However, the BL abbreviation is now widely used and is retained for
  28. backwards compatibility.
  29. - The image names are not case sensitive. For example, ``bl1`` is
  30. interchangeable with ``BL1``, although mixed case should be avoided.
  31. Trusted Firmware Images
  32. -----------------------
  33. Firmware Image Package: ``FIP``
  34. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. This is a packaging format used by TF-A to package firmware images in a single
  36. binary. The number and type of images that should be packed in a FIP is
  37. platform-specific and may include TF-A images and other firmware images
  38. required by the platform. For example, most platforms require a BL33 image
  39. which corresponds to the normal world bootloader (e.g. UEFI or U-Boot).
  40. AP Boot ROM: ``AP_BL1``
  41. ~~~~~~~~~~~~~~~~~~~~~~~
  42. Typically, this is the first code to execute on the AP and cannot be modified.
  43. Its primary purpose is to perform the minimum initialization necessary to load
  44. and authenticate an updateable AP firmware image into an executable RAM
  45. location, then hand-off control to that image.
  46. AP RAM Firmware: ``AP_BL2``
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. This is the 2nd stage AP firmware. It is currently also known as the "Trusted
  49. Boot Firmware". Its primary purpose is to perform any additional initialization
  50. required to load and authenticate all 3rd level firmware images into their
  51. executable RAM locations, then hand-off control to the EL3 Runtime Firmware.
  52. EL3 Runtime Firmware: ``AP_BL31``
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. Also known as "SoC AP firmware" or "EL3 monitor firmware". Its primary purpose
  55. is to handle transitions between the normal and secure world.
  56. Secure-EL1 Payload (SP): ``AP_BL32``
  57. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58. Typically this is a TEE or Trusted OS, providing runtime secure services to the
  59. normal world. However, it may refer to a more abstract Secure-EL1 Payload (SP).
  60. Note that this abbreviation should only be used in systems where there is a
  61. single or primary image executing at Secure-EL1. In systems where there are
  62. potentially multiple SPs and there is no concept of a primary SP, this
  63. abbreviation should be avoided; use the recommended **Other AP 3rd level
  64. images** abbreviation instead.
  65. AP Normal World Firmware: ``AP_BL33``
  66. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. For example, UEFI or uboot. Its primary purpose is to boot a normal world OS.
  68. Other AP 3rd level images: ``AP_BL3_XXX``
  69. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  70. The abbreviated names of the existing 3rd level images imply a load/execution
  71. ordering (for example, ``AP_BL31 -> AP_BL32 -> AP_BL33``). Some systems may
  72. have additional images and/or a different load/execution ordering. The
  73. abbreviated names of the existing images are retained for backward compatibility
  74. but new 3rd level images should be suffixed with an underscore followed by text
  75. identifier, not a number.
  76. In systems where 3rd level images are provided by different vendors, the
  77. abbreviated name should identify the vendor as well as the image
  78. function. For example, ``AP_BL3_ARM_RAS``.
  79. Realm Monitor Management Firmware: ``RMM``
  80. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  81. This is the Realm-EL2 firmware. It is required if
  82. :ref:`Realm Management Extension (RME)` feature is enabled. If a path to RMM
  83. image is not provided, TF-A builds Test Realm Payload (TRP) image by default
  84. and uses it as the RMM image.
  85. SCP Boot ROM: ``SCP_BL1`` (previously ``BL0``)
  86. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87. Typically, this is the first code to execute on the SCP and cannot be modified.
  88. Its primary purpose is to perform the minimum initialization necessary to load
  89. and authenticate an updateable SCP firmware image into an executable RAM
  90. location, then hand-off control to that image. This may be performed in
  91. conjunction with other processor firmware (for example, ``AP_BL1`` and
  92. ``AP_BL2``).
  93. This image was previously abbreviated as ``BL0`` but in some systems, the SCP
  94. may directly load/authenticate its own firmware. In these systems, it doesn't
  95. make sense to interleave the image terminology for AP and SCP; both AP and SCP
  96. Boot ROMs are ``BL1`` from their own point of view.
  97. SCP RAM Firmware: ``SCP_BL2`` (previously ``BL3-0``)
  98. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  99. This is the 2nd stage SCP firmware. It is currently also known as the "SCP
  100. runtime firmware" but it could potentially be an intermediate firmware if the
  101. SCP needs to load/authenticate multiple 3rd level images in future.
  102. This image was previously abbreviated as BL3-0 but from the SCP's point of view,
  103. this has always been the 2nd stage firmware. The previous name is too
  104. AP-centric.
  105. Firmware Update (FWU) Images
  106. ----------------------------
  107. The terminology for these images has not been widely adopted yet but they have
  108. to be considered in a production Trusted Board Boot solution.
  109. AP Firmware Update Boot ROM: ``AP_NS_BL1U``
  110. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  111. Typically, this is the first normal world code to execute on the AP during a
  112. firmware update operation, and cannot be modified. Its primary purpose is to
  113. load subsequent firmware update images from an external interface and communicate
  114. with ``AP_BL1`` to authenticate those images.
  115. During firmware update, there are (potentially) multiple transitions between the
  116. secure and normal world. The "level" of the BL image is relative to the world
  117. it's in so it makes sense to encode "NS" in the normal world images. The absence
  118. of "NS" implies a secure world image.
  119. AP Firmware Update Config: ``AP_BL2U``
  120. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  121. This image does the minimum necessary AP secure world configuration required to
  122. complete the firmware update operation. It is potentially a subset of ``AP_BL2``
  123. functionality.
  124. SCP Firmware Update Config: ``SCP_BL2U`` (previously ``BL2-U0``)
  125. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  126. This image does the minimum necessary SCP secure world configuration required to
  127. complete the firmware update operation. It is potentially a subset of
  128. ``SCP_BL2`` functionality.
  129. AP Firmware Updater: ``AP_NS_BL2U`` (previously ``BL3-U``)
  130. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  131. This is the 2nd stage AP normal world firmware updater. Its primary purpose is
  132. to load a new set of firmware images from an external interface and write them
  133. into non-volatile storage.
  134. Other Processor Firmware Images
  135. -------------------------------
  136. Some systems may have additional processors to the AP and SCP. For example, a
  137. Management Control Processor (MCP). Images for these processors should follow
  138. the same terminology, with the processor abbreviation prefix, followed by
  139. underscore and the level of the firmware image.
  140. For example,
  141. MCP Boot ROM: ``MCP_BL1``
  142. ~~~~~~~~~~~~~~~~~~~~~~~~~
  143. MCP RAM Firmware: ``MCP_BL2``
  144. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~