xref: /rk3399_ARM-atf/docs/plat/arm/fvp/fvp-foundation.rst (revision 7d0093277104dbd3c6a94dbf36611767c96e544f)
1*c5407693SSandrine BailleuxRunning on the Foundation FVP
2*c5407693SSandrine Bailleux^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3*c5407693SSandrine Bailleux
4*c5407693SSandrine BailleuxThe following ``Foundation_Platform`` parameters should be used to boot Linux with
5*c5407693SSandrine Bailleux4 CPUs using the AArch64 build of TF-A.
6*c5407693SSandrine Bailleux
7*c5407693SSandrine Bailleux.. code:: shell
8*c5407693SSandrine Bailleux
9*c5407693SSandrine Bailleux    <path-to>/Foundation_Platform                   \
10*c5407693SSandrine Bailleux    --cores=4                                       \
11*c5407693SSandrine Bailleux    --arm-v8.0                                      \
12*c5407693SSandrine Bailleux    --secure-memory                                 \
13*c5407693SSandrine Bailleux    --visualization                                 \
14*c5407693SSandrine Bailleux    --gicv3                                         \
15*c5407693SSandrine Bailleux    --data="<path-to>/<bl1-binary>"@0x0             \
16*c5407693SSandrine Bailleux    --data="<path-to>/<FIP-binary>"@0x08000000      \
17*c5407693SSandrine Bailleux    --data="<path-to>/<kernel-binary>"@0x80080000   \
18*c5407693SSandrine Bailleux    --data="<path-to>/<ramdisk-binary>"@0x84000000
19*c5407693SSandrine Bailleux
20*c5407693SSandrine BailleuxNotes:
21*c5407693SSandrine Bailleux
22*c5407693SSandrine Bailleux-  BL1 is loaded at the start of the Trusted ROM.
23*c5407693SSandrine Bailleux-  The Firmware Image Package is loaded at the start of NOR FLASH0.
24*c5407693SSandrine Bailleux-  The firmware loads the FDT packaged in FIP to the DRAM. The FDT load address
25*c5407693SSandrine Bailleux   is specified via the ``load-address`` property in the ``hw-config`` node of
26*c5407693SSandrine Bailleux   `FW_CONFIG for FVP`_.
27*c5407693SSandrine Bailleux-  The default use-case for the Foundation FVP is to use the ``--gicv3`` option
28*c5407693SSandrine Bailleux   and enable the GICv3 device in the model. Note that without this option,
29*c5407693SSandrine Bailleux   the Foundation FVP defaults to legacy (Versatile Express) memory map which
30*c5407693SSandrine Bailleux   is not supported by TF-A.
31*c5407693SSandrine Bailleux-  In order for TF-A to run correctly on the Foundation FVP, the architecture
32*c5407693SSandrine Bailleux   versions must match. The Foundation FVP defaults to the highest v8.x
33*c5407693SSandrine Bailleux   version it supports but the default build for TF-A is for v8.0. To avoid
34*c5407693SSandrine Bailleux   issues either start the Foundation FVP to use v8.0 architecture using the
35*c5407693SSandrine Bailleux   ``--arm-v8.0`` option, or build TF-A with an appropriate value for
36*c5407693SSandrine Bailleux   ``ARM_ARCH_MINOR``.
37*c5407693SSandrine Bailleux
38*c5407693SSandrine Bailleux--------------
39*c5407693SSandrine Bailleux
40*c5407693SSandrine Bailleux*Copyright (c) 2019-2024, Arm Limited. All rights reserved.*
41*c5407693SSandrine Bailleux
42*c5407693SSandrine Bailleux.. _FW_CONFIG for FVP: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/plat/arm/board/fvp/fdts/fvp_fw_config.dts
43