the latest LSDK:08_02_00_23
compile cmd:
Getting the OP-TEE Source Code
$ git clone https://github.com/OP-TEE/optee_os.git
Getting Security Dev Tool
$ git clone git://git.ti.com/security-development-tools/core-secdev-k3.git -b master $ export TI_SECURE_DEV_PKG=`pwd`/core-secdev-k3
Building OP-TEE
on GP $ make CROSS_COMPILE64=aarch64-linux-gnu- PLATFORM=k3-am65x CFG_ARM64_core=y
out:./out/arm-plat-k3/core/tee-pager_v2.bin
then:
A53 $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- am64x_evm_a53_defconfig O=<output directory>/a53 $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- ATF=./bl31.bin TEE=./tee-pager_v2.bin O=<output directory>/a53
copy tispl.bin, u-boot.img from output/a53 to sd part
then power on the board:
U-Boot SPL 2021.01-00001-g769f9bc72e (Aug 04 2022 - 10:17:41 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0016 '22.1.1--v2022.01 (Terrific Llam')
SPL initial stack usage: 13392 bytes
Trying to boot from MMC2
Starting ATF on ARM64 core...
NOTICE: BL31: v2.5(release):08.03.00.002
NOTICE: BL31: Built : 10:10:15, Aug 4 2022
I/TC:
I/TC: OP-TEE version: 3.18.0-33-g7d716171-dev (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #4 Thu Aug 4 07:10:04 UTC 2022 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidelines.html
I/TC: Primary CPU initializing
Unhandled Exception in EL3.
x30 = 0x00000000701c0e6c
x0 = 0x0000000000000000
x1 = 0x000000009e871708
x2 = 0x000000009b207000
x3 = 0x0000000000000000
x4 = 0x0000000032400000
x5 = 0x00000000000fffff
x6 = 0x0000000032505fff
x7 = 0x0000000000200000
x8 = 0x0000000000000011
x9 = 0x000000009e871b40
x10 = 0x0000000000000000
x11 = 0x0000000000000000
x12 = 0x000000009e8990d0
x13 = 0x000000000000000a
x14 = 0x00000000ffffffff
x15 = 0x0000000000000020
x16 = 0x000000009e810a04
x17 = 0x0000000000000000
x18 = 0x0000000000000000
x19 = 0x0000000000000000
x20 = 0x0000000000000000
x21 = 0x000000009e899328
x22 = 0x000000009e871708
x23 = 0x0000000000000000
x24 = 0x0000000000000000
x25 = 0x0000000000000000
x26 = 0x0000000000000000
x27 = 0x0000000000000000
x28 = 0x0000000000000000
x29 = 0x000000009e899210
scr_el3 = 0x0000000000000e38
sctlr_el3 = 0x0000000030cd183f
cptr_el3 = 0x0000000000000000
tcr_el3 = 0x0000000080803520
daif = 0x00000000000002c0
mair_el3 = 0x00000000004404ff
spsr_el3 = 0x00000000600003c4
elr_el3 = 0x000000009e80a998
ttbr0_el3 = 0x00000000701cd780
esr_el3 = 0x0000000092000010
far_el3 = 0x000000009b207000
spsr_el1 = 0x0000000000000000
elr_el1 = 0x0000000000000000
spsr_abt = 0x0000000000000000
spsr_und = 0x0000000000000000
spsr_irq = 0x0000000000000000
spsr_fiq = 0x0000000000000000
sctlr_el1 = 0x0000000030d8180d
actlr_el1 = 0x0000000000000000
cpacr_el1 = 0x0000000000000000
csselr_el1 = 0x0000000000000000
sp_el1 = 0x000000009e871460
esr_el1 = 0x0000000000000000
ttbr0_el1 = 0x000000009e891000
ttbr1_el1 = 0x0000000000000000
mair_el1 = 0x00000000ff00ff04
amair_el1 = 0x0000000000000000
tcr_el1 = 0x0000000080803fa0
tpidr_el1 = 0x0000000000000000
tpidr_el0 = 0x0000000000000000
tpidrro_el0 = 0x0000000000000000
par_el1 = 0x0400000032406900
mpidr_el1 = 0x0000000080000000
afsr0_el1 = 0x0000000000000000
afsr1_el1 = 0x0000000000000000
contextidr_el1 = 0x0000000000000000
vbar_el1 = 0x000000009e802000
cntp_ctl_el0 = 0x0000000000000000
cntp_cval_el0 = 0x0000000000000000
cntv_ctl_el0 = 0x0000000000000000
cntv_cval_el0 = 0x0000000000000000
cntkctl_el1 = 0x0000000000000000
sp_el0 = 0x000000009e899210
isr_el1 = 0x0000000000000000
dacr32_el2 = 0x0000000000000000
ifsr32_el2 = 0x0000000000000000
cpuectlr_el1 = 0x0000000000000040
cpumerrsr_el1 = 0x000000000310062f
l2merrsr_el1 = 0x0000000010345798