i.MX8MQ (Pico-Pi) fails to boot after enabling OP-TEE in Yocto – no debug console output

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8MQ (Pico-Pi) fails to boot after enabling OP-TEE in Yocto – no debug console output

322 Views
Chris26
Contributor I

Hello everyone,

I am trying to enable OP-TEE on an Pico-Pi i.MX8M Quad from TechNexion board using Yocto, but as soon as I enable OP-TEE, the board stops booting entirely.
With OP-TEE disabled, the system boots normally.

Yocto configuration

I added the following in my machine/distro/image layers:

MACHINE_FEATURES += "optee" DISTRO_FEATURES += "optee" IMAGE_INSTALL += "optee-test optee-os opteeclient"

The build succeeds, and I get tee.bin, bl31.bin, and an updated imx-boot image.

Symptom

  • When booting the image with OP-TEE enabled, the board appears to lock up immediately.

  • No output appears on the debug console (Pico-Pi micro-USB UART).

  • The Pico-Pi has a small LED that normally blinks during boot activity, but with OP-TEE enabled:

    • the LED turns on and stays constantly lit

    • it never blinks, suggesting the CPU hangs before SPL/ATF/U-Boot can run

  • With OP-TEE disabled (removing MACHINE_FEATURES += "optee"), the LED blinks normally during boot and Linux starts without issues.

Has anyone successfully enabled OP-TEE on the i.MX8MQ Pico-Pi using Yocto?
Is there anything board-specific required (dtb, ATF configuration, UART, memory layout, TZASC) ?

Any hints on what I might be missing or what to check next would be greatly appreciated.

Thank you!

0 Kudos
Reply
2 Replies

249 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You should try to burn again your iMX since process is ok, maybe someone for TechNation could help.

Regards

0 Kudos
Reply

238 Views
Chris26
Contributor I

I burned the image again, and the result is the same. The setup is based on Yocto Hardknott with the Linux 5.10 LTS kernel. The image was burned to the board’s eMMC, and the Yocto version used is Hardknott 3.3.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2248481%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX8MQ%20(Pico-Pi)%20fails%20to%20boot%20after%20enabling%20OP-TEE%20in%20Yocto%20%E2%80%93%20no%20debug%20console%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248481%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20enable%20%3CSTRONG%3EOP-TEE%3C%2FSTRONG%3E%20on%20an%20%3CSTRONG%3EPico-Pi%20i.MX8M%20Quad%20from%20TechNexion%3C%2FSTRONG%3E%20board%20using%20Yocto%2C%20but%20as%20soon%20as%20I%20enable%20OP-TEE%2C%20the%20board%20stops%20booting%20entirely.%3CBR%20%2F%3EWith%20OP-TEE%20disabled%2C%20the%20system%20boots%20normally.%3C%2FP%3E%3CP%3E%3CSTRONG%3EYocto%20configuration%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20added%20the%20following%20in%20my%20machine%2Fdistro%2Fimage%20layers%3A%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EMACHINE_FEATURES%20%2B%3D%20%3CSPAN%20class%3D%22%22%3E%22optee%22%3C%2FSPAN%3E%20DISTRO_FEATURES%20%2B%3D%20%3CSPAN%20class%3D%22%22%3E%22optee%22%3C%2FSPAN%3E%20IMAGE_INSTALL%20%2B%3D%20%3CSPAN%20class%3D%22%22%3E%22optee-test%20optee-os%20opteeclient%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3EThe%20build%20succeeds%2C%20and%20I%20get%20tee.bin%2C%20bl31.bin%2C%20and%20an%20updated%20imx-boot%20image.%3C%2FP%3E%3CP%3E%3CSTRONG%3ESymptom%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EWhen%20booting%20the%20image%20%3CSTRONG%3Ewith%20OP-TEE%20enabled%3C%2FSTRONG%3E%2C%20the%20board%20appears%20to%20lock%20up%20immediately.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ENo%20output%3C%2FSTRONG%3E%20appears%20on%20the%20debug%20console%20(Pico-Pi%20micro-USB%20UART).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EThe%20Pico-Pi%20has%20a%20small%20%3CSTRONG%3ELED%20that%20normally%20blinks%20during%20boot%20activity%3C%2FSTRONG%3E%2C%20but%20with%20OP-TEE%20enabled%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3Ethe%20LED%20turns%20%3CSTRONG%3Eon%20and%20stays%20constantly%20lit%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3Eit%20never%20blinks%2C%20suggesting%20the%20CPU%20hangs%20before%20SPL%2FATF%2FU-Boot%20can%20run%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3EWith%20OP-TEE%20disabled%20(removing%20MACHINE_FEATURES%20%2B%3D%20%22optee%22)%2C%20the%20LED%20blinks%20normally%20during%20boot%20and%20Linux%20starts%20without%20issues.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EHas%20anyone%20successfully%20enabled%20OP-TEE%20on%20the%20i.MX8MQ%20Pico-Pi%20using%20Yocto%3F%3CBR%20%2F%3EIs%20there%20anything%20board-specific%20required%20(dtb%2C%20ATF%20configuration%2C%20UART%2C%20memory%20layout%2C%20TZASC)%20%3F%3C%2FP%3E%3CP%3EAny%20hints%20on%20what%20I%20might%20be%20missing%20or%20what%20to%20check%20next%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX8MQ%20(Pico-Pi)%20fails%20to%20boot%20after%20enabling%20OP-TEE%20in%20Yocto%20%E2%80%93%20no%20debug%20console%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20burned%20the%20image%20again%2C%20and%20the%20result%20is%20the%20same.%20The%20setup%20is%20based%20on%20Yocto%20Hardknott%20with%20the%20Linux%205.10%20LTS%20kernel.%26nbsp%3BThe%20image%20was%20burned%20to%20the%20board%E2%80%99s%20eMMC%2C%20and%20the%20Yocto%20version%20used%20is%20Hardknott%203.3.%3C%2FP%3E%3C%2FLINGO-BODY%3E