Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 1 | ################## |
| 2 | Trusted Firmware M |
| 3 | ################## |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 4 | |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 5 | Trusted Firmware-M (TF-M) implements the Secure Processing Environment (SPE) |
| 6 | for Armv8-M, Armv8.1-M architectures (e.g. the `Cortex-M33`_, `Cortex-M23`_, |
| 7 | `Cortex-M55`_ processors) or dual-core platforms. |
| 8 | It is the Platform Security Architecture (PSA) reference implementation |
| 9 | aligning with `PSA Certified`_ guidelines, enabling chips, |
| 10 | Real Time Operating Systems and devices to become PSA Certified. |
| 11 | |
| 12 | TF-M relies on an isolation boundary between the Non-secure Processing |
| 13 | Environment (NSPE) and the Secure Processing Environment (SPE). It can but is |
| 14 | not limited to using the `Arm TrustZone technology`_ on Armv8-M and Armv8.1-M |
| 15 | architectures. In pre-Armv8-M architectures physical core isolation is required. |
| 16 | |
| 17 | **Trusted Firmware-M consists of:** |
| 18 | |
| 19 | - Secure Boot to authenticate integrity of NSPE and SPE images |
| 20 | - TF-M Core responsible for controlling the isolation, communication and |
| 21 | execution within SPE and with NSPE |
| 22 | - Crypto, Internal Trusted Storage (ITS), Protected Storage (PS) and |
| 23 | Attestation secure services |
| 24 | |
| 25 | .. figure:: readme_tfm_v8.png |
| 26 | :scale: 65 % |
| 27 | :align: center |
| 28 | |
| 29 | PSA FF compiant design with TF-M |
| 30 | |
| 31 | Applications and Libraries in the Non-secure Processing Environment can |
| 32 | utilize these secure services with a standardized set of PSA Functional APIs. |
| 33 | Applications running on Cortex-M devices can leverage TF-M services to ensure |
| 34 | secure connection with edge gateways and IoT cloud services. It also protects |
| 35 | the critical security assets such as sensitive data, keys and certificates on |
| 36 | the platform. TF-M is supported on several Cortex-M based |
| 37 | :doc:`Microcontrollers </platform/ext/index>` and Real Time Operating |
| 38 | Systems (RTOS). |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 39 | |
| 40 | Terms ``TFM`` and ``TF-M`` are commonly used in documents and code and both |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 41 | refer to ``Trusted Firmware M.`` :doc:`Glossary </docs/reference/glossary>` |
| 42 | has the list of terms and abbreviations. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 43 | |
| 44 | ####### |
| 45 | License |
| 46 | ####### |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 47 | The software is provided under a BSD-3-Clause :doc:`License </docs/contributing/lic>`. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 48 | Contributions to this project are accepted under the same license with developer |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 49 | sign-off as described in the :doc:`Contributing Guidelines </docs/contributing/contributing>`. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 50 | |
| 51 | This project contains code from other projects as listed below. The code from |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 52 | external projects is limited to ``app``, ``bl2``, ``lib`` and ``platform`` |
| 53 | folders. The original license text is included in those source files. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 54 | |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 55 | - The ``app`` folder contains files imported from CMSIS_5 project and the files |
| 56 | have Apache 2.0 license. |
| 57 | - The ``bl2`` folder contains files imported from MCUBoot project and the files |
| 58 | have Apache 2.0 license. |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 59 | - The ``lib`` folder may contain 3rd party files with diverse licenses. |
| 60 | - The ``platform`` folder currently contains platforms support imported from |
| 61 | the external project and the files may have different licenses. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 62 | |
| 63 | .. Note:: |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 64 | Any folder that contains or directly imports 3rd party code is kept in a |
| 65 | specific subfolder named ``ext`` so that it can be isolated if required. |
| 66 | The 'ext' folder can be seen in the folders above mentioned. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 67 | |
Soby Mathew | 6325be5 | 2020-06-17 13:58:51 +0100 | [diff] [blame] | 68 | ######################### |
| 69 | Release Notes and Process |
| 70 | ######################### |
| 71 | The :doc:`Release Cadence and Process </docs/contributing/release_process>` provides |
| 72 | release cadence and process information. |
| 73 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 74 | The :doc:`Change Log & Release Notes </docs/reference/changelog>` provides details of |
Soby Mathew | d8efe8f | 2020-03-16 15:19:05 +0000 | [diff] [blame] | 75 | major features of the release and platforms supported. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 76 | |
| 77 | ############### |
| 78 | Getting Started |
| 79 | ############### |
| 80 | |
| 81 | ************ |
| 82 | Prerequisite |
| 83 | ************ |
| 84 | Trusted Firmware M provides a reference implementation of PSA specifications. |
| 85 | It is assumed that the reader is familiar with PSA concepts and terms. PSA |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 86 | specifications can be found at |
| 87 | `Platform Security Architecture Resources <https://developer.arm.com/architectures/security-architectures/platform-security-architecture>`__. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 88 | |
| 89 | The current TF-M implementation specifically targets TrustZone for ARMv8-M so a |
| 90 | good understanding of the v8-M architecture is also necessary. A good place to |
| 91 | get started with ARMv8-M is |
| 92 | `developer.arm.com <https://developer.arm.com/technologies/trustzone>`__. |
| 93 | |
| 94 | ********************** |
| 95 | Really getting started |
| 96 | ********************** |
Ken Liu | fc75006 | 2020-05-09 15:16:20 +0800 | [diff] [blame] | 97 | Trusted Firmware M source code is available on |
Minos Galanakis | 0f39fa5 | 2020-06-08 16:53:53 +0100 | [diff] [blame] | 98 | `git.trustedfirmware.org <https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/>`__. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 99 | |
| 100 | To build & run TF-M: |
| 101 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 102 | - Follow the :doc:`SW requirements guide </docs/getting_started/tfm_sw_requirement>` |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 103 | to set up your environment. |
| 104 | - Follow the |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 105 | :doc:`Build instructions </docs/getting_started/tfm_build_instruction>` to compile |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 106 | and build the TF-M source. |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 107 | - Follow the :doc:`User guide </docs/getting_started/tfm_user_guide>` for information |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 108 | on running the example. |
| 109 | |
| 110 | To port TF-M to a another system or OS, follow the |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 111 | :doc:`OS Integration Guide </docs/getting_started/tfm_integration_guide>` |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 112 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 113 | Please also see the :doc:`glossary </docs/reference/glossary>` of terms used in the project. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 114 | |
Minos Galanakis | e409401 | 2020-06-12 14:25:34 +0100 | [diff] [blame] | 115 | :doc:`Contributing Guidelines </docs/contributing/contributing>` contains guidance on how to |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 116 | contribute to this project. |
| 117 | |
| 118 | Further documents can be found in the ``docs`` folder. |
| 119 | |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 120 | ################### |
| 121 | Platforms supported |
| 122 | ################### |
Mark Horvath | 9a5a9b9 | 2019-11-29 15:57:55 +0100 | [diff] [blame] | 123 | - Cortex-M55 system: |
| 124 | |
| 125 | - `Fast model FVP_SSE300_MPS2. |
| 126 | <https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps>`_ |
| 127 | |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 128 | - Cortex-M33 system: |
| 129 | |
| 130 | - `FPGA image loaded on MPS2 board. |
| 131 | <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_ |
| 132 | - `Fast model FVP_MPS2_AEMv8M. |
| 133 | <https://developer.arm.com/products/system-design/fixed-virtual-platforms>`_ |
| 134 | - `Musca-A test chip board. |
| 135 | <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-a-test-chip-board>`_ |
| 136 | - `Musca-B1 test chip board. |
| 137 | <https://developer.arm.com/products/system-design/development-boards/iot-test-chips-and-boards/musca-b-test-chip-board>`_ |
| 138 | - `Musca-S1 test chip board. |
| 139 | <https://developer.arm.com/tools-and-software/development-boards/iot-test-chips-and-boards/musca-s1-test-chip-board>`_ |
| 140 | - `FPGA image loaded on MPS3 board. |
| 141 | <https://developer.arm.com/tools-and-software/development-boards/fpga-prototyping-boards/mps3>`_ |
| 142 | - `Arm DesignStart FPGA on AWS Cloud. |
| 143 | <https://developer.arm.com/docs/101965/0102/arm-designstart-fpga-on-cloud-arm-ds-getting-started>`_ |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 144 | - `LPC55S69. |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 145 | <https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc5500-cortex-m33/lpcxpresso55s69-development-board:LPC55S69-EVK>`_ |
Ludovic Barre | 8a77bdd | 2020-03-26 19:53:07 +0100 | [diff] [blame] | 146 | - `NUCLEO L552ZE Q. |
| 147 | <https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards/nucleo-l552ze-q.html>`_ |
| 148 | - `DISCO L562QE. |
| 149 | <https://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits/stm32l562e-dk.html>`_ |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 150 | |
| 151 | - Cortex-M23 system: |
| 152 | |
| 153 | - `FPGA image loaded on MPS2 board. |
| 154 | <https://developer.arm.com/products/system-design/development-boards/cortex-m-prototyping-systems/mps2>`_ |
| 155 | |
| 156 | - Dual Core Cortex-M system: |
| 157 | |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 158 | - `PSoc64. |
Tamas Ban | ab1c828 | 2020-04-29 10:00:04 +0100 | [diff] [blame] | 159 | <https://www.cypress.com/documentation/product-brochures/cypress-psoc-64-secure-microcontrollers>`_ |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 160 | |
| 161 | #################### |
| 162 | Feedback and support |
| 163 | #################### |
Minos Galanakis | fc6804e | 2020-03-10 11:03:34 +0000 | [diff] [blame] | 164 | For this release, feedback is requested via email to |
| 165 | `tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>`__. |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 166 | |
| 167 | ############### |
| 168 | Version history |
| 169 | ############### |
Mate Toth-Pal | 955235a | 2020-06-15 13:48:34 +0200 | [diff] [blame^] | 170 | +-------------+--------------+--------------------+-------------------+ |
| 171 | | Version | Date | Description | PSA-arch tag/hash | |
| 172 | +=============+==============+====================+===================+ |
| 173 | | v1.0-beta | 2019-02-15 | 1.0-beta release | - | |
| 174 | +-------------+--------------+--------------------+-------------------+ |
| 175 | | v1.0-RC1 | 2019-05-31 | 1.0-RC1 release | v19.06_API0.9 | |
| 176 | +-------------+--------------+--------------------+-------------------+ |
| 177 | | v1.0-RC2 | 2019-10-09 | 1.0-RC2 release | v19.06_API0.9 | |
| 178 | +-------------+--------------+--------------------+-------------------+ |
| 179 | | v1.0-RC3 | 2019-11-29 | 1.0-RC3 release | v19.06_API0.9 | |
| 180 | +-------------+--------------+--------------------+-------------------+ |
| 181 | | v1.0 | 2020-03-27 | 1.0 release | v20.03_API1.0 | |
| 182 | +-------------+--------------+--------------------+-------------------+ |
| 183 | | v1.1 | 2020-07-15 | 1.1 release | 1f960947 | |
| 184 | +-------------+--------------+--------------------+-------------------+ |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 185 | |
Minos Galanakis | a8f9d10 | 2020-07-06 16:09:45 +0100 | [diff] [blame] | 186 | .. _Cortex-M33: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m33 |
| 187 | .. _Cortex-M23: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m23 |
| 188 | .. _Cortex-M55: https://developer.arm.com/ip-products/processors/cortex-m/cortex-m55 |
| 189 | .. _PSA Certified: https://www.psacertified.org/about/developing-psa-certified/ |
| 190 | .. _Arm TrustZone technology: https://developer.arm.com/ip-products/security-ip/trustzone/trustzone-for-cortex-m |
| 191 | |
Galanakis, Minos | 6ccf7ec | 2019-11-07 15:15:05 +0000 | [diff] [blame] | 192 | -------------- |
| 193 | |
Minos Galanakis | fc6804e | 2020-03-10 11:03:34 +0000 | [diff] [blame] | 194 | *Copyright (c) 2017-2020, Arm Limited. All rights reserved.* |