2025-01-13 01:31 AM
Hello,
I encountered a problem with optee that I could not resolve due to a misunderstanding of debug information.
During boot up the board, I get the following debug log
and with Panic at the end. I have to admit that I don't see any trouble with the debug text above.
I also attached two dts files tf-a and optee and full log.
The files were generated from the latest STMCubeIde 1.17.0 with the necessary supplementation.
Thanks for any help
BR Michal
2025-01-13 02:34 AM
Hello Michal,
In order to have some more information on what causes the panic, you can print the call stack. Please have a look at https://optee.readthedocs.io/en/latest/debug/abort_dumps.html.
This will heavily narrow down the search to the root cause.
Br,
Gatien
2025-01-13 03:59 AM
Hi GatienC,
I think Your suggestion did not resolve my problem because in my debug-log.txt there are no records with just empty addresses or data dumps like
"E/TC:0 0x001044a8"
Besides in my log, I have no records like "E/TC" without the last 'panic'.
Can I find the example dts of optee for DK2 board or ED1.
In my opinion Cube generator did something improper or I defined something wrong in it.
BR,
Michal
2025-01-13 04:58 AM - edited 2025-01-13 04:58 AM
It most probably is linked to this but the backtrace will allow you to know which part of the code makes the platform panic.
Can you check in the "conf.mk" file in the build directory, that you have
CFG_UNWIND=y
You can also set
CFG_TEE_CORE_DEBUG=y
as well.
BR,
Gatien
2025-01-13 07:10 AM - edited 2025-01-13 07:12 AM
OK, I check and try new options and let You know soon.
Thanks for now.
BR,
Michal