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