Hikey960 on nougat

for sure, here it is:

XPS-13-9360:~/repo/aosp-hikey$ source build/envsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/google/dragon/vendorsetup.sh
including device/google/marlin/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including device/moto/shamu/vendorsetup.sh
including sdk/bash_completion/adb.bash

Ok, their was a missing file on android 7.1.2 : build/core/combo/arch/arm/armv8-a.mk, I copy it from the master, and it seem work, here is the result now :

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=hikey960
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-42-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G48H
OUT_DIR=out

I’ll continue the build, and I will give you feedback, thanks for your help.

Good work! But if there are many other files outside of device/linaro/* that are needed from master branch, then the ‘mixture’ might not work, or very hard to get it to work.

Ok here is my next step :

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=hikey960
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-42-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G48H
OUT_DIR=out

Checking build tools versions…
including ./abi/cpp/Android.mk …
including ./art/Android.mk …
including ./bionic/Android.mk …
bionic/libc/arch-arm64/arm64.mk:65: *** “TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are generic, denver64. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.”.
build/core/ninja.mk:163: recipe for target ‘out/build-hikey960.ninja’ failed
make: *** [out/build-hikey960.ninja] Error 1

Any idea ?

You can try to fix each build error that appears, but this could go on and on with no estimate on when it’ll end. Besides, even if you reach the end, there’s no guarantee built images will work properly.

Also, it seems like armv8-a.mk is already in build/core/combo/arch/arm64/, so copying it to build/core/combo/arch/arm/ doesn’t look like the right thing to do anymore.

The build should have triggered an armv8 build, not arm. Not sure what happened. Can you list the steps you took to mix device/linaro/* from master branch and 7.1.2 for the rest?

To mix the master with 7.1.2, I just clone the repositories and the binaries:

that’s it!

What about device/linaro/build? Did you get that from master too?

Nop I use the one from 7.1.2. I’v tried to switch to the master but I had on error that say somthing like :

cat /build/envsetup.sh no such file or directory

Ok. It’s possible that some incompatibilities have been introduced in master. See Build System Changes for Android.mk Writers for details. If so, the files in device/linaro/* are then using a different set of env variables since they come from master, compared to the rest of the code. Not sure how else to help you here. Sorry.

If 8.x is an option for you, perhaps try that version instead of 7.x like the user in the related thread above to see if you’ve better luck.

thank you, I think I’ll move to 8.x, I have to cherry-pick all my changes from 7.1.2. I think it will be better.
thanks again for you help

You’re welcome. Please note that there’s no guarantee you won’t hit the same/similar issues again, although it seems like others have managed to make it work (to a certain degree?) in https://discuss.96boards.org/t/aosp-8-1-stable.

I just check you link, but I’m suprised to see that there NO graphics acceleration working at all. If this is true, I cannot do for my business with this board.

I took the board because I need more GPU power, and according to the spec of the board

CPU 4 Cortex A73 + 4 Cortex A53 Big.Little CPU architecture
GPU ARM Mali G71 MP8

Maybe I have to look for another board.

Not sure about the 8.1 branches (the report in the thread cited ends by noting the graphics performance problems were due to a confused USB port rather than a lack of acceleration… it is likely the original comment about no acceleration is incorrect). For sure there is a acceleration in the master branch.

I start building the master, I’ll give you feedback :wink:

@danielt , @justin_h83 : The confusion comes from the fact that the STABLE branches have no acceleration (which might be reparable by pulling in certain elements of MASTER), but that also the USB bug may come into play and needs to be considered before concluding that acceleration is not working.

I just finish building the master, and I can say that still some problem with graphics.
I’ll post a video tomorrow, with all details.
@doitright I didn’t follow the discussion about the usb bug, maybe it’s the real cause.
thx

There are some graphical artifacts in master, yes. There is a bug filed regarding this, https://bugs.96boards.org/show_bug.cgi?id=575 – but its been a while since its been updated.

Thanks for clearing that up.

Hello,

Here is a the video

Someone know the problem ? I think is the same as https://bugs.96boards.org/show_bug.cgi?id=575 !

Regards