Hikey970 fails to boot up!

I just got a new Hikey970 and I tried to install Android Image[1] on Hikey970. But After Flashing[2] Android Image it never boots up. So I took Debug Logs from the UART logs are :

Press ESCAPE for boot options .EFI stub: Booting Linux Kernel…
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied
EFI stub: Using DTB from configuration table
Failed to handle fs_proto
EFI stub: ERROR: Failed initrd from command line!
EFI stub: Exiting boot services and installing virtual address map…
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.59-gb963538 (phisik3@01-u10-141-107-212.huawei.com) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Apr 27 10:43:48 CST 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] earlycon: pl11 at MMIO 0x00000000fff32000 (options ‘115200’)
[ 0.000000] bootconsole [pl11] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: EFI v2.60 by EDK II
[ 0.000000] efi: MEMATTR=0xbd390018
[ 0.000000] Ion: base 0xbb500000, 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] OF: reserved mem: initialized node graphic, compatible id hisi_ion
[ 0.000000] cma: Reserved 64 MiB at 0x00000000b6400000
[ 0.000000] On node 0 totalpages: 1566519
[ 0.000000] DMA zone: 12189 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 780087 pages, LIFO batch:31
[ 0.000000] Normal zone: 12288 pages used for memmap
[ 0.000000] Normal zone: 786432 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 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 22 pages/cpu @ffff8001bfee2000 s50328 r8192 d31592 u90112
[ 0.000000] pcpu-alloc: s50328 r8192 d31592 u90112 alloc=22*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: 1542042
[ 0.000000] Kernel command line: androidboot.hardware=hikey970 firmware_class.path=/system/etc/firmware loglevel=15 buildvariant=userdebug androidboot.selinux=permissive clk_ignore_unused=true initrd=0xBE9C6800,0x1668B2 earlycon=pl011,0xfff32000,115200 console=ttyAMA6 androidboot.serialno=62E4620402504123 clk_ignore_unused=true
[ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[ 0.000000] log_buf_len total cpu_extra contributions: 28672 bytes
[ 0.000000] log_buf_len min size: 16384 bytes
[ 0.000000] log_buf_len: 65536 bytes
[ 0.000000] early log buf free: 13968(85%)
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] software IO TLB [mem 0xb2400000-0xb6400000] (64MB) mapped at [ffff8000b2400000-ffff8000b63fffff]
[ 0.000000] Memory: 5964256K/6266076K available (12284K kernel code, 1104K rwdata, 5124K rodata, 4096K init, 544K bss, 236284K reserved, 65536K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffff000000000000 - 0xffff000008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000 (129022 GB)
[ 0.000000] .text : 0xffff000008080000 - 0xffff000008c80000 ( 12288 KB)
[ 0.000000] .rodata : 0xffff000008c80000 - 0xffff000009190000 ( 5184 KB)
[ 0.000000] .init : 0xffff000009190000 - 0xffff000009590000 ( 4096 KB)
[ 0.000000] .data : 0xffff000009590000 - 0xffff0000096a4200 ( 1105 KB)
[ 0.000000] .bss : 0xffff0000096a4200 - 0xffff00000972c43c ( 545 KB)
[ 0.000000] fixed : 0xffff7dfffe7fd000 - 0xffff7dfffec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffff7e0000000000 - 0xffff800000000000 ( 2048 GB maximum)
[ 0.000000] 0xffff7e0000000000 - 0xffff7e0007000000 ( 112 MB actual)
[ 0.000000] memory : 0xffff800000000000 - 0xffff8001c0000000 ( 7168 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=8
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 1.92MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1c570327e, max_idle_ns: 1763180809505 ns
[ 0.000003] sched_clock: 56 bits at 1920kHz, resolution 520ns, wraps every 4398046510977ns
[ 0.008565] Calibrating delay loop (skipped), value calculated using timer frequency… 3.84 BogoMIPS (lpj=7680)
[ 0.018763] pid_max: default: 32768 minimum: 301
[ 0.023460] Security Framework initialized
[ 0.027598] SELinux: Initializing.
[ 0.031143] SELinux: Starting in permissive mode
[ 0.035909] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.042857] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.051480] sched-energy: Sched-energy-costs installed from DT
[ 0.057381] CPU0: update cpu_capacity 360
[ 0.061434] ASID allocator initialised with 65536 entries
[ 0.098967] /soc/interrupt-controller@0xf4000000: Unable to locate ITS domain
[ 0.106257] /soc/interrupt-controller@0xf4000000: unable to locate ITS domain
[ 0.114086] Remapping and enabling EFI services.
[ 0.118770] EFI remap 0x00000000ba400000 => 0000000020000000
[ 0.124666] EFI remap 0x00000000ba450000 => 0000000020030000
[ 0.130573] EFI remap 0x00000000ba4a0000 => 0000000020080000
[ 0.136469] EFI remap 0x00000000ba5f0000 => 00000000201d0000
[ 0.142364] EFI remap 0x00000000ba640000 => 0000000020220000
[ 0.148259] EFI remap 0x00000000bf660000 => 0000000020270000
[ 0.154154] EFI remap 0x00000000bf6b0000 => 00000000202b0000
[ 0.160046] EFI remap 0x00000000fff05000 => 0000000020305000

[1] Android Open Source Project (AOSP) Downloads for HiKey970 - 96Boards
[2] Linux Host Installation for HiKey970 - 96Boards

I want to know,
What am I doing wrong ?
Is some thing wrong with the kernel ?
Is some thing wrong with the board ?

Sorry not adding any help, but could you tell me how to get the uart log when booting the hikey970 board? I connected the board with PC by a USB TYPE-C cable, then open a sscom window on my PC, but no logs appeared.

You can connect a serial port from the PC to pin 11 and 13 on low-speed connector for console access before android is loaded

Very important to know is that those pins are 1.8 Volt signals. Please be sure to use a 1.8 Volt serial to USB adapter. Other adapters can seriously damage your board.

1 Like