Hi all,
The OS I used is Android P9 with Trusty O. The Android and Trusty kernel run in ARM64 state, while trusty APP runs in 32bit state. I connect the DS-5 to board and stop at 64bit state, but I failed to load 32bit trust APP ELF file(Secure EL1). Could you please advise here? Many thanks in advanced.
Best Regards,
Frank
Hi Frank,
Is your issue that you cannot switch to the app, or that the debugger cannot load the image?
If the former, then note that there is not specific function call that would do this, you would enter the application via an exception. this diagram summarizes this:
If the issue is simply that you are unable to load the image with the debugger, I suspect that you simply need to specify the address space (secure EL1 in this case) when loading the image - this is best done on the command line (or by script when connecting):
loadfile trustyapp.elf EL1S:0x0
Regards
Ronan
Hi Ronan,
Many thanks for your reply. Yes, I need to load the 32bit secure APP by below command now.
add-symbol-file "Z:\Trusty_P9.0.0_1.0.2-auto-beta\build-imx8qxp\user_tasks\trusty\hardware\nxp\app\hwcrypto\hwcrypto.syms.elf" S:0
Best Regards,Frank