Does anyone know a branch, version or manifest of the aosp sources that run on HiKey970?

Stock images are working but the version they were built from is nowhere to be found. I’m trying to build it out of master for two weeks now without a success or even getting close to building an image that resembles the stock one.

Hi,

I got the following info by using the command

adb shell cat system/build.prop

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=OC-DR1
ro.build.display.id=hikey970-userdebug P OC-DR1 403 test-keys
ro.build.version.incremental=403
ro.build.version.sdk=26
ro.build.version.preview_sdk=1
ro.build.version.codename=P
ro.build.version.all_codenames=P
ro.build.version.release=P
ro.build.version.security_patch=2017-10-05
ro.build.version.base_os=
ro.build.date=Fri Apr 27 10:33:14 CST 2018
ro.build.date.utc=1524796394
ro.build.type=userdebug
ro.build.user=phisik3
ro.build.host=01-u10-141-107-212.huawei.com
ro.build.tags=test-keys
ro.build.flavor=hikey970-userdebug
ro.product.model=AOSP on hikey970
ro.product.brand=Android
ro.product.name=hikey970
ro.product.device=hikey970
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
ro.product.manufacturer=unknown
ro.product.locale=en-US
ro.wifi.channels=
# ro.build.product is obsolete; use ro.product.device
ro.build.product=hikey970
# Do not try to parse description, fingerprint, or thumbprint
ro.build.description=hikey970-userdebug P OC-DR1 403 test-keys
ro.build.fingerprint=Android/hikey970/hikey970:P/OC-DR1/403:userdebug/test-keys
ro.build.characteristics=default
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
dalvik.vm.heapstartsize=16m
dalvik.vm.heapgrowthlimit=192m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=unknown
ro.config.alarm_alert=Alarm_Classic.ogg
ro.dalvik.vm.native.bridge=0
ro.bionic.ld.warning=1
ro.treble.enabled=false
persist.sys.dalvik.vm.lib.2=libart.so
dalvik.vm.isa.arm64.variant=cortex-a73
dalvik.vm.isa.arm64.features=default
dalvik.vm.isa.arm.variant=cortex-a73
dalvik.vm.isa.arm.features=default
dalvik.vm.lockprof.threshold=500
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt

From this, it seems the build ID is

ro.build.display.id=hikey970-userdebug P OC-DR1 403 test-keys

However I am still investigating which tag/branch it belongs to.

Regards,
Nishad

Hi,

While investigating the source for the pre-built images,
I came across the following branch as the closest to the version of the pre-built images.

https://android.googlesource.com/platform/manifest/+/pie-dr1-dev

After building the same with source built ramdisk.img, boot.img, system.img, cache.img and userdata.img
the board boots successfully with HDMI display.

Note: Change the size of the userdata image to 24GB from 53GB in “device/linaro/hikey/hikey970/BoardConfig.mk”

file as follows:

include device/linaro/hikey/BoardConfigCommon.mk

TARGET_BOOTLOADER_BOARD_NAME := hikey970
TARGET_BOARD_PLATFORM := hikey970

TARGET_CPU_VARIANT := cortex-a73
TARGET_2ND_CPU_VARIANT := cortex-a73

TARGET_NO_DTIMAGE := false

BOARD_KERNEL_CMDLINE := androidboot.hardware=hikey970 console=ttyFIQ0 androidboot.console=ttyFIQ0
BOARD_KERNEL_CMDLINE += firmware_class.path=/system/etc/firmware loglevel=15
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
ifneq ($(TARGET_SENSOR_MEZZANINE),)
BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE)
endif
BOARD_MKBOOTIMG_ARGS := --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4915724288  # 4688MB
BOARD_USERDATAIMAGE_PARTITION_SIZE := 25769803776 # 24GB
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456       # 256MB
BOARD_FLASH_BLOCK_SIZE := 512
~                                     

Thanks and regards,
Nishad

Android 9.0 r8, for more information, can search in github