Closed mofanv closed 4 years ago
I wonder AOSP should be able to provide interface even with OPTEE right? Could you please let me know is this as expected or normal? What might be wrong here.
AOSP is a huge project with hundreds of gits. What we've been trying to do is to ensure that with a normal AOSP provided by Google, you should be able to run OP-TEE. In you case, OP-TEE seems to work perfectly fine. So, the display related problem is elsewhere, where other people are subject matter experts. You could try 96Boards forum alternatively try to reach out to Google / AOSP people. @vchong , anything you'd like to add?
@mofanv How did you build? Did you try the build with another monitor? Did you try the monitor with a regular build, i..e with no OP-TEE? The hikey* boards have issues with some monitors so let's rule the monitor out first.
Hi @jbech-linaro @vchong , thank you for your reply.
I followed AOSP page https://optee.readthedocs.io/en/latest/building/aosp/aosp.html using master
branch, and I'm using Ubuntu 14 on Intel NUC. Because of its limited computational resources and hard disc, I chose to first try AOSP-OPTEE directly. And there is no errors during sync
and build
. So I didn't try the regular repo from Android website.
I just tested another monitor and it is still the same (stuck at the android logo). Do you have other insights? Seems I might need to first test the board on the regular repo in official page, or ask in AOSP or hikey forum...
@mofanv Np. Thanks for the info. Don't quite remember if there were (non-OP-TEE related ;)) display issue but the master branch is actually a bit behind on maintenance due to other priorities. Can you please try this branch, with sync-master-hikey960.sh
and build-master-hikey960.sh
instead? It's more updated but patches aren't cleaned up yet - the reason it hasn't made it to the master branch. You can try the prebuilts here first before building. Since this isn't a regular release, please report back any issues so that we may try to help resolve them as well.
I can confirm that I had problems with some AOSP-OPTEE branches when trying to run it on my Hikey 620. I got mine working with the same repo as @vchong has listed. I am using tag 3.8.3 without any issues, xtest runs without any failed tests and the display works fine.
I suggest to test it out:
git clone https://github.com/linaro-swg/optee_android_manifest -b 3.8.3
And follow the listed build steps: link
@vchong @mwerensteijn Thank a lot! However, during flashing with prebuilts in https://people.linaro.org/~victor.chong/prebuilt/master/390-dirty/hikey960/, I'm facing another problem when flashing system.img
as follows.
target reported max download size of 134217728 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 256472560 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 122258928 is not a multiple of the block size 4096
fastboot: ../libsparse/sparse.c:144: write_all_blocks: Assertion `pad >= 0' failed.
./flash-all.sh: line 41: 6197 Aborted (core dumped) fastboot flash system "${OUT_IMGDIR}"/system.img
target reported max download size of 134217728 bytes
Do you know how to fix this? The error is saying size is not a multiple of the block size 4096
.
I will try the branch 3.8.3
, thanks for the suggestions. But before that, I wonder is there prebuilt
of this branch? I know there are some prebuilt in http://snapshots.linaro.org/android/android-lcr-reference-hikey960-q/, but I do see the version w.r.t. branch. Syncing and building from the source is really time-consuming.. if I could try the prebuilt first and then build from the source, that will be really nice. thank you!
By browsing through his prebuilt website I found the following folder: https://people.linaro.org/~victor.chong/prebuilt/pie/382/ From the URL I suspect it is version 3.8.2, maybe you can try that one
Finally it works. Sorry that I made a stupid mistake, did not unzip system.img.xz
to system.img
properly...
To summarize, The 390 branch works without display problem (i.e. with inferface). However, 383 branch here still has the display problem, hanging on the Android logo.
Thank a lot for your help.
Hi Team,
I have built AOSP - OPTEE on my Hikey 960 (4GB). Then I connect the board to HDMI monitor and boot, but the booting stuck at the Android logo (following picture).
However, I found that I can still access it via console, for example running
optee_example
, as follows.I wonder AOSP should be able to provide interface even with OPTEE right? Could you please let me know is this as expected or normal? What might be wrong here. Thank you in advance! Best, Fan