Andrew Walbran | 066ee71 | 2019-11-15 16:54:37 +0000 | [diff] [blame^] | 1 | # Running Hafnium under Arm FVP |
Andrew Walbran | fe7d32d | 2019-08-05 14:25:56 +0100 | [diff] [blame] | 2 | |
| 3 | Arm offers a series of emulators known as Fixed Virtual Platforms (FVPs), which |
| 4 | simulate various processors. They are generally more accurate to the hardware |
| 5 | than QEMU, at the cost of being considerably slower. We support running |
| 6 | [tests](Testing.md) on the FVP as well as QEMU. |
| 7 | |
| 8 | ## Set up |
| 9 | |
| 10 | 1. Download the |
| 11 | [Armv8-A Base Platform FVP](https://developer.arm.com/products/system-design/fixed-virtual-platforms) |
| 12 | from Arm. |
| 13 | 1. Unzip it to a directory called `fvp` alongside the root directory of your |
| 14 | Hafnium checkout. |
| 15 | |
| 16 | ## Running tests |
| 17 | |
| 18 | To run tests with the FVP instead of QEMU, from the root directory of your |
| 19 | Hafnium checkout: |
| 20 | |
| 21 | ```shell |
| 22 | $ make && kokoro/ubuntu/test.sh --fvp |
| 23 | ``` |
| 24 | |
| 25 | See the `fvp` function in |
| 26 | [`hftest.py`](http://cs/hafnium/test/hftest/hftest.py?q=symbol:fvp) for details |
| 27 | on how this works. |
| 28 | |
| 29 | ## Other resources |
| 30 | |
| 31 | When running tests under the FVP we also use a prebuilt version of TF-A, which |
| 32 | is checked in under |
| 33 | [`prebuilts/linux-aarch64/arm-trusted-firmware/`](https://hafnium.googlesource.com/hafnium/prebuilts/+/refs/heads/master/linux-aarch64/arm-trusted-firmware/). |
| 34 | The |
| 35 | [README](https://hafnium.googlesource.com/hafnium/prebuilts/+/refs/heads/master/linux-aarch64/arm-trusted-firmware/README.md) |
| 36 | there has details on how it was built. The source code is available from the |
| 37 | [Arm Trusted Firmware site](https://developer.trustedfirmware.org/dashboard/view/6/). |
| 38 | |
| 39 | Documentation of the FVP (including memory maps) is |
| 40 | [available from Arm](https://static.docs.arm.com/100966/1101/fast_models_fvp_rg_100966_1101_00_en.pdf). |