blob: bc3c466313f6b46b129addb91ad516fd90bbc1f4 [file] [log] [blame]
Joakim Bech8e5c5b32018-10-25 08:18:32 +02001.. _fvp:
2
3###
4FVP
5###
6The instructions here will tell how to build and run OP-TEE using Foundation
7Models.
8
9
10.. _fvp_build_instructions:
11
12Build instructions
13******************
14Start out by following the ":ref:`get_and_build_the_solution`" as described in
15:ref:`build`. However, stop before doing ":ref:`build_make`".
16
17Next you should obtain the `Armv8-A Foundation Platform (For Linux Hosts
18Only)`_. To download FVPs youll need to log in to Arm Self Service. That binary
19should be untar'ed to the root of the repo forest, i.e., like this:
20``<fpv-project>/Foundation_Platformpkg``. In the end after cloning all source
21code, getting the toolchains and "installing" Foundation_Platformpkg you should
22have a folder structure that looks like this:
23
24.. code-block:: none
25 :emphasize-lines: 9
26
27 $ ls -al
28 drwxrwxr-x 15 jbech jbech 4096 Feb 5 09:10 .
29 drwxr-xr-x 22 jbech jbech 4096 Jan 15 12:45 ..
30 drwxrwxr-x 18 jbech jbech 4096 Feb 5 09:10 arm-trusted-firmware
31 drwxrwxr-x 9 jbech jbech 4096 Feb 5 09:10 build
32 drwxrwxr-x 15 jbech jbech 4096 Feb 5 09:10 buildroot
33 drwxrwxr-x 51 jbech jbech 4096 Feb 5 09:10 edk2
34 drwxrwxr-x 5 jbech jbech 4096 Feb 5 09:10 edk2-platforms
35 drwxrwxr-x 6 jbech jbech 4096 Mar 15 2018 Foundation_Platformpkg
36 drwxrwxr-x 15 jbech jbech 4096 Feb 5 09:10 grub
37 drwxrwxr-x 26 jbech jbech 4096 Feb 5 09:10 linux
38 drwxrwxr-x 6 jbech jbech 4096 Feb 5 09:10 optee_client
39 drwxrwxr-x 10 jbech jbech 4096 Feb 5 09:10 optee_examples
40 drwxrwxr-x 11 jbech jbech 4096 Feb 5 09:10 optee_os
41 drwxrwxr-x 8 jbech jbech 4096 Feb 5 09:10 optee_test
42 drwxrwxr-x 7 jbech jbech 4096 Feb 5 09:10 .repo
43 lrwxrwxrwx 1 jbech jbech 23 Feb 5 09:09 toolchains
44
45When this pre-condition met you can simply continue with
46
47.. code-block:: bash
48
49 $ make run
50
51and then FVP should build the rootfs and then start the simulation and when you
52have a terminal you can log in and run xtest (as described at
53:ref:`build_run_xtest`).
54
55.. _Armv8-A Foundation Platform (For Linux Hosts Only): https://developer.arm.com/products/system-design/fixed-virtual-platforms