Browse Source
Provide manifest and build options to boot OP-TEE as a guest S-EL1 Secure Partition on top of Hafnium in S-EL2. Increase ARM_SP_MAX_SIZE to cope with OP-TEE debug build image. Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: Idd2686fa689a78fe2d05ed92b1d23c65e2edd4cbpull/1979/head
Olivier Deprez
5 years ago
7 changed files with 123 additions and 3 deletions
@ -0,0 +1,33 @@ |
|||
/* |
|||
* Copyright (c) 2020, Arm Limited. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
* |
|||
* This file is a Partition Manifest (PM) for a minimal Secure Partition (SP) |
|||
* that has additional optional properties defined. |
|||
* |
|||
*/ |
|||
|
|||
/dts-v1/; |
|||
|
|||
/ { |
|||
compatible = "arm,ffa-manifest-1.0"; |
|||
|
|||
/* Properties */ |
|||
description = "op-tee"; |
|||
ffa-version = <0x00010000>; /* 31:16 - Major, 15:0 - Minor */ |
|||
uuid = <0x486178e0 0xe7f811e3 0xbc5e0002 0xa5d5c51b>; |
|||
id = <1>; |
|||
execution-ctx-count = <8>; |
|||
exception-level = <2>; /* S-EL1 */ |
|||
execution-state = <0>; /* AARCH64 */ |
|||
load-address = <0x6280000>; |
|||
entrypoint-offset = <0x1000>; |
|||
xlat-granule = <0>; /* 4KiB */ |
|||
boot-order = <0>; |
|||
messaging-method = <0>; /* Direct messaging only */ |
|||
run-time-model = <1>; /* Run to completion */ |
|||
|
|||
/* Boot protocol */ |
|||
gp-register-num = <0x0>; |
|||
}; |
@ -0,0 +1,68 @@ |
|||
/* |
|||
* Copyright (c) 2020, Arm Limited. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
/dts-v1/; |
|||
|
|||
#define AFF 00 |
|||
|
|||
#include "fvp-defs.dtsi" |
|||
#undef POST |
|||
#define POST \ |
|||
}; |
|||
|
|||
/ { |
|||
compatible = "arm,ffa-core-manifest-1.0"; |
|||
#address-cells = <2>; |
|||
#size-cells = <1>; |
|||
|
|||
attribute { |
|||
spmc_id = <0x8000>; |
|||
maj_ver = <0x1>; |
|||
min_ver = <0x0>; |
|||
exec_state = <0x0>; |
|||
load_address = <0x0 0x6000000>; |
|||
entrypoint = <0x0 0x6000000>; |
|||
binary_size = <0x80000>; |
|||
}; |
|||
|
|||
chosen { |
|||
linux,initrd-start = <0>; |
|||
linux,initrd-end = <0>; |
|||
}; |
|||
|
|||
hypervisor { |
|||
compatible = "hafnium,hafnium"; |
|||
vm1 { |
|||
is_ffa_partition; |
|||
debug_name = "op-tee"; |
|||
load_address = <0x6280000>; |
|||
smc_whitelist = <0xbe000000>; |
|||
}; |
|||
}; |
|||
|
|||
cpus { |
|||
#address-cells = <0x2>; |
|||
#size-cells = <0x0>; |
|||
|
|||
CPU_0 |
|||
|
|||
/* |
|||
* SPMC(Hafnium) requires secondary core nodes are declared |
|||
* in descending order. |
|||
*/ |
|||
CPU_7 |
|||
CPU_6 |
|||
CPU_5 |
|||
CPU_4 |
|||
CPU_3 |
|||
CPU_2 |
|||
CPU_1 |
|||
}; |
|||
|
|||
memory@60000000 { |
|||
device_type = "memory"; |
|||
reg = <0x0 0x6000000 0x2000000>; /* Trusted DRAM */ |
|||
}; |
|||
}; |
Loading…
Reference in new issue