Joakim Bech | 8e5c5b3 | 2018-10-25 08:18:32 +0200 | [diff] [blame] | 1 | .. _fvp: |
| 2 | |
| 3 | ### |
| 4 | FVP |
| 5 | ### |
| 6 | The instructions here will tell how to build and run OP-TEE using Foundation |
| 7 | Models. |
| 8 | |
| 9 | |
| 10 | .. _fvp_build_instructions: |
| 11 | |
| 12 | Build instructions |
| 13 | ****************** |
| 14 | Start out by following the ":ref:`get_and_build_the_solution`" as described in |
| 15 | :ref:`build`. However, stop before doing ":ref:`build_make`". |
| 16 | |
| 17 | Next you should obtain the `Armv8-A Foundation Platform (For Linux Hosts |
| 18 | Only)`_. To download FVPs you’ll need to log in to Arm Self Service. That binary |
| 19 | should 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 |
| 21 | code, getting the toolchains and "installing" Foundation_Platformpkg you should |
| 22 | have 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 | |
| 45 | When this pre-condition met you can simply continue with |
| 46 | |
| 47 | .. code-block:: bash |
| 48 | |
| 49 | $ make run |
| 50 | |
| 51 | and then FVP should build the rootfs and then start the simulation and when you |
| 52 | have 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 |