Hi,
you need to add following properties in the SP manifest:
diff --git a/qemu_v8/optee_sp_manifest.dts b/qemu_v8/optee_sp_manifest.dts index e576295..4e813e6 100644 --- a/qemu_v8/optee_sp_manifest.dts +++ b/qemu_v8/optee_sp_manifest.dts @@ -29,6 +29,9 @@ messaging-method = <0x3>; /* Direct messaging only */ ns-interrupts-action = <1>; /* NS_ACTION_ME */
+ /* mem-size OP-TEE specific binding. */ + mem-size = <0xd00000>; + /* Boot protocol */ gp-register-num = <0x0>;
@@ -43,4 +46,10 @@ interrupts = <0x28 0xb01>; }; }; + + /* Boot Info */ + boot-info { + compatible = "arm,ffa-manifest-boot-info"; + ffa_manifest; + }; };
Regards, Olivier.
________________________________ From: shiju.jose--- via Hafnium hafnium@lists.trustedfirmware.org Sent: 21 June 2023 10:57 To: hafnium@lists.trustedfirmware.org hafnium@lists.trustedfirmware.org Subject: [Hafnium] Re: Hafnium with QEMU and OP-TEE
Hi Jens,
We get the following failure (Stage-2 page fault) when built and ran the SEL2 stack downloaded from https://github.com/jenswi-linaro/manifest.git -m qemu_v8.xml -b qemu_sel2 This seems happens when booting the op-tee.
Debugging showed this is related to the relocatable OP-TEE binary support as there is no failure, with disabling CFG_CORE_PHYS_RELOCATABLE in the optee_os/core/arch/arm/arm.mk
Thanks, Shiju
=========================================== NOTICE: BL31: v2.8(debug):v2.8-151-gf4d8ed50d NOTICE: BL31: Built : 17:11:47, Jun 20 2023 INFO: GICv3 without legacy support detected. INFO: ARM GICv3 driver initialized in EL3 INFO: Maximum SPI INTID supported: 287 INFO: BL31: Initializing runtime services INFO: SPM Core setup done. INFO: BL31: Initializing BL32 INFO: Initializing Hafnium (SPMC) INFO: text: 0xe100000 - 0xe125000 INFO: rodata: 0xe125000 - 0xe12b000 INFO: data: 0xe12b000 - 0xe214000 INFO: stacks: 0xe214000 - 0xe224000 INFO: Supported bits in physical address: 48 INFO: Stage 2 has 4 page table levels with 1 pages at the root. INFO: Stage 1 has 4 page table levels with 1 pages at the root. INFO: Memory range: 0xe000000 - 0xeffffff INFO: Loading VM id 0x8001: op-tee. INFO: Loaded with 4 vCPUs, entry at 0xe300000. INFO: Hafnium initialisation completed WARNING: Stage-2 page fault: pc=0xe3105f4, vmid=0x8001, vcpu=0, vaddr=0xd00000, ipaddr=0xd00000, mode=0x1 0xd0000000000007c NOTICE: Injecting Data Abort exception into VM 0x8001. ============================================ -- Hafnium mailing list -- hafnium@lists.trustedfirmware.org To unsubscribe send an email to hafnium-leave@lists.trustedfirmware.org