blob: 813931ce0fb3015058a1bd80750e9b031f93f266 [file] [log] [blame]
Paul Beesley43f35ef2019-05-29 13:59:40 +01001Arm Fixed Virtual Platforms (FVP)
2=================================
3
4Fixed Virtual Platform (FVP) Support
5------------------------------------
6
7This section lists the supported Arm |FVP| platforms. Please refer to the FVP
8documentation for a detailed description of the model parameter options.
9
10The latest version of the AArch64 build of TF-A has been tested on the following
11Arm FVPs without shifted affinities, and that do not support threaded CPU cores
12(64-bit host machine only).
13
14.. note::
Govindraj Rajac1b97672024-09-06 16:13:49 -050015 The FVP models used are Version 11.26 Build 11, unless otherwise stated.
Paul Beesley43f35ef2019-05-29 13:59:40 +010016
Maksims Svecovsf6f1b9b2021-10-25 16:13:42 +010017- ``Foundation_Platform``
laurenw-arm08a12c12022-09-14 15:44:42 -050018- ``FVP_Base_AEMvA``
19- ``FVP_Base_AEMvA-AEMvA``
Govindraj Rajac1b97672024-09-06 16:13:49 -050020- ``FVP_Base_Cortex-A32x4``
Paul Beesley43f35ef2019-05-29 13:59:40 +010021- ``FVP_Base_Cortex-A35x4``
22- ``FVP_Base_Cortex-A53x4``
laurenw-arm08a12c12022-09-14 15:44:42 -050023- ``FVP_Base_Cortex-A55``
Paul Beesley43f35ef2019-05-29 13:59:40 +010024- ``FVP_Base_Cortex-A57x1-A53x1``
25- ``FVP_Base_Cortex-A57x2-A53x4``
Paul Beesley43f35ef2019-05-29 13:59:40 +010026- ``FVP_Base_Cortex-A57x4``
laurenw-arm08a12c12022-09-14 15:44:42 -050027- ``FVP_Base_Cortex-A57x4-A53x4``
28- ``FVP_Base_Cortex-A65``
Govindraj Rajac1b97672024-09-06 16:13:49 -050029- ``FVP_Base_Cortex-A65AE`` (Version 11.24/24)
30- ``FVP_Base_Cortex-A710`` (Version 11.24/24)
Paul Beesley43f35ef2019-05-29 13:59:40 +010031- ``FVP_Base_Cortex-A72x4``
laurenw-arm08a12c12022-09-14 15:44:42 -050032- ``FVP_Base_Cortex-A72x4-A53x4``
Paul Beesley43f35ef2019-05-29 13:59:40 +010033- ``FVP_Base_Cortex-A73x4``
laurenw-arm08a12c12022-09-14 15:44:42 -050034- ``FVP_Base_Cortex-A73x4-A53x4``
35- ``FVP_Base_Cortex-A75``
36- ``FVP_Base_Cortex-A76``
37- ``FVP_Base_Cortex-A76AE``
38- ``FVP_Base_Cortex-A77``
39- ``FVP_Base_Cortex-A78``
Chris Kay7064d202023-11-14 18:29:38 +000040- ``FVP_Base_Cortex-A78AE``
laurenw-arm08a12c12022-09-14 15:44:42 -050041- ``FVP_Base_Cortex-A78C``
Govindraj Rajac1b97672024-09-06 16:13:49 -050042- ``FVP_Base_Cortex-X2``
43- ``FVP_Base_Neoverse-E1`` (Version 11.24/24)
laurenw-arm08a12c12022-09-14 15:44:42 -050044- ``FVP_Base_Neoverse-N1``
Govindraj Rajac1b97672024-09-06 16:13:49 -050045- ``FVP_Base_Neoverse-N2``
laurenw-arm08a12c12022-09-14 15:44:42 -050046- ``FVP_Base_Neoverse-V1``
47- ``FVP_Base_RevC-2xAEMvA``
Chris Kay7064d202023-11-14 18:29:38 +000048- ``FVP_BaseR_AEMv8R``
49- ``FVP_Morello`` (Version 0.11/33)
50- ``FVP_RD_V1``
Paul Beesley43f35ef2019-05-29 13:59:40 +010051
52The latest version of the AArch32 build of TF-A has been tested on the
53following Arm FVPs without shifted affinities, and that do not support threaded
54CPU cores (64-bit host machine only).
55
Manish V Badarkheccf220a2020-10-02 07:27:27 +010056- ``FVP_Base_AEMvA``
laurenw-arm08a12c12022-09-14 15:44:42 -050057- ``FVP_Base_AEMvA-AEMvA``
Paul Beesley43f35ef2019-05-29 13:59:40 +010058- ``FVP_Base_Cortex-A32x4``
59
60.. note::
laurenw-arm08a12c12022-09-14 15:44:42 -050061 The ``FVP_Base_RevC-2xAEMvA`` FVP only supports shifted affinities, which
Paul Beesley43f35ef2019-05-29 13:59:40 +010062 is not compatible with legacy GIC configurations. Therefore this FVP does not
63 support these legacy GIC configurations.
64
65The *Foundation* and *Base* FVPs can be downloaded free of charge. See the `Arm
66FVP website`_. The Cortex-A models listed above are also available to download
67from `Arm's website`_.
68
69.. note::
70 The build numbers quoted above are those reported by launching the FVP
71 with the ``--version`` parameter.
72
73.. note::
74 Linaro provides a ramdisk image in prebuilt FVP configurations and full
75 file systems that can be downloaded separately. To run an FVP with a virtio
76 file system image an additional FVP configuration option
77 ``-C bp.virtioblockdevice.image_path="<path-to>/<file-system-image>`` can be
78 used.
79
80.. note::
81 The software will not work on Version 1.0 of the Foundation FVP.
82 The commands below would report an ``unhandled argument`` error in this case.
83
84.. note::
85 FVPs can be launched with ``--cadi-server`` option such that a
86 CADI-compliant debugger (for example, Arm DS-5) can connect to and control
87 its execution.
88
89.. warning::
90 Since FVP model Version 11.0 Build 11.0.34 and Version 8.5 Build 0.8.5202
91 the internal synchronisation timings changed compared to older versions of
92 the models. The models can be launched with ``-Q 100`` option if they are
93 required to match the run time characteristics of the older versions.
94
Zelalem99a99eb2021-06-01 17:05:16 -050095All the above platforms have been tested with `Linaro Release 20.01`_.
Paul Beesley43f35ef2019-05-29 13:59:40 +010096
97.. _build_options_arm_fvp_platform:
98
99Arm FVP Platform Specific Build Options
100---------------------------------------
101
102- ``FVP_CLUSTER_COUNT`` : Configures the cluster count to be used to
103 build the topology tree within TF-A. By default TF-A is configured for dual
104 cluster topology and this option can be used to override the default value.
105
106- ``FVP_INTERCONNECT_DRIVER``: Selects the interconnect driver to be built. The
107 default interconnect driver depends on the value of ``FVP_CLUSTER_COUNT`` as
108 explained in the options below:
109
110 - ``FVP_CCI`` : The CCI driver is selected. This is the default
111 if 0 < ``FVP_CLUSTER_COUNT`` <= 2.
112 - ``FVP_CCN`` : The CCN driver is selected. This is the default
113 if ``FVP_CLUSTER_COUNT`` > 2.
114
115- ``FVP_MAX_CPUS_PER_CLUSTER``: Sets the maximum number of CPUs implemented in
116 a single cluster. This option defaults to 4.
117
118- ``FVP_MAX_PE_PER_CPU``: Sets the maximum number of PEs implemented on any CPU
119 in the system. This option defaults to 1. Note that the build option
120 ``ARM_PLAT_MT`` doesn't have any effect on FVP platforms.
121
122- ``FVP_USE_GIC_DRIVER`` : Selects the GIC driver to be built. Options:
123
Paul Beesley43f35ef2019-05-29 13:59:40 +0100124 - ``FVP_GICV2`` : The GICv2 only driver is selected
125 - ``FVP_GICV3`` : The GICv3 only driver is selected (default option)
126
Paul Beesley43f35ef2019-05-29 13:59:40 +0100127- ``FVP_HW_CONFIG_DTS`` : Specify the path to the DTS file to be compiled
128 to DTB and packaged in FIP as the HW_CONFIG. See :ref:`Firmware Design` for
129 details on HW_CONFIG. By default, this is initialized to a sensible DTS
130 file in ``fdts/`` folder depending on other build options. But some cases,
131 like shifted affinity format for MPIDR, cannot be detected at build time
132 and this option is needed to specify the appropriate DTS file.
133
134- ``FVP_HW_CONFIG`` : Specify the path to the HW_CONFIG blob to be packaged in
135 FIP. See :ref:`Firmware Design` for details on HW_CONFIG. This option is
136 similar to the ``FVP_HW_CONFIG_DTS`` option, but it directly specifies the
137 HW_CONFIG blob instead of the DTS file. This option is useful to override
138 the default HW_CONFIG selected by the build system.
139
Manish V Badarkhed30a6612021-01-24 20:39:39 +0000140- ``FVP_GICR_REGION_PROTECTION``: Mark the redistributor pages of
141 inactive/fused CPU cores as read-only. The default value of this option
142 is ``0``, which means the redistributor pages of all CPU cores are marked
143 as read and write.
144
Paul Beesley43f35ef2019-05-29 13:59:40 +0100145Booting Firmware Update images
146------------------------------
147
148When Firmware Update (FWU) is enabled there are at least 2 new images
149that have to be loaded, the Non-Secure FWU ROM (NS-BL1U), and the
150FWU FIP.
151
152The additional fip images must be loaded with:
153
154::
155
156 --data cluster0.cpu0="<path_to>/ns_bl1u.bin"@0x0beb8000 [ns_bl1u_base_address]
157 --data cluster0.cpu0="<path_to>/fwu_fip.bin"@0x08400000 [ns_bl2u_base_address]
158
159The address ns_bl1u_base_address is the value of NS_BL1U_BASE.
160In the same way, the address ns_bl2u_base_address is the value of
161NS_BL2U_BASE.
162
163Booting an EL3 payload
164----------------------
165
166The EL3 payloads boot flow requires the CPU's mailbox to be cleared at reset for
167the secondary CPUs holding pen to work properly. Unfortunately, its reset value
168is undefined on the FVP platform and the FVP platform code doesn't clear it.
169Therefore, one must modify the way the model is normally invoked in order to
170clear the mailbox at start-up.
171
172One way to do that is to create an 8-byte file containing all zero bytes using
173the following command:
174
175.. code:: shell
176
177 dd if=/dev/zero of=mailbox.dat bs=1 count=8
178
179and pre-load it into the FVP memory at the mailbox address (i.e. ``0x04000000``)
180using the following model parameters:
181
182::
183
184 --data cluster0.cpu0=mailbox.dat@0x04000000 [Base FVPs]
185 --data=mailbox.dat@0x04000000 [Foundation FVP]
186
187To provide the model with the EL3 payload image, the following methods may be
188used:
189
190#. If the EL3 payload is able to execute in place, it may be programmed into
191 flash memory. On Base Cortex and AEM FVPs, the following model parameter
192 loads it at the base address of the NOR FLASH1 (the NOR FLASH0 is already
193 used for the FIP):
194
195 ::
196
197 -C bp.flashloader1.fname="<path-to>/<el3-payload>"
198
199 On Foundation FVP, there is no flash loader component and the EL3 payload
200 may be programmed anywhere in flash using method 3 below.
201
202#. When using the ``SPIN_ON_BL1_EXIT=1`` loading method, the following DS-5
203 command may be used to load the EL3 payload ELF image over JTAG:
204
205 ::
206
207 load <path-to>/el3-payload.elf
208
209#. The EL3 payload may be pre-loaded in volatile memory using the following
210 model parameters:
211
212 ::
213
214 --data cluster0.cpu0="<path-to>/el3-payload>"@address [Base FVPs]
215 --data="<path-to>/<el3-payload>"@address [Foundation FVP]
216
217 The address provided to the FVP must match the ``EL3_PAYLOAD_BASE`` address
218 used when building TF-A.
219
220Booting a preloaded kernel image (Base FVP)
221-------------------------------------------
222
223The following example uses a simplified boot flow by directly jumping from the
224TF-A to the Linux kernel, which will use a ramdisk as filesystem. This can be
225useful if both the kernel and the device tree blob (DTB) are already present in
226memory (like in FVP).
227
228For example, if the kernel is loaded at ``0x80080000`` and the DTB is loaded at
229address ``0x82000000``, the firmware can be built like this:
230
231.. code:: shell
232
Madhukar Pappireddyf35e5ab2020-01-10 16:11:18 -0600233 CROSS_COMPILE=aarch64-none-elf- \
Paul Beesley43f35ef2019-05-29 13:59:40 +0100234 make PLAT=fvp DEBUG=1 \
235 RESET_TO_BL31=1 \
236 ARM_LINUX_KERNEL_AS_BL33=1 \
237 PRELOADED_BL33_BASE=0x80080000 \
238 ARM_PRELOADED_DTB_BASE=0x82000000 \
239 all fip
240
241Now, it is needed to modify the DTB so that the kernel knows the address of the
242ramdisk. The following script generates a patched DTB from the provided one,
243assuming that the ramdisk is loaded at address ``0x84000000``. Note that this
244script assumes that the user is using a ramdisk image prepared for U-Boot, like
245the ones provided by Linaro. If using a ramdisk without this header,the ``0x40``
246offset in ``INITRD_START`` has to be removed.
247
248.. code:: bash
249
250 #!/bin/bash
251
252 # Path to the input DTB
253 KERNEL_DTB=<path-to>/<fdt>
254 # Path to the output DTB
255 PATCHED_KERNEL_DTB=<path-to>/<patched-fdt>
256 # Base address of the ramdisk
257 INITRD_BASE=0x84000000
258 # Path to the ramdisk
259 INITRD=<path-to>/<ramdisk.img>
260
261 # Skip uboot header (64 bytes)
262 INITRD_START=$(printf "0x%x" $((${INITRD_BASE} + 0x40)) )
263 INITRD_SIZE=$(stat -Lc %s ${INITRD})
264 INITRD_END=$(printf "0x%x" $((${INITRD_BASE} + ${INITRD_SIZE})) )
265
266 CHOSEN_NODE=$(echo \
267 "/ { \
268 chosen { \
269 linux,initrd-start = <${INITRD_START}>; \
270 linux,initrd-end = <${INITRD_END}>; \
271 }; \
272 };")
273
274 echo $(dtc -O dts -I dtb ${KERNEL_DTB}) ${CHOSEN_NODE} | \
275 dtc -O dtb -o ${PATCHED_KERNEL_DTB} -
276
277And the FVP binary can be run with the following command:
278
279.. code:: shell
280
281 <path-to>/FVP_Base_AEMv8A-AEMv8A \
282 -C pctl.startup=0.0.0.0 \
283 -C bp.secure_memory=1 \
284 -C cluster0.NUM_CORES=4 \
285 -C cluster1.NUM_CORES=4 \
286 -C cache_state_modelled=1 \
Alexei Fedorov6227cca2020-02-17 13:38:35 +0000287 -C cluster0.cpu0.RVBAR=0x04001000 \
288 -C cluster0.cpu1.RVBAR=0x04001000 \
289 -C cluster0.cpu2.RVBAR=0x04001000 \
290 -C cluster0.cpu3.RVBAR=0x04001000 \
291 -C cluster1.cpu0.RVBAR=0x04001000 \
292 -C cluster1.cpu1.RVBAR=0x04001000 \
293 -C cluster1.cpu2.RVBAR=0x04001000 \
294 -C cluster1.cpu3.RVBAR=0x04001000 \
295 --data cluster0.cpu0="<path-to>/bl31.bin"@0x04001000 \
Paul Beesley43f35ef2019-05-29 13:59:40 +0100296 --data cluster0.cpu0="<path-to>/<patched-fdt>"@0x82000000 \
297 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
298 --data cluster0.cpu0="<path-to>/<ramdisk.img>"@0x84000000
299
300Obtaining the Flattened Device Trees
301^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302
303Depending on the FVP configuration and Linux configuration used, different
304FDT files are required. FDT source files for the Foundation and Base FVPs can
305be found in the TF-A source directory under ``fdts/``. The Foundation FVP has
306a subset of the Base FVP components. For example, the Foundation FVP lacks
307CLCD and MMC support, and has only one CPU cluster.
308
309.. note::
310 It is not recommended to use the FDTs built along the kernel because not
311 all FDTs are available from there.
312
313The dynamic configuration capability is enabled in the firmware for FVPs.
314This means that the firmware can authenticate and load the FDT if present in
315FIP. A default FDT is packaged into FIP during the build based on
316the build configuration. This can be overridden by using the ``FVP_HW_CONFIG``
317or ``FVP_HW_CONFIG_DTS`` build options (refer to
318:ref:`build_options_arm_fvp_platform` for details on the options).
319
320- ``fvp-base-gicv2-psci.dts``
321
Andre Przywarab9203302022-08-19 10:26:00 +0100322 For use with models such as the Cortex-A57-A53 or Cortex-A32 Base FVPs
323 without shifted affinities and with Base memory map configuration.
Paul Beesley43f35ef2019-05-29 13:59:40 +0100324
325- ``fvp-base-gicv3-psci.dts``
326
Andre Przywarab9203302022-08-19 10:26:00 +0100327 For use with models such as the Cortex-A57-A53 or Cortex-A32 Base FVPs
328 without shifted affinities and with Base memory map configuration and
329 Linux GICv3 support.
Paul Beesley43f35ef2019-05-29 13:59:40 +0100330
331- ``fvp-base-gicv3-psci-1t.dts``
332
333 For use with models such as the AEMv8-RevC Base FVP with shifted affinities,
334 single threaded CPUs, Base memory map configuration and Linux GICv3 support.
335
336- ``fvp-base-gicv3-psci-dynamiq.dts``
337
338 For use with models as the Cortex-A55-A75 Base FVPs with shifted affinities,
339 single cluster, single threaded CPUs, Base memory map configuration and Linux
340 GICv3 support.
341
Paul Beesley43f35ef2019-05-29 13:59:40 +0100342- ``fvp-foundation-gicv2-psci.dts``
343
344 For use with Foundation FVP with Base memory map configuration.
345
346- ``fvp-foundation-gicv3-psci.dts``
347
348 (Default) For use with Foundation FVP with Base memory map configuration
349 and Linux GICv3 support.
350
351
352Running on the Foundation FVP with reset to BL1 entrypoint
353^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
354
355The following ``Foundation_Platform`` parameters should be used to boot Linux with
3564 CPUs using the AArch64 build of TF-A.
357
358.. code:: shell
359
360 <path-to>/Foundation_Platform \
361 --cores=4 \
362 --arm-v8.0 \
363 --secure-memory \
364 --visualization \
365 --gicv3 \
366 --data="<path-to>/<bl1-binary>"@0x0 \
367 --data="<path-to>/<FIP-binary>"@0x08000000 \
368 --data="<path-to>/<kernel-binary>"@0x80080000 \
369 --data="<path-to>/<ramdisk-binary>"@0x84000000
370
371Notes:
372
373- BL1 is loaded at the start of the Trusted ROM.
374- The Firmware Image Package is loaded at the start of NOR FLASH0.
375- The firmware loads the FDT packaged in FIP to the DRAM. The FDT load address
Manish V Badarkhea0d3df62022-04-25 20:21:28 +0100376 is specified via the ``load-address`` property in the ``hw-config`` node of
377 `FW_CONFIG for FVP`_.
Paul Beesley43f35ef2019-05-29 13:59:40 +0100378- The default use-case for the Foundation FVP is to use the ``--gicv3`` option
379 and enable the GICv3 device in the model. Note that without this option,
380 the Foundation FVP defaults to legacy (Versatile Express) memory map which
381 is not supported by TF-A.
382- In order for TF-A to run correctly on the Foundation FVP, the architecture
383 versions must match. The Foundation FVP defaults to the highest v8.x
384 version it supports but the default build for TF-A is for v8.0. To avoid
385 issues either start the Foundation FVP to use v8.0 architecture using the
386 ``--arm-v8.0`` option, or build TF-A with an appropriate value for
387 ``ARM_ARCH_MINOR``.
388
389Running on the AEMv8 Base FVP with reset to BL1 entrypoint
390^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
391
392The following ``FVP_Base_RevC-2xAEMv8A`` parameters should be used to boot Linux
393with 8 CPUs using the AArch64 build of TF-A.
394
395.. code:: shell
396
397 <path-to>/FVP_Base_RevC-2xAEMv8A \
398 -C pctl.startup=0.0.0.0 \
399 -C bp.secure_memory=1 \
400 -C bp.tzc_400.diagnostics=1 \
401 -C cluster0.NUM_CORES=4 \
402 -C cluster1.NUM_CORES=4 \
403 -C cache_state_modelled=1 \
404 -C bp.secureflashloader.fname="<path-to>/<bl1-binary>" \
405 -C bp.flashloader0.fname="<path-to>/<FIP-binary>" \
406 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
407 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
408
409.. note::
410 The ``FVP_Base_RevC-2xAEMv8A`` has shifted affinities and requires
411 a specific DTS for all the CPUs to be loaded.
412
413Running on the AEMv8 Base FVP (AArch32) with reset to BL1 entrypoint
414^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
415
416The following ``FVP_Base_AEMv8A-AEMv8A`` parameters should be used to boot Linux
417with 8 CPUs using the AArch32 build of TF-A.
418
419.. code:: shell
420
421 <path-to>/FVP_Base_AEMv8A-AEMv8A \
422 -C pctl.startup=0.0.0.0 \
423 -C bp.secure_memory=1 \
424 -C bp.tzc_400.diagnostics=1 \
425 -C cluster0.NUM_CORES=4 \
426 -C cluster1.NUM_CORES=4 \
427 -C cache_state_modelled=1 \
428 -C cluster0.cpu0.CONFIG64=0 \
429 -C cluster0.cpu1.CONFIG64=0 \
430 -C cluster0.cpu2.CONFIG64=0 \
431 -C cluster0.cpu3.CONFIG64=0 \
432 -C cluster1.cpu0.CONFIG64=0 \
433 -C cluster1.cpu1.CONFIG64=0 \
434 -C cluster1.cpu2.CONFIG64=0 \
435 -C cluster1.cpu3.CONFIG64=0 \
436 -C bp.secureflashloader.fname="<path-to>/<bl1-binary>" \
437 -C bp.flashloader0.fname="<path-to>/<FIP-binary>" \
438 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
439 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
440
441Running on the Cortex-A57-A53 Base FVP with reset to BL1 entrypoint
442^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
443
444The following ``FVP_Base_Cortex-A57x4-A53x4`` model parameters should be used to
445boot Linux with 8 CPUs using the AArch64 build of TF-A.
446
447.. code:: shell
448
449 <path-to>/FVP_Base_Cortex-A57x4-A53x4 \
450 -C pctl.startup=0.0.0.0 \
451 -C bp.secure_memory=1 \
452 -C bp.tzc_400.diagnostics=1 \
453 -C cache_state_modelled=1 \
454 -C bp.secureflashloader.fname="<path-to>/<bl1-binary>" \
455 -C bp.flashloader0.fname="<path-to>/<FIP-binary>" \
456 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
457 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
458
459Running on the Cortex-A32 Base FVP (AArch32) with reset to BL1 entrypoint
460^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
461
462The following ``FVP_Base_Cortex-A32x4`` model parameters should be used to
463boot Linux with 4 CPUs using the AArch32 build of TF-A.
464
465.. code:: shell
466
467 <path-to>/FVP_Base_Cortex-A32x4 \
468 -C pctl.startup=0.0.0.0 \
469 -C bp.secure_memory=1 \
470 -C bp.tzc_400.diagnostics=1 \
471 -C cache_state_modelled=1 \
472 -C bp.secureflashloader.fname="<path-to>/<bl1-binary>" \
473 -C bp.flashloader0.fname="<path-to>/<FIP-binary>" \
474 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
475 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
476
477
478Running on the AEMv8 Base FVP with reset to BL31 entrypoint
479^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
480
481The following ``FVP_Base_RevC-2xAEMv8A`` parameters should be used to boot Linux
482with 8 CPUs using the AArch64 build of TF-A.
483
484.. code:: shell
485
486 <path-to>/FVP_Base_RevC-2xAEMv8A \
487 -C pctl.startup=0.0.0.0 \
488 -C bp.secure_memory=1 \
489 -C bp.tzc_400.diagnostics=1 \
490 -C cluster0.NUM_CORES=4 \
491 -C cluster1.NUM_CORES=4 \
492 -C cache_state_modelled=1 \
493 -C cluster0.cpu0.RVBAR=0x04010000 \
494 -C cluster0.cpu1.RVBAR=0x04010000 \
495 -C cluster0.cpu2.RVBAR=0x04010000 \
496 -C cluster0.cpu3.RVBAR=0x04010000 \
497 -C cluster1.cpu0.RVBAR=0x04010000 \
498 -C cluster1.cpu1.RVBAR=0x04010000 \
499 -C cluster1.cpu2.RVBAR=0x04010000 \
500 -C cluster1.cpu3.RVBAR=0x04010000 \
501 --data cluster0.cpu0="<path-to>/<bl31-binary>"@0x04010000 \
502 --data cluster0.cpu0="<path-to>/<bl32-binary>"@0xff000000 \
503 --data cluster0.cpu0="<path-to>/<bl33-binary>"@0x88000000 \
504 --data cluster0.cpu0="<path-to>/<fdt>"@0x82000000 \
505 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
506 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
507
508Notes:
509
Manish Pandey7285fd52021-06-10 15:22:48 +0100510- Position Independent Executable (PIE) support is enabled in this
511 config allowing BL31 to be loaded at any valid address for execution.
Paul Beesley43f35ef2019-05-29 13:59:40 +0100512
513- Since a FIP is not loaded when using BL31 as reset entrypoint, the
514 ``--data="<path-to><bl31|bl32|bl33-binary>"@<base-address-of-binary>``
515 parameter is needed to load the individual bootloader images in memory.
516 BL32 image is only needed if BL31 has been built to expect a Secure-EL1
517 Payload. For the same reason, the FDT needs to be compiled from the DT source
518 and loaded via the ``--data cluster0.cpu0="<path-to>/<fdt>"@0x82000000``
519 parameter.
520
521- The ``FVP_Base_RevC-2xAEMv8A`` has shifted affinities and requires a
522 specific DTS for all the CPUs to be loaded.
523
524- The ``-C cluster<X>.cpu<Y>.RVBAR=@<base-address-of-bl31>`` parameter, where
525 X and Y are the cluster and CPU numbers respectively, is used to set the
526 reset vector for each core.
527
528- Changing the default value of ``ARM_TSP_RAM_LOCATION`` will also require
529 changing the value of
530 ``--data="<path-to><bl32-binary>"@<base-address-of-bl32>`` to the new value of
531 ``BL32_BASE``.
532
533
534Running on the AEMv8 Base FVP (AArch32) with reset to SP_MIN entrypoint
535^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
536
537The following ``FVP_Base_AEMv8A-AEMv8A`` parameters should be used to boot Linux
538with 8 CPUs using the AArch32 build of TF-A.
539
540.. code:: shell
541
542 <path-to>/FVP_Base_AEMv8A-AEMv8A \
543 -C pctl.startup=0.0.0.0 \
544 -C bp.secure_memory=1 \
545 -C bp.tzc_400.diagnostics=1 \
546 -C cluster0.NUM_CORES=4 \
547 -C cluster1.NUM_CORES=4 \
548 -C cache_state_modelled=1 \
549 -C cluster0.cpu0.CONFIG64=0 \
550 -C cluster0.cpu1.CONFIG64=0 \
551 -C cluster0.cpu2.CONFIG64=0 \
552 -C cluster0.cpu3.CONFIG64=0 \
553 -C cluster1.cpu0.CONFIG64=0 \
554 -C cluster1.cpu1.CONFIG64=0 \
555 -C cluster1.cpu2.CONFIG64=0 \
556 -C cluster1.cpu3.CONFIG64=0 \
557 -C cluster0.cpu0.RVBAR=0x04002000 \
558 -C cluster0.cpu1.RVBAR=0x04002000 \
559 -C cluster0.cpu2.RVBAR=0x04002000 \
560 -C cluster0.cpu3.RVBAR=0x04002000 \
561 -C cluster1.cpu0.RVBAR=0x04002000 \
562 -C cluster1.cpu1.RVBAR=0x04002000 \
563 -C cluster1.cpu2.RVBAR=0x04002000 \
564 -C cluster1.cpu3.RVBAR=0x04002000 \
565 --data cluster0.cpu0="<path-to>/<bl32-binary>"@0x04002000 \
566 --data cluster0.cpu0="<path-to>/<bl33-binary>"@0x88000000 \
567 --data cluster0.cpu0="<path-to>/<fdt>"@0x82000000 \
568 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
569 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
570
571.. note::
Manish Pandey7285fd52021-06-10 15:22:48 +0100572 Position Independent Executable (PIE) support is enabled in this
573 config allowing SP_MIN to be loaded at any valid address for execution.
Paul Beesley43f35ef2019-05-29 13:59:40 +0100574
575Running on the Cortex-A57-A53 Base FVP with reset to BL31 entrypoint
576^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
577
578The following ``FVP_Base_Cortex-A57x4-A53x4`` model parameters should be used to
579boot Linux with 8 CPUs using the AArch64 build of TF-A.
580
581.. code:: shell
582
583 <path-to>/FVP_Base_Cortex-A57x4-A53x4 \
584 -C pctl.startup=0.0.0.0 \
585 -C bp.secure_memory=1 \
586 -C bp.tzc_400.diagnostics=1 \
587 -C cache_state_modelled=1 \
588 -C cluster0.cpu0.RVBARADDR=0x04010000 \
589 -C cluster0.cpu1.RVBARADDR=0x04010000 \
590 -C cluster0.cpu2.RVBARADDR=0x04010000 \
591 -C cluster0.cpu3.RVBARADDR=0x04010000 \
592 -C cluster1.cpu0.RVBARADDR=0x04010000 \
593 -C cluster1.cpu1.RVBARADDR=0x04010000 \
594 -C cluster1.cpu2.RVBARADDR=0x04010000 \
595 -C cluster1.cpu3.RVBARADDR=0x04010000 \
596 --data cluster0.cpu0="<path-to>/<bl31-binary>"@0x04010000 \
597 --data cluster0.cpu0="<path-to>/<bl32-binary>"@0xff000000 \
598 --data cluster0.cpu0="<path-to>/<bl33-binary>"@0x88000000 \
599 --data cluster0.cpu0="<path-to>/<fdt>"@0x82000000 \
600 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
601 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
602
603Running on the Cortex-A32 Base FVP (AArch32) with reset to SP_MIN entrypoint
604^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
605
606The following ``FVP_Base_Cortex-A32x4`` model parameters should be used to
607boot Linux with 4 CPUs using the AArch32 build of TF-A.
608
609.. code:: shell
610
611 <path-to>/FVP_Base_Cortex-A32x4 \
612 -C pctl.startup=0.0.0.0 \
613 -C bp.secure_memory=1 \
614 -C bp.tzc_400.diagnostics=1 \
615 -C cache_state_modelled=1 \
616 -C cluster0.cpu0.RVBARADDR=0x04002000 \
617 -C cluster0.cpu1.RVBARADDR=0x04002000 \
618 -C cluster0.cpu2.RVBARADDR=0x04002000 \
619 -C cluster0.cpu3.RVBARADDR=0x04002000 \
620 --data cluster0.cpu0="<path-to>/<bl32-binary>"@0x04002000 \
621 --data cluster0.cpu0="<path-to>/<bl33-binary>"@0x88000000 \
622 --data cluster0.cpu0="<path-to>/<fdt>"@0x82000000 \
623 --data cluster0.cpu0="<path-to>/<kernel-binary>"@0x80080000 \
624 --data cluster0.cpu0="<path-to>/<ramdisk>"@0x84000000
625
626--------------
627
Daniel Boulbyfa070492023-06-22 15:26:07 +0100628*Copyright (c) 2019-2023, Arm Limited. All rights reserved.*
Paul Beesley43f35ef2019-05-29 13:59:40 +0100629
Manish V Badarkhea0d3df62022-04-25 20:21:28 +0100630.. _FW_CONFIG for FVP: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/plat/arm/board/fvp/fdts/fvp_fw_config.dts
Paul Beesley43f35ef2019-05-29 13:59:40 +0100631.. _Arm's website: `FVP models`_
632.. _FVP models: https://developer.arm.com/products/system-design/fixed-virtual-platforms
Zelalem99a99eb2021-06-01 17:05:16 -0500633.. _Linaro Release 20.01: http://releases.linaro.org/members/arm/platforms/20.01
Paul Beesley43f35ef2019-05-29 13:59:40 +0100634.. _Arm FVP website: https://developer.arm.com/products/system-design/fixed-virtual-platforms