arm-trusted-firmware/docs/getting_started/prerequisites.rst

4.4 KiB

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

Prerequisites

This document describes the software requirements for building |TF-A| for AArch32 and AArch64 target platforms.

It may possible to build |TF-A| with combinations of software packages that are different from those listed below, however only the software described in this document can be officially supported.

Build Host

|TF-A| can be built using either a Linux or a Windows machine as the build host.

A relatively recent Linux distribution is recommended for building |TF-A|. We have performed tests using Ubuntu 16.04 LTS (64-bit) but other distributions should also work fine as a base, provided that the necessary tools and libraries can be installed.

Toolchain

|TF-A| can be built with any of the following cross-compiler toolchains that target the Armv7-A or Armv8-A architectures:

In addition, a native compiler is required to build the supporting tools.

Note

The software has also been built on Windows 7 Enterprise SP1, using CMD.EXE, Cygwin, and Msys (MinGW) shells, using version 5.3.1 of the GNU toolchain.

Note

For instructions on how to select the cross compiler refer to :ref:`Performing an Initial Build`.

System Message: ERROR/3 (<stdin>, line 40); backlink

Unknown interpreted text role "ref".

Software and Libraries

The following tools are required to obtain and build |TF-A|:

The following libraries must be available to build one or more components or supporting tools:

  • OpenSSL >= 1.0.1

    Required to build the cert_create tool.

The following libraries are required for Trusted Board Boot support:

  • mbed TLS == 2.16.2 (tag: mbedtls-2.16.2)

These tools are optional:

  • Device Tree Compiler (DTC) >= 1.4.6

    Needed if you want to rebuild the provided Flattened Device Tree (FDT) source files (.dts files). DTC is available for Linux through the package repositories of most distributions.

  • Arm Development Studio 5 (DS-5)

    The standard software package used for debugging software on Arm development platforms and |FVP| models.

Package Installation (Linux)

If you are using the recommended Ubuntu distribution then you can install the required packages with the following command:

sudo apt install build-essential git libssl-dev

The optional packages can be installed using:

sudo apt install device-tree-compiler

Supporting Files

TF-A has been tested with pre-built binaries and file systems from Linaro Release 19.06. Alternatively, you can build the binaries from source using instructions in :ref:`Performing an Initial Build`.

System Message: ERROR/3 (<stdin>, line 97); backlink

Unknown interpreted text role "ref".

Getting the TF-A Source

Source code for |TF-A| is maintained in a Git repository hosted on TrustedFirmware.org. To clone this repository from the server, run the following in your shell:

git clone "https://review.trustedfirmware.org/TF-A/trusted-firmware-a" && (cd "trusted-firmware-a" && mkdir -p .git/hooks && curl -Lo `git rev-parse --git-dir`/hooks/commit-msg https://review.trustedfirmware.org/tools/hooks/commit-msg; chmod +x `git rev-parse --git-dir`/hooks/commit-msg)

This will clone the Git repository also install a commit hook that automatically inserts appropriate Change-Id: lines at the end of your commit messages. These change IDs are required when committing changes that you intend to push for review via our Gerrit system.

You can read more about Git hooks in the githooks page of the Git documentation, available at: https://git-scm.com/docs/githooks

Alternatively, you can clone without the commit hook using:

git clone "https://review.trustedfirmware.org/TF-A/trusted-firmware-a"

Copyright (c) 2019, Arm Limited. All rights reserved.

Docutils System Messages

System Message: ERROR/3 (<stdin>, line 4); backlink

Undefined substitution referenced: "TF-A".

System Message: ERROR/3 (<stdin>, line 7); backlink

Undefined substitution referenced: "TF-A".

System Message: ERROR/3 (<stdin>, line 14); backlink

Undefined substitution referenced: "TF-A".

System Message: ERROR/3 (<stdin>, line 16); backlink

Undefined substitution referenced: "TF-A".

System Message: ERROR/3 (<stdin>, line 26); backlink

Undefined substitution referenced: "TF-A".

System Message: ERROR/3 (<stdin>, line 48); backlink

Undefined substitution referenced: "TF-A".

System Message: ERROR/3 (<stdin>, line 75); backlink

Undefined substitution referenced: "FVP".

System Message: ERROR/3 (<stdin>, line 106); backlink

Undefined substitution referenced: "TF-A".
</html>