This is a cache of https://discuss.96boards.org/t/debug-logs-in-optee/1541. It is a snapshot of the page at 2024-10-06T05:29:15.220+0000.
Debug logs in optee - <strong>hikey</strong> - 96Boards Forum

Debug logs in optee

hello ,
I am trying to communicate with my spi device through optee, for this, am using spi driver.
(aosp\optee\optee_os\core\drivers\Pl022_spi.c)

And I do not have access to uart

My query is :
Is there any possibility to see debug logs of optee ( secure world ) from usb (adb shell) ?

I see a dir in hikey board-> /bugreports ? I wonder if there is any logging mechanism which I dont know of !!!

Thanks

There was an effort to try to do this [1] but sort of abandoned now. You can try the patch if you feel adventurous, but there won’t be much in terms of support.

[1] https://github.com/OP-TEE/optee_os/pull/810 (send traces to tee-supplicant when CFG_LOG_SYSLOG=y)