Building AOSP for DB410C and Hikey960


#1

Hi,

We have both DB410C and HiKey960. The first phase of our project used HiKey960, but for the next stage we are considering a Qualcomm System On Module to reduce the size of our device. Now I want to evaluate the performance of our main application on the APQ8016 (DB410C) so I’m trying to build AOSP in the same source code tree as we use for the Hikey 960. Using this documentation for reference:

First I cleaned the full out directory by running make clean. But now, I get this:

============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=db410c32_only
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-45-generic-x86_64-Ubuntu-16.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC-MR1
OUT_DIR=out
============================================
============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=db410c32_only
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-45-generic-x86_64-Ubuntu-16.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC-MR1
OUT_DIR=out
============================================
[43/43] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[930/931] glob vendor/google_data/pgo-profiles/art/dex2oat_arm_arm64.profdata
wildcard(out/target/product/db410c32_only/clean_steps.mk) was changed, regenerating...
out/build-db410c32_only.ninja is missing, regenerating...
[355/827] including hikey-linaro/drivers/staging/greybus/tools/Android.mk ...
build/make/core/base_rules.mk:261: error: hikey-linaro/drivers/staging/greybus/tools: MODULE.TARGET.EXECUTABLES.gb_loopback_test already defined by db410c-kernel/drivers/staging/greybus/tools.
10:41:09 ckati failed with: exit status 1

How can I exluce all hikey related stuff from the db410 build? Conversely, I get the same on a HiKey kernel build.


#2

got everything to build by temporarily moving the hikey-linaro directory out of the aosp root dir. apparenyl there’s some stuff to do on AOSP support for DB410c because i couldn’t the boot process past the init stage.


#3

How did that directory get there in the first place?


#4

err, that’s where i checked it out when i started with aosp on the hikey960. it hasn’t given me any problems untile now


#5

great. now i messed up my hikey kernel as well. moved the folder back in and the db410 one out, rebuilt a kernel for hikey and now that won’t boot any longer either…


#6

The memory map address might be different, suggest do not that.