linaro-swg / optee_android_manifest

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

Building Android + OPTEE for Hikey960 #20

Closed a2t2 closed 6 years ago

a2t2 commented 7 years ago

I am trying to setup a Android + OPTEE branch to flash a Hikey 960. I need to have both userspace and kernel built from source. So far, I have tested the AOSP userspace build instructions, which works fine. When I try to sync Android + OPTEE, I cannot find the build option for Hikey960. I tried as follows (I combined instructions from Google's site and Android + OPTEE Manifest):

$ repo init -u https://android.googlesource.com/platform/manifest -b master
$ cd .repo
$ git clone https://github.com/linaro-swg/optee_android_manifest.git local_manifests
$ cd ..
$ repo sync -j24
$ wget https://dl.google.com/dl/android/aosp/arm-hikey960-NOU-7ad3cccc.tgz
$ tar xzf arm-hikey960-NOU-7ad3cccc.tgz
$ ./extract-arm-hikey960.sh

After this if I try the following, I cannot find the build option for Hikey 960 (I get the error Don't have a product spec for: hikey960-userdebug):

$ . ./build/envsetup.sh
$ lunch hikey960-userdebug

Any suggestions on how to fix this ? Can I just add the hikey960-userdebug lunch_combo to vendorsetup.sh ? Will that work ?

Thanks

vchong commented 7 years ago

OP-TEE is not supported yet on hikey960 android. It might be a while before it is.

a2t2 commented 7 years ago

Can you let me know any URL where OPTEE support for hikey 960 will be announced once its done ? I want to check periodically. Will the the AOSP+OP-TEE manifest github page be updated when that happens? Thanks

vchong commented 7 years ago

Yes, the manifest github page will be updated but there will be no url or announcement so you'll just have to manually check it periodically. Sorry. I'll make a note to post an update here when support is ready but as mentioned before, it might be a while since this task is currently on the backlog as there are other higher priority tasks atm.

a2t2 commented 7 years ago

Okay thanks.

rabi2017 commented 6 years ago

Hi @vchong , Does OP-TEE with AOSP build is available for hikey 960 boards with hardware decoding support?

Thanks, Rabi

vchong commented 6 years ago

@rabi2017 Afaik the regular hikey960 aosp build hasn't implemented hw decoding support yet. You can track patches here [1] to see when/if they come up. Also, there's not really a proper hikey960 aosp with op-tee build yet since development is currently inactive due to other priorities. You can try an 'informal' build here [2] if you want but not sure how stable it is.

[1] https://android-review.googlesource.com/q/project:device%252Flinaro%252Fhikey [2] https://github.com/vchong/optee_android_manifest/blob/wip/tmp.txt

vchong commented 6 years ago

One of our community users, @bensup, has kindly shared his implementations here: https://github.com/bsupiot/hikey960-aosp-optee/wiki. For those who are interested, please give it a try. There are some known issues so please contribute back patches if possible. A big thank you to @bensup! Thanks!

vchong commented 5 years ago

@a2t2 You can try hikey960 build on https://github.com/linaro-swg/optee_android_manifest now.