This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM62L:OPTEE 未加载 SDK11.2

Guru**** 2914610 points

Other Parts Discussed in Thread: AM62L

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1649829/am62l-optee-is-not-loaded-with-sdk11-2

器件型号: AM62L

从 UBoot 日志中、不会加载 OPTEE。 无论是使用由 SD 卡制成的 prebuit .wic 文件进行引导、还是使用从 eMMC 进行新的构建 PRNG OPTEE uboot、我在 AM62L EVM 上得到的日志与下面相同

由于未加载 TEE、PRNG TEE 或 OOB TEE 不应影响 RT-Linux cyclictest 结果。

NOTICE:  BL1: Built : 10:58:06, Feb  2 2026
NOTICE:  BL1: dram_class: 11
NOTICE:  lpddr4: post start - PI training status=0x27c0a000
NOTICE:  bl1_platform_setup DDR init done
NOTICE:  k3_bl1_handoff ENTERING WFI - end of bl1
NOTICE:  BL31: v2.12.0(release):11.02.01-14-g5939ceaeb
NOTICE:  BL31: Built : 10:58:08, Feb  2 2026
NOTICE:  SYSFW ABI: 4.0 (firmware rev 0x000b '11.2.5-v11.02.05a (Fancy Rat)')
get_device_type a0a
I/TC:
I/TC: OP-TEE version: 4.7.0 (gcc version 13.4.0 (GCC)) #3 Mon May 25 02:25:05 UTC 2026 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidel
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: Primary CPU switching to normal world boot
ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported

U-Boot SPL 2025.01-g7493977a537f-dirty (May 25 2026 - 10:39:16 +0800)
SPL initial stack usage: 1984 bytes
Trying to boot from MMC1
ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported


U-Boot 2025.01-g7493977a537f-dirty (May 25 2026 - 10:39:16 +0800)

SoC:   AM62LX SR1.1 HS-FS
Model: Texas Instruments AM62L3 Evaluation Module
DRAM:  2 GiB
ERROR:   Agent 0 Protocol 0x10 Message 0x7: not supported
Core:  85 devices, 32 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Net:   eth0: ethernet@8000000port@1
Warning: ethernet@8000000port@2 (eth1) using random MAC address - 9e:1a:69:29:a1:a1
, eth1: ethernet@8000000port@2
Hit any key to stop autoboot:  0
=>


Can grep out TEE in dmesg:

root@am62lxx-evm:~# uname -a
Linux am62lxx-evm 6.12.57-ti-rt-g31b07ab8dfbc #1 SMP PREEMPT_RT Thu Dec 4 13:07:37 UTC 2025 aarch64 GNU/Linux
root@am62lxx-evm:~#
root@am62lxx-evm:~# dmesg |grep tee
[ 0.000000] OF: reserved mem: 0x0000000080200000..0x00000000809fffff (8192 KiB) nomap non-r
[ 0.991337] optee: probing for conduit method.
[ 0.991379] optee: revision 4.7 (a9690ae39995af36)
[ 0.991801] optee: dynamic shared memory is enabled
[ 0.992884] optee: initialized driver
root@am62lxx-evm:~#

但在客户的系统下、被投诉人是否不受影响?

[ 1.338980] optee: probing for conduit method.
[ 1.338998] optee: api uid mismatch
[ 1.339004] optee firmware:optee: probe with driver optee failed with error -22

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Tony:
    我将在 AM62L EVM 上随附两个日志 (AM62L Linux SDK 11.2.8.2)
    - am62l_11.2.8.2_optee_dbg.log:trng
    - am62l_11.2.8.2_optee_dbg_PRNG.log: PRNG
    此致、
    - Hong

    e2e.ti.com/.../am62l_5F00_11.2.8.2_5F00_optee_5F00_dbg.log

    e2e.ti.com/.../am62l_5F00_11.2.8.2_5F00_optee_5F00_dbg_5F00_prng.log

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Hong、

    来自 Linux 用户 指南的 OPTEE 加载地址、尽管定制电路板为 512MB DDR、但这不应该是 OPTEE 加载的问题。

    ----------------------------------------------- +
    | ATF 图像 | 0x80000000 |+------------------------------
    --------------- +
    | OP-TEE 图像 | 0x80200000 |
    +/---- --------------- +|
    U-Boot/Linux 内核映像| 0x80080000 |+---------------------------
    --------------- +
    | DTB | 0x82000000 |

    下面是来自客户电路板的日志、没有报告 OP-TEE 信息的 TC 阶段日志。   

    u-boot.img 似乎没有 OPTEE 组合。

    NOTICE: bl1_plat_arch_setup arch setup
    NOTICE: Booting Trusted Firmware
    NOTICE: BL1: v2.12.0(release):11.02.01-14-g5939ceaeb-dirty
    NOTICE: BL1: Built : 08:05:07, Jan 28 2026
    NOTICE: BL1: dram_class: 10
    NOTICE: lpddr4: post start - PI training status=0x29c02000
    NOTICE: bl1_platform_setup DDR init done
    NOTICE: k3_bl1_handoff ENTERING WFI - end of bl1
    NOTICE: BL31: v2.12.0(release):11.02.01-14-g5939ceaeb-dirty
    NOTICE: BL31: Built : 08:05:11, Jan 28 2026
    NOTICE: SYSFW ABI: 4.0 (firmware rev 0x000b '11.2.5-v11.02.05a (Fancy Rat)')
    get_device_type a0a
    ERROR: Agent 0 Protocol 0x10 Message 0x7: not supported
    
    U-Boot SPL 2025.01-g398f44b6f7db (Apr 30 2026 - 03:21:19 +0000)
    SPL initial stack usage: 2048 bytes
    Trying to boot from SPINAND
    ERROR: Agent 0 Protocol 0x10 Message 0x7: not supported

    客户 uboot 构建日志:

    e2e.ti.com/.../uboot_167FD18B_log.txt

    您能解释一下为什么没有加载 OPTEE 吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Tony:

    我将在 AM62L EVM 上附加一个工作日志 (AM62L Linux SDK 11.2.8.2)、其中我将 DDR 大小重新配置为 512MiB、就像在客户电路板上一样。

    root@am62lxx-evm:~# dmesg | grep tee
    [    0.000000] OF: reserved mem: 0x0000000080200000..0x00000000809fffff (8192 KiB) nomap non-reusable optee@80200000
    [    1.084818] optee: probing for conduit method.
    [    1.089413] optee: revision 4.7 (a9690ae39995af36)
    [    1.106198] optee: dynamic shared memory is enabled
    [    1.117063] optee: initialized driver
    root@am62lxx-evm:~# 

    “I/ECG(输入/输出)TC ...“ 仅当使用“CFG_TEE_CORE_Debug=y“构建 optee 时显示。

    -这是 optee 链接到 tispl.bin 的地方
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/dts/k3-am62l3-evm-binman.dtsi?h=11.02.08#n99

    -这是在 DDR 注意事项中为 AM62L 保留的被请求者加载地址/长度
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/mach-k3/Kconfig?h=11.02.08#n167
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/mach-k3/am62lx/am62l3_fdt.c?h=11.02.08#n14

    此致、
    - Hong

    e2e.ti.com/.../am62l_5F00_11.2.8.2_5F00_optee_5F00_512M.log