linaro-swg / optee_android_manifest

Android manifest for building OP-TEE in AOSP
38 stars 34 forks source link

I want to know the principle #35

Closed Cukuyo closed 6 years ago

Cukuyo commented 6 years ago

Last week, i studied OPTEE-OS . I installed it on my ubuntu16, and run hello-world. I know that it is a CPU running two OS architectures , one is OPTEE-OS, the another is Linux. So , i guess the optee_android is that Linux is replaced by Android, is it? If it is true , please tell me the detail. Thanks!

vchong commented 6 years ago

@Cukuyo Yes, you're basically right. What other details do you need?

Cukuyo commented 6 years ago

@vchong There is a Linux OS in the OPTEE-OS folder. I think it is not simply that replcing the OS file. So, when i finish downloading AOSP and OPTEE-OS, what is the next step? I guess, the process is the OPTEE-OS will be compiled in the Android and be part of Android. when we launch the Android , the OPTEE-OS will be launched. In the process of this replacement system, there might be some configuration of parameters, such as what startup or something.

vchong commented 6 years ago

@Cukuyo When you run hello-world on your ubuntu16, which OP-TEE platform did you use? Qemu?

If you want to build AOSP and OPTEE-OS, just follow the instructions on https://github.com/linaro-swg/optee_android_manifest/tree/lcr-ref-hikey-o, but this is for HiKey board only.

Cukuyo commented 6 years ago

@vchong Yes, Qemu. So, if i want to use Qemu platform, or other platform except HiKey, what should i to do? Please tell me. Very thanks.

vchong commented 6 years ago

@Cukuyo AOSP and OPTEE-OS build isn't available in Qemu. I'm not even sure if AOSP build alone is available in Qemu yet or not. For real hardware, other than HiKey, there's TI board (https://github.com/petegriffin/misc-docs/blob/master/am57xx-android.md), but not sure how easy it is to get. There's also Poplar board but it's work in progress so no build instructions yet.

Cukuyo commented 6 years ago

@vchong Thanks for your help