Android – how to simulate TrustZone in QEMU?

I tried to simulate the TrustZone function in QEMU. I found two links that seemed to explain the process

The first reference does not have an image kernel that supports TrustZone attached (where can I find it?)

The second reference explains how to compile the kernel, but it doesn't start with the command line written in the first website, as shown below

./arm-softmmu/qemu-system-arm -kernel $PATH_TO_KERNEL/zImage -M vexpress-a15 -cpu cortex-a15 -dtb PATH_TO_DTB/vexpress-v2p-ca15-tc1.dtb -m 1024 -append 'console=ttyAMA0,38400n8' -serial stdio -initrd $PATH_TO_INITRD/initrd.img

Is there another way to run the TrustZone simulator?

resolvent:

Using op-tee (open source TEE), it is very easy to run TrustZone on QEMU. You can run the whole stack from the normal world user space and Linux kernel to the safe world, and run tee itself and trusted applications at the same time. QEMU op-tee is applicable to armv7-a and armv8-a. if you want to try it on your local PC, I encourage you to go to optee_ OS / readme.md and follow the instructions in sections 4.1, 5 (QEMU only) and 6. In a word, there are less than 10 commands in a shell. You will start and run all source codes locally on the PC and compile all source codes

I wrote a blog post about why QEMU is a good choice for TrustZone development

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>