Android 8.1.0_r43 can't get vendor.img in out/target/ folder for hikey960


#1

Hi all,

I have met some issues on using hikey960.

I’d like to pick a stable android 8.1 branch as my base branch. I have selected the android-8.1.0_r43. However, I my board can’t even boot up with the images I built out. Can some one help point me out my errors? I have seen that I can’t even got my vendor.img with make -j32

So must I use master branch ?

My boot up log(due to content size limit, it has been cut down) is here:
////////////////////////begin of logs///////////
----boot time is 5416 ms----

load_kernel: boot_from_bl31: boot to trusted firmware. addr=0x00000000
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Initializing cgroup subsys schedtune
[ 0.000000] Linux version 4.4.69-g7d27b15bcc5c (android-build@wphr5.hot.corp.google.com) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Tue May 30 22:23:51 UTC 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Ion: base 0xde200000, size is 0x1e00000, node name graphic, heap-name carveout_gralloc namesize 17,[99][97][114][118]
[ 0.000000] Ion: insert heap-name carveout_gralloc
[ 0.000000] Reserved memory: initialized node graphic, compatible id hisi_ion
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000016c00000, size 64 MiB
[ 0.000000] Reserved memory: initialized node fastboot-cma-mem, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 64 MiB at 0x00000000da000000
[ 0.000000] On node 0 totalpages: 1047744
[ 0.000000] DMA zone: 14323 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 916672 pages, LIFO batch:31
[ 0.000000] Normal zone: 2048 pages used for memmap
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] PERCPU: Embedded 19 pages/cpu @ffffffc21fee6000 s46976 r0 d30848 u77824
[ 0.000000] pcpu-alloc: s46976 r0 d30848 u77824 alloc=19*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1031373
[ 0.000000] Kernel command line: androidboot.hardware=hikey960 firmware_class.path=/system/etc/firmware loglevel=15 buildvariant=userdebug androidboot.swtype=normal fastboot_version=DailyBuild_201706021648_FASTBOOT setup_logctl=1 fastbootdmd=0 enter_recovery=0 androidboot.mode=normal low_volt_flag=1 boardid=0x000014b5 normal_reset_type=coldboot ddr_die=2048M@0M ddr_die=2048M@2048M efuse_status=2 androidboot.serialno=2302759322000000 himntn=111111111111111010111111101001100010001 boot_slice=0x0002932d reboot_reason=AP_S_COLDBOOT recovery_update=0 userlock=locked bootlock=unlocked hw_bfm_enable=0 ddr_density=2 swiotlb=2 mdmreglogbase=0x00000000 mdmreglogsize=0x00000000 modem_socp_enable=0 androidboot.hardware=HiKey960 androidboot.veritymode=enforcing androidboot.verifiedbootstate=ORANGE ufs_product_name=hB8aL1 format_data=1 cpu_buck_reg=0x;; androidboot.ddrsize=4 kce_status=1 console=ttyAMA6,115200
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] software IO TLB [mem 0xde1bf000-0xde1ff000] (0MB) mapped at [ffffffc0de1bf000-ffffffc0de1fefff]
[ 0.000000] Memory: 3917708K/4190976K available (12312K kernel code, 1290K rwdata, 3984K rodata, 1028K init, 1030K bss, 142196K reserved, 13

[ 9.329937] (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
[ 10.447309] (stk) :ldisc_install = 1Checking mode 1920x1080@60 clock: 148500…OK
[ 10.510530] Checking mode 1920x1080@50 clock: 148500…OK
[ 10.515930] Checking mode 1680x1050@60 clock: 119000…BAD
[ 10.521417] Checking mode 1440x900@60 clock: 88750…BAD
[ 10.526726] Checking mode 1280x800@60 clock: 71000…BAD
[ 10.532037] Checking mode 1600x900@60 clock: 108000…BAD
[ 10.537496] Checking mode 1280x720@60 clock: 74250…OK
[ 10.542723] Checking mode 1280x1024@60 clock: 108000…BAD
[ 10.548211] Checking mode 800x600@60 clock: 40000…OK
[ 10.553387] Checking mode 640x480@60 clock: 25200…BAD
[ 10.558612] Checking mode 720x400@70 clock: 28320…BAD
[ 10.563836] Checking mode 1024x768@60 clock: 65000…BAD
[ 10.569149] Checking mode 1280x720@50 clock: 74250…OK
[ 10.574394] Checking mode 720x480@60 clock: 27000…BAD
[ 10.579618] Checking mode 720x576@50 clock: 27000…BAD
[ 10.584840] Checking mode 640x480@60 clock: 25175…BAD
[ 10.590063] Checking mode 1920x1080@60 clock: 148352…BAD
[ 10.595546] Checking mode 1280x720@60 clock: 74176…BAD
[ 10.600856] Checking mode 720x480@60 clock: 27027…BAD
[ 10.614040] kirin-drm e8600000.dpe: fb0: dss frame buffer device
[ 10.633700] [drm] Initialized kirin 1.0.0 20170309 on minor 0
[ 10.639909] dwmmc_k3 ff3ff000.dwmmc2: fifo-depth property not found, using value of FIFOTH register as default
[ 10.649925] dwmmc_k3 ff3ff000.dwmmc2: supports-highspeed property is deprecated.
[ 10.658398] dwmmc_k3 ff3ff000.dwmmc2: IDMAC supports 64-bit address mode.
[ 10.665266] dwmmc_k3 ff3ff000.dwmmc2: Using internal DMA controller.
[ 10.671640] dwmmc_k3 ff3ff000.dwmmc2: Version ID is 270a
[ 10.676973] dwmmc_k3 ff3ff000.dwmmc2: DW MMC controller at irq 51,32 bit host data width,256 deep fifo
[ 10.686427] dwmmc_k3 ff3ff000.dwmmc2: No vqmmc regulator found
[ 10.782398] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 10.805498] dwmmc_k3 ff3ff000.dwmmc2: 1 slots initialized
[ 10.811221] otg_wakelock_init: No USB transceiver found
[ 10.814511] dwmmc_k3 ff3ff000.dwmmc2: card claims to support voltages below defined range
[ 10.825264] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 10.829722] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[ 10.842178] rtc-pl031 fff04000.rtc: setting system clock to 1970-01-01 00:00:18 UTC (18)
[ 10.845809] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 10.847489] mmc1: new high speed SDIO card at address 0001
[ 10.848878] wl18xx_driver wl18xx.1.auto: Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2
[ 10.848880] wl18xx_driver wl18xx.1.auto: Falling back to user helper
[ 10.885729] LDO10: disabling
[ 10.888641] LDO24: disabling
[ 10.904816] ALSA device list:
[ 10.907782] #0: hisi-hdmi
[ 10.910711] uart-pl011 fff32000.uart: no DMA platform data
[ 11.451042] (stk) :ldisc installation timeout
[ 11.455243] (stk) :ldisc_install = 0[ 11.813658] (hci_tty): called dumb_hci_callback
[ 12.459241] (stk) : timed out waiting for ldisc to be un-installed
[ 12.572320] (stk) :ldisc_install = 1(stk) :ldisc installation timeout
[ 13.578368] (stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
[ 14.588292] Bluetooth: st_register failed -22
[ 23.993793] ufshcd-hi3660 ff3b0000.ufs: ufshcd_issue_tm_cmd: task management cmd 0x80 timed-out
[ 24.002615] ufshcd-hi3660 ff3b0000.ufs: ufshcd_abort: failed with err -110
[ 24.010222] ufshcd-hi3660 ff3b0000.ufs: ufshcd_task_req_compl: failed, ocs = 0xf
[ 24.018124] ufshcd-hi3660 ff3b0000.ufs: ufshcd_eh_device_reset_handler: failed with err 15
[ 24.225051] ufs final power mode: gear = 3, lane = 2, pwr = 1, rate = 2
[ 24.231759] set TX_EQUALIZER 3.5db
[ 24.238266] check TX_EQUALIZER DB value lane0 = 0x1
[ 24.243234] check TX_EQUALIZER DB value lane1 = 0x1
[ 28.179160] random: nonblocking pool is initialized
[ 34.354466] ufshcd-hi3660 ff3b0000.ufs: ufshcd_issue_tm_cmd: task management cmd 0x80 timed-out
[ 34.363302] ufshcd-hi3660 ff3b0000.ufs: ufshcd_abort: failed with err -110
[ 34.469794] ufshcd-hi3660 ff3b0000.ufs: ufshcd_issue_tm_cmd: task management cmd 0x08 timed-out
[ 34.478628] ufshcd-hi3660 ff3b0000.ufs: ufshcd_eh_device_reset_handler: failed with err -110
[ 34.685032] ufs final power mode: gear = 3, lane = 2, pwr = 1, rate = 2

////////////////////////end of logs///////////

Btw, I saw some guys say I need to use the oasp patches like wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz ,where can I get official indications about these patches ?


#2

Stable branches are not supported. You will need to switch to master branch, and probably use a “known good” manifest: https://github.com/96boards/aosp-known-good-manifests/tree/master/latest


#3

Thanks so much, I’ll try it with:
repo init -b master -m hikey960.xml
repo sync -c --no-tags
./build_hikey960.sh

later to update result.


#4

Now I see these errors, so discouraging dev-board:worried: Do you have any idea ?

[ 45% 380/843] Dexpreopt Jar: bu (out/target/product/hikey960/obj/JAVA_LIBRARIES/bu_intermediates/oat/arm/javalib.odex)
FAILED: out/target/product/hikey960/obj/JAVA_LIBRARIES/bu_intermediates/oat/arm/javalib.odex
/bin/bash -c “(rm -f out/target/product/hikey960/obj/JAVA_LIBRARIES/bu_intermediates/oat/arm/javalib.odex ) && (mkdir -p out/target/product/hikey960/obj/JAVA_LIBRARIES/bu_intermediates/oat/arm/ ) && (stored_class_loader_context_libs= && class_loader_context_arg=–class-loader-context=\& && class_loader_context=\& && stored_class_loader_context_arg=”" && uses_library_names="" && optional_uses_library_names="" && aapt_binary=“out/host/linux-x86/bin/aapt” && ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m ${class_loader_context_arg} ${stored_class_loader_context_arg} --boot-image=out/target/product/hikey960/dex_bootjars/system/framework/boot.art --dex-file=out/target/common/obj/JAVA_LIBRARIES/bu_intermediates/javalib.jar --dex-location=/system/framework/bu.jar --oat-file=out/target/product/hikey960/obj/JAVA_LIBRARIES/bu_intermediates/oat/arm/javalib.odex --android-root=out/target/product/hikey960/system --instruction-set=arm --instruction-set-variant=cortex-a73 --instruction-set-features=default --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=quicken --generate-mini-debug-info --compilation-reason=prebuilt )"

** dex2oatd F 08-27 17:05:31 4199 4199 image_space.cc:1484] Check failed: dalvik_cache_exists == !dalvik_cache_.empty() (dalvik_cache_exists=0, !dalvik_cache_.empty()=1) **

Runtime aborting…
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (0):
“dex2oatd” prio=5 (not attached)
| sysTid=4199 nice=0 cgrp=default
| state=R schedstat=( 9837630 2514360 4 ) utm=0 stm=0 core=13 HZ=100
native: #00 pc 00000000004daa98 /home/mountain.wang/android/android-8.1.0_r43/out/host/linux-x86/lib64/libartd.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits>&, int, BacktraceMap
, char const
, art::ArtMethod*, void*, bool)+136)
native: #01 pc 00000000005ec7e7 /home/mountain.wang/android/android-8.1.0_r43/out/host/linux-x86/lib64/libartd.so (art::ThreadList::DumpUnattachedThreads(std::__1::basic_ostream<char, std::__1::char_traits>&, bool)+359)
native: #02 pc 00000000005ec5a4 /home/mountain.wang/android/android-8.1.0_r43/out/host/linux-x86/lib64/libartd.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits>&, bool)+22