Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 1 | ARM Trusted Firmware - version 1.4 |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 2 | ================================== |
| 3 | |
| 4 | ARM Trusted Firmware provides a reference implementation of secure world |
| 5 | software for `ARMv8-A`_, including a `Secure Monitor`_ executing at |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 6 | Exception Level 3 (EL3). It implements various ARM interface standards, such as: |
| 7 | |
| 8 | - The `Power State Coordination Interface (PSCI)`_ |
| 9 | - Trusted Board Boot Requirements (TBBR, ARM DEN0006C-1) |
| 10 | - `SMC Calling Convention`_ |
| 11 | - `System Control and Management Interface`_ |
| 12 | |
| 13 | As far as possible the code is designed for reuse or porting to other ARMv8-A |
| 14 | model and hardware platforms. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 15 | |
| 16 | ARM will continue development in collaboration with interested parties to |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 17 | provide a full reference implementation of Secure Monitor code and ARM standards |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 18 | to the benefit of all developers working with ARMv8-A TrustZone technology. |
| 19 | |
| 20 | License |
| 21 | ------- |
| 22 | |
| 23 | The software is provided under a BSD-3-Clause `license`_. Contributions to this |
| 24 | project are accepted under the same license with developer sign-off as |
| 25 | described in the `Contributing Guidelines`_. |
| 26 | |
| 27 | This project contains code from other projects as listed below. The original |
| 28 | license text is included in those source files. |
| 29 | |
| 30 | - The stdlib source code is derived from FreeBSD code. |
| 31 | |
| 32 | - The libfdt source code is dual licensed. It is used by this project under |
| 33 | the terms of the BSD-2-Clause license. |
| 34 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 35 | - The LLVM compiler-rt source code is dual licensed. It is used by this |
| 36 | project under the terms of the University of Illinois "BSD-Like" license. |
| 37 | |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 38 | This Release |
| 39 | ------------ |
| 40 | |
| 41 | This release provides a suitable starting point for productization of secure |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 42 | world boot and runtime firmware, in either the AArch32 or AArch64 execution |
| 43 | state. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 44 | |
| 45 | Users are encouraged to do their own security validation, including penetration |
| 46 | testing, on any secure world code derived from ARM Trusted Firmware. |
| 47 | |
| 48 | Functionality |
| 49 | ~~~~~~~~~~~~~ |
| 50 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 51 | - Initialization of the secure world, for example exception vectors, control |
| 52 | registers and interrupts for the platform. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 53 | |
| 54 | - Library support for CPU specific reset and power down sequences. This |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 55 | includes support for errata workarounds and the latest ARM DynamIQ CPUs. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 56 | |
| 57 | - Drivers to enable standard initialization of ARM System IP, for example |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 58 | Generic Interrupt Controller (GIC), Cache Coherent Interconnect (CCI), |
| 59 | Cache Coherent Network (CCN), Network Interconnect (NIC) and TrustZone |
| 60 | Controller (TZC). |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 61 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 62 | - A generic `SCMI`_ driver to interface with conforming power controllers, for |
| 63 | example the ARM System Control Processor (SCP). |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 64 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 65 | - SMC (Secure Monitor Call) handling, conforming to the `SMC Calling |
| 66 | Convention`_ using an EL3 runtime services framework. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 67 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 68 | - `PSCI`_ library support for CPU, cluster and system power management |
| 69 | use-cases. |
| 70 | This library is pre-integrated with the AArch64 EL3 Runtime Software, and |
| 71 | is also suitable for integration with other AArch32 EL3 Runtime Software, |
| 72 | for example an AArch32 Secure OS. |
| 73 | |
| 74 | - A minimal AArch32 Secure Payload (SP\_MIN) to demonstrate `PSCI`_ library |
| 75 | integration with AArch32 EL3 Runtime Software. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 76 | |
| 77 | - Secure Monitor library code such as world switching, EL1 context management |
| 78 | and interrupt routing. |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 79 | When a Secure-EL1 Payload (SP) is present, for example a Secure OS, the |
| 80 | AArch64 EL3 Runtime Software must be integrated with a dispatcher component |
| 81 | (SPD) to customize the interaction with the SP. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 82 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 83 | - A Test SP/SPD to demonstrate AArch64 Secure Monitor functionality and SP |
| 84 | interaction with PSCI. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 85 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 86 | - SPDs for the `OP-TEE Secure OS`_, `NVidia Trusted Little Kernel`_ |
| 87 | and `Trusty Secure OS`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 88 | |
| 89 | - A Trusted Board Boot implementation, conforming to all mandatory TBBR |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 90 | requirements. This includes image authentication, Firmware Update (or |
| 91 | recovery mode), and packaging of the various firmware images into a |
| 92 | Firmware Image Package (FIP). |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 93 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 94 | - Pre-integration of TBB with the ARM TrustZone CryptoCell product, to take |
| 95 | advantage of its hardware Root of Trust and crypto acceleration services. |
| 96 | |
| 97 | - Support for alternative boot flows, for example to support platforms where |
| 98 | the EL3 Runtime Software is loaded using other firmware or a separate |
| 99 | secure system processor. |
| 100 | |
| 101 | - Support for the GCC, LLVM and ARM Compiler 6 toolchains. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 102 | |
| 103 | For a full description of functionality and implementation details, please |
| 104 | see the `Firmware Design`_ and supporting documentation. The `Change Log`_ |
| 105 | provides details of changes made since the last release. |
| 106 | |
| 107 | Platforms |
| 108 | ~~~~~~~~~ |
| 109 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 110 | Various AArch32 and AArch64 builds of this release has been tested on variants |
| 111 | r0, r1 and r2 of the `Juno ARM Development Platform`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 112 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 113 | Various AArch64 builds of this release have been tested on the following ARM |
| 114 | `FVP`_\ s (64-bit host machine only): |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 115 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 116 | NOTE: Unless otherwise stated, the FVP Version is 11.0, Build 11.0.34. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 117 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 118 | - ``Foundation_Platform`` |
| 119 | - ``FVP_Base_AEMv8A-AEMv8A`` (Version 8.5, Build 0.8.8502) |
| 120 | - ``FVP_Base_Cortex-A35x4`` |
| 121 | - ``FVP_Base_Cortex-A53x4`` |
| 122 | - ``FVP_Base_Cortex-A57x4-A53x4`` |
| 123 | - ``FVP_Base_Cortex-A57x4`` |
| 124 | - ``FVP_Base_Cortex-A72x4-A53x4`` |
| 125 | - ``FVP_Base_Cortex-A72x4`` |
| 126 | - ``FVP_Base_Cortex-A73x4-A53x4`` |
| 127 | - ``FVP_Base_Cortex-A73x4`` |
| 128 | - ``FVP_CSS_SGM-775`` (Version 11.0, Build 11.0.36) |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 129 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 130 | Various AArch32 builds of this release has been tested on the following ARM |
| 131 | `FVP`_\ s (64-bit host machine only): |
| 132 | |
| 133 | - ``FVP_Base_AEMv8A-AEMv8A`` (Version 8.5, Build 0.8.8502) |
| 134 | - ``FVP_Base_Cortex-A32x4`` |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 135 | |
| 136 | The Foundation FVP can be downloaded free of charge. The Base FVPs can be |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 137 | licensed from ARM. See the `ARM FVP website`_. |
| 138 | |
| 139 | All the above platforms have been tested with `Linaro Release 17.04`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 140 | |
| 141 | This release also contains the following platform support: |
| 142 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 143 | - HiKey and HiKey960 boards |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 144 | - MediaTek MT6795 and MT8173 SoCs |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 145 | - NVidia T132, T186 and T210 SoCs |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 146 | - QEMU emulator |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 147 | - RockChip RK3328, RK3368 and RK3399 SoCs |
| 148 | - Socionext UniPhier SoC family |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 149 | - Xilinx Zynq UltraScale + MPSoC |
| 150 | |
| 151 | Still to Come |
| 152 | ~~~~~~~~~~~~~ |
| 153 | |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 154 | - More platform support. |
| 155 | |
| 156 | - Ongoing support for new architectural features, CPUs and System IP. |
| 157 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 158 | - Ongoing support for new `PSCI`_, `SCMI`_ and TBBR features. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 159 | |
| 160 | - Ongoing security hardening, optimization and quality improvements. |
| 161 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 162 | For a full list of detailed issues in the current code, please see the `Change |
| 163 | Log`_ and the `GitHub issue tracker`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 164 | |
| 165 | Getting Started |
| 166 | --------------- |
| 167 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 168 | Get the Trusted Firmware source code from `GitHub`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 169 | |
| 170 | See the `User Guide`_ for instructions on how to install, build and use |
| 171 | the Trusted Firmware with the ARM `FVP`_\ s. |
| 172 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 173 | See the `Firmware Design`_ for information on how the Trusted Firmware works. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 174 | |
| 175 | See the `Porting Guide`_ as well for information about how to use this |
| 176 | software on another ARMv8-A platform. |
| 177 | |
| 178 | See the `Contributing Guidelines`_ for information on how to contribute to this |
| 179 | project and the `Acknowledgments`_ file for a list of contributors to the |
| 180 | project. |
| 181 | |
| 182 | Feedback and support |
| 183 | ~~~~~~~~~~~~~~~~~~~~ |
| 184 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 185 | ARM welcomes any feedback on Trusted Firmware. If you think you have found a |
| 186 | security vulnerability, please report this using the process defined in the |
| 187 | Trusted Firmware `Security Centre`_. For all other feedback, please use the |
| 188 | `GitHub issue tracker`_. |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 189 | |
| 190 | ARM licensees may contact ARM directly via their partner managers. |
| 191 | |
| 192 | -------------- |
| 193 | |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 194 | *Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.* |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 195 | |
| 196 | .. _ARMv8-A: http://www.arm.com/products/processors/armv8-architecture.php |
| 197 | .. _Secure Monitor: http://www.arm.com/products/processors/technologies/trustzone/tee-smc.php |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 198 | .. _Power State Coordination Interface (PSCI): PSCI_ |
| 199 | .. _PSCI: http://infocenter.arm.com/help/topic/com.arm.doc.den0022d/Power_State_Coordination_Interface_PDD_v1_1_DEN0022D.pdf |
| 200 | .. _SMC Calling Convention: http://infocenter.arm.com/help/topic/com.arm.doc.den0028b/ARM_DEN0028B_SMC_Calling_Convention.pdf |
| 201 | .. _System Control and Management Interface: SCMI_ |
| 202 | .. _SCMI: http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/DEN0056A_System_Control_and_Management_Interface.pdf |
| 203 | .. _Juno ARM Development Platform: http://www.arm.com/products/tools/development-boards/versatile-express/juno-arm-development-platform.php |
| 204 | .. _ARM FVP website: FVP_ |
| 205 | .. _FVP: https://developer.arm.com/products/system-design/fixed-virtual-platforms |
| 206 | .. _Linaro Release 17.04: https://community.arm.com/dev-platforms/b/documents/posts/linaro-release-notes-deprecated#LinaroRelease17.04 |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 207 | .. _OP-TEE Secure OS: https://github.com/OP-TEE/optee_os |
| 208 | .. _NVidia Trusted Little Kernel: http://nv-tegra.nvidia.com/gitweb/?p=3rdparty/ote_partner/tlk.git;a=summary |
Dan Handley | ed09d38 | 2017-07-05 17:40:29 +0100 | [diff] [blame] | 209 | .. _Trusty Secure OS: https://source.android.com/security/trusty |
| 210 | .. _GitHub: https://www.github.com/ARM-software/arm-trusted-firmware |
| 211 | .. _GitHub issue tracker: https://github.com/ARM-software/tf-issues/issues |
| 212 | .. _Security Centre: https://github.com/ARM-software/arm-trusted-firmware/wiki/ARM-Trusted-Firmware-Security-Centre |
| 213 | .. _license: ./license.rst |
| 214 | .. _Contributing Guidelines: ./contributing.rst |
| 215 | .. _Acknowledgments: ./acknowledgements.rst |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 216 | .. _Firmware Design: ./docs/firmware-design.rst |
| 217 | .. _Change Log: ./docs/change-log.rst |
Douglas Raillard | d7c21b7 | 2017-06-28 15:23:03 +0100 | [diff] [blame] | 218 | .. _User Guide: ./docs/user-guide.rst |
| 219 | .. _Porting Guide: ./docs/porting-guide.rst |