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