summaryrefslogtreecommitdiff
path: root/config/cca-4world.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'config/cca-4world.yaml')
-rw-r--r--config/cca-4world.yaml39
1 files changed, 37 insertions, 2 deletions
diff --git a/config/cca-4world.yaml b/config/cca-4world.yaml
index 9e3e506..d732314 100644
--- a/config/cca-4world.yaml
+++ b/config/cca-4world.yaml
@@ -4,8 +4,33 @@
%YAML 1.2
---
description: >-
- Builds on cca-3world.yaml, but adds support for running Hafnium along with
- some secure partitions in Secure World.
+ Builds on cca-3world.yaml, and adds support for running Hafnium along with some
+ secure partitions in Secure World.
+ Build with:
+
+ .. code-block:: shell
+ $ shrinkwrap --image shrinkwraptool/base-full build cca-4world.yaml --overlay buildroot.yaml --btvar GUEST_ROOTFS='${artifact:BUILDROOT}'
+
+ Then run the model with:
+
+ .. code-block:: shell
+ $ cd ~/.shrinkwrap/package/cca-4world
+ $ shrinkwrap run cca-4world.yaml --rtvar ROOTFS=rootfs.ext2 --rtvar SHARE=.
+
+ Once the host has booted, log in as "root" (no password).
+
+ Secure partitions can be enumerated by:
+
+ .. code-block:: shell
+ # cat /sys/devices/arm-ffa-*/uuid
+
+ b4b5671e-4a90-4fe1-b81f-fb13dae1dacb
+ d1582309-f023-47b9-827c-4464f5578fc8
+ 79b55c73-1d8c-44b9-8593-61e1770ad8d2
+ eaba83d8-baaf-4eaf-8144-f7fdcbe544a7
+
+ See cca-3worlds.yaml config :ref:`userguide/configstore/cca-3world:description`
+ if willing to launch a realm using kvmtool.
concrete: true
@@ -23,7 +48,17 @@ build:
SP_LAYOUT_FILE: ${artifact:SP_LAYOUT}
BL32: ${artifact:HAFNIUM}
+ linux:
+ prebuild:
+ - ./scripts/config --file ${param:builddir}/.config --enable CONFIG_ARM_FFA_TRANSPORT
+
run:
terminals:
bp.terminal_2:
friendly: hafnium
+
+ # SPMD doesn't permit use of SME options:
+ # https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/plat/arm/board/fvp/platform.mk?h=v2.10#n60
+ # This is mainly because Hafnium/S-EL2 doesn't support (yet) saving/restoring the NS SME state across SMC calls.
+ params:
+ -C SVE.ScalableVectorExtension.has_sme: 0