Page MenuHomePhabricator

imx8m does not start after EHF with S-EL2 SPMC change
Open, Needs TriagePublic

Description

I've tried to startup the imx8mm_evk target with latest upstream TF-A synced at commit 1309c6c80519 ("Merge changes from topic "fix_fip_in_emmc_boot" into integration"), but experienced the hang after TF-A initialization.

Following is the boot log that can be recorded until the hand occurs:

U-Boot SPL 2022.10-rc4-00052-g3d079881b7 (Sep 09 2022 - 16:44:52 +0200)
No pmic
SEC0:  RNG instantiated
Normal Boot
WDT:   Started watchdog@30280000 with servicing (60s timeout)
Trying to boot from MMC1
NOTICE:  BL31: v2.7(release):v2.7.0-359-g1309c6c80
NOTICE:  BL31: Built : 14:42:36, Sep  9 2022

Bisecting into the tree, I was able to narrow it down to the offending commit with Change-Id: I72d4cf4d8ecc549a832d1c36055fbe95866747fe, which when reverted - allows the boot process to complete to U-Boot prompt.

I am not totally sure which part of the change caused such a hang. Can this be looked into by the author of the change to advise how this can be solved?

Event Timeline

zandrey created this task.Sep 9 2022, 2:58 PM

Hi,
From the logs I understand BL31 is started by U-Boot SPL rather than TF-A's BL1/BL2, correct?
Would it be possible to gather more verbose logs (build with DEBUG=1 LOG_LEVEL=50) ?
Can you share the TF-A command line used to build this platform?
In particular what's the state of EL3_EXCEPTION_HANDLING, SPD, SPMD_SPM_AT_SEL2 toggles?
Thanks, Olivier.

zandrey added a comment.EditedSep 17 2022, 7:34 PM

Hello Olivier,

Sorry, it took me some time to get the build and start-up logs. I was able to reproduce the issue also on imx8mp_lpddr4-evk platform.

Hi,
From the logs I understand BL31 is started by U-Boot SPL rather than TF-A's BL1/BL2, correct?

Yes, that is correct. BL31 is started directly from SPL.

Would it be possible to gather more verbose logs (build with DEBUG=1 LOG_LEVEL=50) ?

I was not able to launch the full debug build due to the size, but release build show the log attached to this message as [1].

Can you share the TF-A command line used to build this platform?

This is a simple make command targeting the imx8mp platform.

$ make V=1 LOG_LEVEL=50 PLAT=imx8mp bl31

Build log is attached here as [2]

GCC version used is:

$ aarch64-leica-linux-gcc --version
aarch64-leica-linux-gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

In particular what's the state of EL3_EXCEPTION_HANDLING, SPD, SPMD_SPM_AT_SEL2 toggles?

Sure, they are:

-DEL3_EXCEPTION_HANDLING=0
-DSPD_none
-DSPMD_SPM_AT_SEL2=1

Entire set of options can be seen in the build log file.

Please let me know if you need any additional info here!

Thanks, Olivier.

Thanks a lot!

  • andrey

Link: [1]:


Link: [2]:

odeprez added a comment.EditedSep 22 2022, 11:22 AM

Thanks for your reply. Looks like there is a fix under works:

https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16815

Thanks Marco for digging.

Hello Olivier,

Thanks for your reply. Looks like there is a fix under works:

https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16815

That is indeed the change required to fix this issue! I've just posted a comment there that with a patch applied - the boot process proceeds as normal.

Thanks Marco for digging.

Thanks a lot to both of you!

Regards,
Andrey

The error you are getting is a common error when installing applications on the system. You need to upgrade the system slither io to a higher version to avoid the error.

I also had this error, you can install house of hazards to improve the error.

Ensure that the changes made to the SPMC are correct and compatible with the i.MX8M slither io platform. Verify if any misconfigurations or errors were introduced during the modification process.

That adjustment is exactly what's needed to resolve the problem. I just made a remark there saying that applying a patch makes booting up the computer regular again.Moto X3M

That change is precisely what is required to remedy the issue. I only said there that deploying a patch restores normal booting of the PC. only up

That change is precisely what's required to fix the issue. I just said above that installing a patch restores the computer's normal booting behavior. pge outage map

This content is extremely helpful to me, you have specific information about the changes, fixes and known issues in each release of Trusted Firmware-A geometry dash meltdown

If you have the means to test different configurations or gather additional debugging information, it can help diagnose the issue slope unblocked and find a solution.

For additional information on one of our game lines or to see one of our web comic series, click one of the links below. papa louie

The information you share is great, please continue to write about this topic regularly moto x3m

I apologize for not being able to offer more specific guidance, but I hope you're able to resolve the issue with the assistance of the imx8m platform's support team. Donkey Kong

Hi, From the logs I understand BL31 is started by U-Boot SPL rather than TF-A's BL1/BL2, correct? dino game

Change Log & Release Notes. This document contains a summary of the new features, changes, fixes and known mapquest directions issues in each release of Trusted Firmware-A.

The release candidates will start appearing after this and only bug fixes or updates required for the release will be merged. car games

It's important to have access to reliable and trusted software sources, especially in the context of today's cybersecurity challenges. I have found the documentation and resources provided on this site to be extremely helpful and easy to understand. It is an invaluable tool for developers looking to improve the security of their products. Also, if you are looking for effective strategies to promote your products or ideas on social media, be sure to check out the article on Depositphotos. It can give you valuable insights and tips on how to create a strong social media strategy, which is extremely important in today's digital world

Prepare yourself for an adrenaline-pumping adventure as we delve into the captivating world of this stealth horror game. Hello Neighbor

This document contains a summary of the new features, changes, fixes and known issues in each release of Trusted Firmware-A. papa's paleteria