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