OPTEE on i.MX8MP
Yannic Moog
Y.Moog at phytec.de
Tue Mar 17 07:41:35 CET 2026
Hi Fabio,
On Mon, 2026-03-16 at 23:07 -0300, Fabio Estevam wrote:
> Hi,
>
> I'm trying to boot the imx8mp-evk board with Optee support.
>
> TF-A v2.14
> make -j12 CROSS_COMPILE=aarch64-linux-gnu- PLAT=imx8mp SPD=opteed bl31
>
> Optee-OS 4.9.0
> make -j12 CROSS_COMPILE=aarch64-linux-gnu- O=out/arm PLATFORM=imx-mx8mpevk
>
> Then I copied the bl31.bin and tee.bin to the U-Boot directory:
My guess is that you copied tee.bin, not tee-raw.bin [1] to the U-Boot directory.
We need tee-raw.bin.
Yannic
[1] https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html#id5
>
> U-Boot SPL 2026.04-rc4-00006-geefb822fb574 (Mar 16 2026 - 22:51:05 -0300)
> WDT: Started watchdog at 30280000 with servicing every 1000ms (60s timeout)
> SEC0: RNG instantiated
> Normal Boot
> Trying to boot from BOOTROM
> Boot Stage: Primary boot
> image offset 0x8000, �
> U-Boot SPL 2026.04-rc4-00006-geefb822fb574 (Mar 16 2026 - 22:53:30 -0300)
> WDT: Started watchdog at 30280000 with servicing every 1000ms (60s timeout)
> SEC0: RNG instantiated
> Normal Boot
> Trying to boot from BOOTROM
> Boot Stage: Primary boot
> image offset 0x8000, pagesize 0x200, ivt offset 0x0
> load_simple_fit: Skip load 'tee': image size is 0!
> ***************************** Tee image is not found
> NOTICE: Do not release JR0 to NS as it can be used by HAB
> NOTICE: BL31: v2.14.0(release):sandbox/v2.14
> NOTICE: BL31: Built : 22:19:21, Mar 16 2026
> ERROR: Error initializing runtime service opteed_fast
>
>
> U-Boot 2026.04-rc4-00006-geefb822fb574 (Mar 16 2026 - 22:53:30 -0300)
>
> CPU: NXP i.MX8MP[8] Rev1.0 A53 at 1200 MHz
> Model: NXP i.MX8MPlus EVK board
> DRAM: 6 GiB
> optee optee: OP-TEE api uid mismatch ************************* UID mismatch
> ....
>
> Any ideas as to why Optee fails?
>
> Does anyone have Optee working on imx8mp?
>
> Thanks,
>
> Fabio Estevam
More information about the U-Boot
mailing list