Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 1 | Arm Versatile Express |
| 2 | ===================== |
Usama Arif | b8cd97f | 2019-02-05 15:44:17 +0000 | [diff] [blame] | 3 | |
| 4 | Versatile Express (VE) family development platform provides an |
| 5 | ultra fast environment for prototyping arm-v7 System-on-Chip designs. |
| 6 | VE Fixed Virtual Platforms (FVP) are simulations of Versatile Express boards. |
| 7 | The platform in arm-trusted-firmware has been verified with Arm Cortex-A5 |
| 8 | and Cortex-A7 VE FVP's. This platform is tested on and only expected to work |
| 9 | with single core models. |
| 10 | |
| 11 | Boot Sequence |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 12 | ------------- |
Usama Arif | b8cd97f | 2019-02-05 15:44:17 +0000 | [diff] [blame] | 13 | |
| 14 | BL1 --> BL2 --> BL32(sp_min) --> BL33(u-boot) --> Linux kernel |
| 15 | |
| 16 | How to build |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 17 | ------------ |
Usama Arif | b8cd97f | 2019-02-05 15:44:17 +0000 | [diff] [blame] | 18 | |
| 19 | Code Locations |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 20 | ~~~~~~~~~~~~~~ |
Usama Arif | b8cd97f | 2019-02-05 15:44:17 +0000 | [diff] [blame] | 21 | - `U-boot <https://git.linaro.org/landing-teams/working/arm/u-boot.git>`__ |
| 22 | |
| 23 | - `arm-trusted-firmware <https://github.com/ARM-software/arm-trusted-firmware>`__ |
| 24 | |
| 25 | Build Procedure |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 26 | ~~~~~~~~~~~~~~~ |
Usama Arif | b8cd97f | 2019-02-05 15:44:17 +0000 | [diff] [blame] | 27 | |
| 28 | - Obtain arm toolchain. The software stack has been verified with linaro 6.2 |
| 29 | `arm-linux-gnueabihf <https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/>`__. |
| 30 | Set the CROSS_COMPILE environment variable to point to the toolchain folder. |
| 31 | |
| 32 | - Fetch and build u-boot. |
| 33 | Make the .config file using the command: |
| 34 | |
| 35 | .. code:: shell |
| 36 | |
| 37 | make ARCH=arm vexpress_aemv8a_aarch32_config |
| 38 | |
| 39 | Make the u-boot binary for Cortex-A5 using the command: |
| 40 | |
| 41 | .. code:: shell |
| 42 | |
| 43 | make ARCH=arm SUPPORT_ARCH_TIMER=no |
| 44 | |
| 45 | Make the u-boot binary for Cortex-A7 using the command: |
| 46 | |
| 47 | .. code:: shell |
| 48 | |
| 49 | make ARCH=arm |
| 50 | |
| 51 | |
| 52 | - Build TF-A: |
| 53 | |
| 54 | The make command for Cortex-A5 is: |
| 55 | |
| 56 | .. code:: shell |
| 57 | |
| 58 | make PLAT=fvp_ve ARCH=aarch32 ARM_ARCH_MAJOR=7 ARM_CORTEX_A5=yes \ |
| 59 | AARCH32_SP=sp_min FVP_HW_CONFIG_DTS=fdts/fvp-ve-Cortex-A5x1.dts \ |
| 60 | ARM_XLAT_TABLES_LIB_V1=1 BL33=<path_to_u-boot.bin> all fip |
| 61 | |
| 62 | The make command for Cortex-A7 is: |
| 63 | |
| 64 | .. code:: shell |
| 65 | |
| 66 | make PLAT=fvp_ve ARCH=aarch32 ARM_ARCH_MAJOR=7 ARM_CORTEX_A7=yes \ |
| 67 | AARCH32_SP=sp_min FVP_HW_CONFIG_DTS=fdts/fvp-ve-Cortex-A7x1.dts \ |
| 68 | BL33=<path_to_u-boot.bin> all fip |
| 69 | |
| 70 | Run Procedure |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 71 | ~~~~~~~~~~~~~ |
Usama Arif | b8cd97f | 2019-02-05 15:44:17 +0000 | [diff] [blame] | 72 | |
| 73 | The following model parameters should be used to boot Linux using the build of |
| 74 | arm-trusted-firmware-a made using the above make commands: |
| 75 | |
| 76 | .. code:: shell |
| 77 | |
| 78 | ./<path_to_model> <path_to_bl1.elf> \ |
| 79 | -C motherboard.flashloader1.fname=<path_to_fip.bin> \ |
| 80 | --data cluster.cpu0=<path_to_zImage>@0x80080000 \ |
| 81 | --data cluster.cpu0=<path_to_ramdisk>@0x84000000 |