96boards-hikey / aosp-device-linaro-hikey

This repository is based off https://android.googlesource.com/device/linaro/hikey/
12 stars 16 forks source link

Android 8.1.0 display slow #1

Open AhmedX6 opened 6 years ago

AhmedX6 commented 6 years ago

hello,

I flashed Android 8.1.0 on my Hikey960. The result is that I have a slow display.. probably, the hardware acceleration is not supported by the Kernel 4.4.

I would like to update the kernel. When I do it (with v4.9), the system is not booting anymore.

Do you have any solution on this ?

The kernel 4.9 is working well with Android P but I prefer Android 8.1.0 for my development.

johnstultz-work commented 6 years ago

On Mon, Mar 19, 2018 at 10:11 PM, Ahmed ABOU ZID notifications@github.com wrote:

hello,

I flashed Android 8.1.0 on my Hikey960. The result is that I have a slow display.. probably, the hardware acceleration is not supported by the Kernel 4.4.

Unfortunately the "release tags" are made on internal branches, so we cannot test them on the devboards before the tags are made. Thus they tend to have issues like this.

For this reason, AOSP/master is the only branch that is supported on HiKey/HiKey960.

So I'd recommend re-running repo sync specifying master as the branch, then rebuilding and reflashing.

I would like to update the kernel. When I do it (with v4.9), the system is not booting anymore.

Do you have any solution on this ?

The kernel 4.9 is working well with Android P but I prefer Android 8.1.0 for my development.

Unfortunately I don't have enough details here to understand the problem. Can you explain what you mean by "update the kernel"? Can you clarify which kernel branch exactly (or the HEAD sha1sum would be most helpful) you're trying to use?

thanks -john

AhmedX6 commented 6 years ago

Hello John,

Thank you for the reply. In fact, the mater branch is working well. The master branch is pointing to an Android P version. Android P is running on Kernel 4.9. There is no bug at all, problem is that we are not root on the image and it's difficult to develop on it because we cannot use adb.

I would like to follow this part of the Google Documentation to update the Kernel of Android 8.1.0 branch https://source.android.com/setup/devices screenshot from 2018-03-19 15-43-47

But after doing it, it looks like the system is not booting anymore. Do you know what is wrong on this action?

Thanks for help.

AhmedX6 commented 6 years ago

I finally resolved every problems with the master branch. Thank you for helping.

Do you know why when I try to build for aosp_car_arm64_userdebug I got errors for hikey ?

[  0% 62/16890] build out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests
FAILED: out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests 
/bin/bash -c "(out/host/linux-x86/bin/sepolicy_tests -l out/host/linux-x86/lib64/libsepolwrap.so         -f out/target/product/generic_arm64/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f out/target/product/generic_arm64/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts  -p out/target/product/generic_arm64/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"
The following types on /vendor/ must be associated with the "vendor_file_type" attribute: hal_vehicle_default_exec

[  0% 93/16890] //hardware/interfaces/radio/1.1:android.hardware.radio@1.1 clang++ android/hardware/radio/1.1/RadioAll.cpp
ninja: build stopped: subcommand failed.
16:34:30 ninja failed with: exit status 1

I am on Master branch Hope I will get a solution. Thank you for your help.

AhmedX6 commented 6 years ago

I checked this repo https://github.com/HiKey960-Car/HiKey960-Car I would like to compile it. But there is no the envsetup on build folder. What are the steps to compile it properly and deploy it on my Hikey960 ? I don't really know which is the best way to have a car HMI on my Hikey960. Thanks for help

johnstultz-work commented 6 years ago

On Wed, Mar 21, 2018 at 12:15 AM, Ahmed ABOU ZID notifications@github.com wrote:

I finally resolved every problems with the master branch. Thank you for helping.

Do you know why when I try to build for aosp_car_arm64_userdebug I got errors for hikey ?

[ 0% 62/16890] build out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests FAILED: out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests /bin/bash -c "(out/host/linux-x86/bin/sepolicy_tests -l out/host/linux-x86/lib64/libsepolwrap.so -f out/target/product/generic_arm64/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/generic_arm64/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/generic_arm64/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )" The following types on /vendor/ must be associated with the "vendor_file_type" attribute: hal_vehicle_default_exec

Apologies, I don't have much experience with that target. It looks like the sepolicy files needs some tweaking.

thanks -john

johnstultz-work commented 6 years ago

On Wed, Mar 21, 2018 at 12:53 AM, Ahmed ABOU ZID notifications@github.com wrote:

I checked this repo I would like to compile it. But there is no the envsetup on build folder. What are the steps to compile it properly and deploy it on my Hikey960 ? I don't really know which is the best way to have a car HMI on my Hikey960.

I know there's some external efforts going on, for example here: https://github.com/HiKey960-Car

You might give that a try? I've not personally tried to build or run it though.

thanks -john

AhmedX6 commented 6 years ago

Thank you for your answer. Yes as I said to you, I tried with that repo but problem is that there is no the envsetupon buildfolder, like we can find on the google source code of Android on master branch. It's like it miss some scripts to get the lunch as it's expected and then run the build... Could you please give a try on this repo ? At least just to prepare the build, to see if I'm missing something or not. I just cloned and did nothing else.

Thank you very much for your patience.

1stpie commented 6 years ago

i got this error too. how can i resolve this FAIL?

[ 0% 62/16890] build out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests FAILED: out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests /bin/bash -c "(out/host/linux-x86/bin/sepolicy_tests -l out/host/linux-x86/lib64/libsepolwrap.so -f out/target/product/generic_arm64/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts -f out/target/product/generic_arm64/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts -p out/target/product/generic_arm64/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch out/target/product/generic_arm64/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )" The following types on /vendor/ must be associated with the "vendor_file_type" attribute: hal_vehicle_default_exec

[ 0% 93/16890] //hardware/interfaces/radio/1.1:android.hardware.radio@1.1 clang++ android/hardware/radio/1.1/RadioAll.cpp ninja: build stopped: subcommand failed. 16:34:30 ninja failed with: exit status 1