Bug 14006 - op-tee not start on imx8mm_evk
Summary: op-tee not start on imx8mm_evk
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2021.05
Hardware: Other Other
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
: 14001 14011 14016 14021 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-12 14:45 UTC by v9sd
Modified: 2024-06-15 14:59 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
My config (without comments and empty lines) (14.18 KB, text/plain)
2021-07-14 09:06 UTC, v9sd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description v9sd 2021-07-12 14:45:42 UTC
Hello!
I have a problem with op-tee start on imx8mm_evk (https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-mini-applications-processor:8MMINILPD4-EVK).

My .config file is attached.


I write output/images/sdcard.img on sdcadr, connect terminal emultaion with serial port and start imx8.

After below output imx8mm_evk is output nothing.
U-Boot SPL 2020.04 (Jul 12 2021 - 16:19:50 +0300)
Can't find PMIC:PCA9450
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1
NOTICE:  BL31: v2.4(release):2021.05-393-gb928074e2d
NOTICE:  BL31: Built : 16:16:43, Jul 12 2021


Problem arises after jump execution on op-tee entry point address (0xbe000000)


After reaching the above address breakpoint, we have content in memory: 

(gdb) x/10i $pc
=> [34m0xbe000000[m <[33m_start[m>:     .inst   0x00150000 ; undefined
   [34m0xbe000004[m <[33m_start[m+4>:   .inst   0x00000000 ; undefined
   [34m0xbe000008[m <[33m_start[m+8>:   .inst   0x00000000 ; undefined
   [34m0xbe00000c[m <[33m_start[m+12>:  .inst   0x00000000 ; undefined
   [34m0xbe000010[m <[33m_start[m+16>:  .inst   0x00000000 ; undefined
   [34m0xbe000014[m <[33m_start[m+20>:  .inst   0x00000000 ; undefined
   [34m0xbe000018[m <[33m_start[m+24>:  .inst   0x00000000 ; undefined
   [34m0xbe00001c[m <[33m_start[m+28>:  .inst   0x00000000 ; undefined
   [34m0xbe000020[m <[33m_start[m+32>:  .inst   0x00000000 ; undefined
   [34m0xbe000024[m <[33m_start[m+36>:  .inst   0x00400000 ; undefined

As we look, it is not valid instructions opcode.

After continue execution, imx8 freezes.

Guess that the op-tee was not load in memory in uboot-spl.
Comment 1 v9sd 2021-07-14 09:06:11 UTC
Created attachment 9061 [details]
My config (without comments and empty lines)
Comment 2 v9sd 2021-07-19 07:43:08 UTC
*** Bug 14001 has been marked as a duplicate of this bug. ***
Comment 3 v9sd 2021-07-19 07:43:26 UTC
*** Bug 14011 has been marked as a duplicate of this bug. ***
Comment 4 v9sd 2021-07-19 07:43:38 UTC
*** Bug 14016 has been marked as a duplicate of this bug. ***
Comment 5 v9sd 2021-07-19 07:43:53 UTC
*** Bug 14021 has been marked as a duplicate of this bug. ***
Comment 6 v9sd 2021-07-19 07:57:56 UTC
Data from  op-tee entry point address without service info:
(gdb) x/10i $pc
=> 0xbe000000 <_start>:     .inst   0x00150000 ; undefined
   0xbe000004 <_start+4>:   .inst   0x00000000 ; undefined
   0xbe000008 <_start+8>:   .inst   0x00000000 ; undefined
   0xbe00000c <_start+12>:  .inst   0x00000000 ; undefined
   0xbe000010 <_start+16>:  .inst   0x00000000 ; undefined
   0xbe000014 <_start+20>:  .inst   0x00000000 ; undefined
   0xbe000018 <_start+24>:  .inst   0x00000000 ; undefined
   0xbe00001c <_start+28>:  .inst   0x00000000 ; undefined
   0xbe000020 <_start+32>:  .inst   0x00000000 ; undefined
   0xbe000024 <_start+36>:  .inst   0x00400000 ; undefined
Comment 7 Yann E. MORIN 2024-06-15 14:59:12 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!