Debian fails to boot


#1

I cannot get Debian to boot.

Here is what I did to install it.

For board recovery :

Downloaded binaries from https://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/76/hikey960/debug/
Set switches to 1-2-3 ON-ON-OFF
sudo ./hikey_idt -c config

Then in fastboot mode :
fastboot flash ptable prm_ptable.img
fastboot flash xloader hisi-sec_xloader.img
fastboot flash fastboot l-loader.bin
fastboot flash fip fip.bin

Then I changed switch configuration to fastboot mode 1-2-3 On-OFF-ON

fastboot reboot-bootloader

After reboot to fastboot mode :

fastboot flash boot boot-linaro-stretch-developer-hikey-20180828-19.img
fastboot flash system rootfs-linaro-stretch-developer-hikey-20180828-19.img

Then I changed switch configuration to Normal mode 1-2-3 ON-OFF-OFF and reconnected power supply.
I got a boot menu with Debian option at top which I selected. Then I got the log below :

Loading Linux 4.15-hikey ...
Loading initial ramdisk ...
Loading driver at 0x000B7264000 EntryPoint=0x000B818875C
Loading driver at 0x000B7264000 EntryPoint=0x000B818875C 
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...
I/TC:  Dynamic shared memory is enabled
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.15-hikey (abuild@r2-a19) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 SMP PREEMPT Sun Jul 15 12:43:38 UTC 2018
[    0.000000] Machine model: HiKey960
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: EFI v2.60 by EDK II
[    0.000000] efi:  MEMATTR=0xbde6c018 
[    0.000000] cma: Reserved 16 MiB at 0x00000000df000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000021fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x21ffbf100-0x21ffc0bff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000021fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001abfffff]
[    0.000000]   node   0: [mem 0x000000001ad88000-0x0000000031ffffff]
[    0.000000]   node   0: [mem 0x0000000032101000-0x000000003dffffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000089b7ffff]
[    0.000000]   node   0: [mem 0x0000000089cc0000-0x00000000b9baffff]
[    0.000000]   node   0: [mem 0x00000000b9bb0000-0x00000000b9c4ffff]
[    0.000000]   node   0: [mem 0x00000000b9c50000-0x00000000b9d4ffff]
[    0.000000]   node   0: [mem 0x00000000b9d50000-0x00000000ba113fff]
[    0.000000]   node   0: [mem 0x00000000ba114000-0x00000000bf12ffff]
[    0.000000]   node   0: [mem 0x00000000bf130000-0x00000000bf17ffff]
[    0.000000]   node   0: [mem 0x00000000bf180000-0x00000000dfffffff]
[    0.000000]   node   0: [mem 0x0000000200000000-0x000000021fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000021fffffff]
[    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: Trusted OS migration not required
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 23 pages/cpu @        (ptrval) s55320 r8192 d30696 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1023174
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15-hikey root=UUID=4be2a8aa-b08f-4446-a223-f77e31460c8e ro
[    0.000000] software IO TLB [mem 0xdafff000-0xdefff000] (64MB) mapped at [        (ptrval)-        (ptrval)]
[    0.000000] Memory: 3962924K/4157660K available (10428K kernel code, 1560K rwdata, 4984K rodata, 1152K init, 424K bss, 178352K reserved, 16384K 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 : 0x        (ptrval) - 0x        (ptrval)   ( 10432 KB)
[    0.000000]     .rodata : 0x        (ptrval) - 0x        (ptrval)   (  5056 KB)
[    0.000000]       .init : 0x        (ptrval) - 0x        (ptrval)   (  1152 KB)
[    0.000000]       .data : 0x        (ptrval) - 0x        (ptrval)   (  1561 KB)
[    0.000000]        .bss : 0x        (ptrval) - 0x        (ptrval)   (   425 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fb000 - 0xffff7dfffec00000   (  4116 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0008800000   (   136 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff800220000000   (  8704 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: 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.000005] sched_clock: 56 bits at 1920kHz, resolution 520ns, wraps every 4398046510977ns
[    0.000090] clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58334160866034 ns
[    0.000442] Console: colour dummy device 80x25
[    0.000818] console [tty0] enabled
[    0.000889] Calibrating delay loop (skipped), value calculated using timer frequency.. 3.84 BogoMIPS (lpj=7680)
[    0.000906] pid_max: default: 32768 minimum: 301
[    0.000969] Security Framework initialized
[    0.002121] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.002704] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.002745] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.002771] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.020064] ASID allocator initialised with 65536 entries
[    0.028043] Hierarchical SRCU implementation.
[    0.039251] Remapping and enabling EFI services.
[    0.039341]   EFI remap 0x00000000b9bb0000 =>         (ptrval)
[    0.039356]   EFI remap 0x00000000b9c00000 =>         (ptrval)
[    0.039371]   EFI remap 0x00000000b9d50000 =>         (ptrval)
[    0.039385]   EFI remap 0x00000000b9da0000 =>         (ptrval)
[    0.039399]   EFI remap 0x00000000b9df0000 =>         (ptrval)
[    0.039414]   EFI remap 0x00000000b9e40000 =>         (ptrval)
[    0.039430]   EFI remap 0x00000000b9e90000 =>         (ptrval)
[    0.039445]   EFI remap 0x00000000b9ee0000 =>         (ptrval)
[    0.039459]   EFI remap 0x00000000b9f30000 =>         (ptrval)
[    0.039472]   EFI remap 0x00000000b9f80000 =>         (ptrval)
[    0.039487]   EFI remap 0x00000000b9fd0000 =>         (ptrval)
[    0.039502]   EFI remap 0x00000000ba020000 =>         (ptrval)
[    0.039528]   EFI remap 0x00000000ba070000 =>         (ptrval)
[    0.039543]   EFI remap 0x00000000ba0c0000 =>         (ptrval)
[    0.039559]   EFI remap 0x00000000bf130000 =>         (ptrval)
[    0.039568]   EFI remap 0x00000000fff05000 =>         (ptrval)
[    0.048130] smp: Bringing up secondary CPUs ...
[    0.076520] Detected VIPT I-cache on CPU1
[    0.076607] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.104474] Detected VIPT I-cache on CPU2
[    0.104501] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.132492] Detected VIPT I-cache on CPU3
[    0.132510] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.162066] CPU features: enabling workaround for ARM erratum 858921
[    0.162072] Detected VIPT I-cache on CPU4
[    0.162079] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU4: 0x00000000101122
[    0.162085] CPU features: Unsupported CPU feature variation detected.
[    0.162180] arch_timer: Enabling local workaround for ARM erratum 858921
[    0.162188] arch_timer: CPU4: Trapping CNTVCT access
[    0.162193] CPU4: Booted secondary processor 0x0000000100 [0x410fd091]
[    0.188503] Detected VIPT I-cache on CPU5
[    0.188508] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU5: 0x00000000101122
[    0.188517] arch_timer: Enabling local workaround for ARM erratum 858921
[    0.188521] arch_timer: CPU5: Trapping CNTVCT access
[    0.188525] CPU5: Booted secondary processor 0x0000000101 [0x410fd091]
[    0.216527] Detected VIPT I-cache on CPU6
[    0.216532] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU6: 0x00000000101122
[    0.216541] arch_timer: Enabling local workaround for ARM erratum 858921
[    0.216546] arch_timer: CPU6: Trapping CNTVCT access
[    0.216549] CPU6: Booted secondary processor 0x0000000102 [0x410fd091]
[    0.244554] Detected VIPT I-cache on CPU7
[    0.244559] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU7: 0x00000000101122
[    0.244568] arch_timer: Enabling local workaround for ARM erratum 858921
[    0.244573] arch_timer: CPU7: Trapping CNTVCT access
[    0.244576] CPU7: Booted secondary processor 0x0000000103 [0x410fd091]
[    0.244629] smp: Brought up 1 node, 8 CPUs
[    0.244808] SMP: Total of 8 processors activated.
[    0.244817] CPU features: detected feature: 32-bit EL0 Support
[    0.245125] CPU: All CPU(s) started at EL2
[    0.245158] alternatives: patching kernel code
[    0.246069] devtmpfs: initialized
[    0.249614] Registered cp15_barrier emulation handler
[    0.249640] Registered setend emulation handler
[    0.249848] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.249909] futex hash table entries: 2048 (order: 6, 262144 bytes)
[    0.250432] pinctrl core: initialized pinctrl subsystem
[    0.251436] DMI not present or invalid.
[    0.251716] NET: Registered protocol family 16
[    0.252022] audit: initializing netlink subsys (disabled)
[    0.252131] audit: type=2000 audit(0.248:1): state=initialized audit_enabled=0 res=1
[    0.252968] cpuidle: using governor menu
[    0.253465] vdso: 2 pages (1 code @ 0000000068f6f5b9, 1 data @ 00000000e0af86a7)
[    0.253484] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.254188] DMA: preallocated 256 KiB pool for atomic allocations
[    0.254836] Serial: AMBA PL011 UART driver
[    0.276719] uart-pl011 ffd74000.serial: could not find pctldev for node /soc/pinmux@e896c000/uart3_pmx_func, deferring probe
[    0.276871] uart-pl011 fdf01000.serial: could not find pctldev for node /soc/pinmux@e896c000/uart4_pmx_func, deferring probe
[    0.276986] uart-pl011 fff32000.serial: could not find pctldev for node /soc/pinmux@e896c000/uart6_pmx_func, deferring probe
[    0.288042] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.288819] ACPI: Interpreter disabled.
[    0.289578] vgaarb: loaded
[    0.289790] SCSI subsystem initialized
[    0.290006] ssp-pl022 ffd68000.spi: could not find pctldev for node /soc/pinmux@fff11000/spi2_pmx_func, deferring probe
[    0.290039] ssp-pl022 ff3b3000.spi: could not find pctldev for node /soc/pinmux@ff3b6000/spi3_pmx_func, deferring probe
[    0.290214] usbcore: registered new interface driver usbfs
[    0.290245] usbcore: registered new interface driver hub
[    0.290300] usbcore: registered new device driver usb
[    0.290486] i2c_designware ffd71000.i2c: could not find pctldev for node /soc/pinmux@fff11000/i2c0_pmx_func, deferring probe
[    0.290514] i2c_designware ffd72000.i2c: could not find pctldev for node /soc/pinmux@fff11000/i2c1_pmx_func, deferring probe
[    0.290539] i2c_designware fdf0b000.i2c: could not find pctldev for node /soc/pinmux@fff11000/i2c7_pmx_func, deferring probe
[    0.290847] pps_core: LinuxPPS API ver. 1 registered
[    0.290855] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.290875] PTP clock support registered
[    0.290958] EDAC MC: Ver: 3.0.0
[    0.291138] dmi: Firmware registration failed.
[    0.291213] Registered efivars operations
[    0.291986] Advanced Linux Sound Architecture Driver Initialized.
[    0.292649] clocksource: Switched to clocksource arch_sys_counter
[    0.292790] VFS: Disk quotas dquot_6.6.0
[    0.292839] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.292960] pnp: PnP ACPI: disabled
[    0.296530] NET: Registered protocol family 2
[    0.296986] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[    0.297186] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    0.297583] TCP: Hash tables configured (established 32768 bind 32768)
[    0.297703] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    0.297768] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    0.297967] NET: Registered protocol family 1
[    0.298220] RPC: Registered named UNIX socket transport module.
[    0.298230] RPC: Registered udp transport module.
[    0.298237] RPC: Registered tcp transport module.
[    0.298243] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.298381] Unpacking initramfs...
[    0.402679] Freeing initrd memory: 3936K
[    0.403447] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.403696] hw perfevents: enabled with armv8_cortex_a73 PMU driver, 7 counters available
[    0.403895] kvm [1]: 8-bit VMID
[    0.403902] kvm [1]: IDMAP page: a9b000
[    0.403908] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.404830] kvm [1]: vgic-v2@e82b4000
[    0.404924] kvm [1]: vgic interrupt IRQ1
[    0.404941] kvm [1]: virtual timer IRQ4
[    0.405043] kvm [1]: Hyp mode initialized successfully
[    0.407189] Initialise system trusted keyrings
[    0.407267] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.411009] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.411385] NFS: Registering the id_resolver key type
[    0.411414] Key type id_resolver registered
[    0.411420] Key type id_legacy registered
[    0.411432] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.411563] 9p: Installing v9fs 9p2000 file system support
[    0.413109] Key type asymmetric registered
[    0.413119] Asymmetric key parser 'x509' registered
[    0.413222] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.413318] io scheduler noop registered
[    0.413445] io scheduler cfq registered (default)
[    0.413454] io scheduler mq-deadline registered
[    0.413461] io scheduler kyber registered
[    0.415456] pinctrl-single e896c000.pinmux: 124 pins at pa 00000000b74d98ac size 496
[    0.415652] pinctrl-single ff37e000.pinmux: 6 pins at pa 00000000d4ea9257 size 24
[    0.415751] pinctrl-single ff3b6000.pinmux: 12 pins at pa 00000000f7ec39af size 48
[    0.415836] pinctrl-single ff3fd000.pinmux: 6 pins at pa 0000000071709959 size 24
[    0.415953] pinctrl-single fff11000.pinmux: 42 pins at pa 000000003f97a628 size 168
[    0.416153] pinctrl-single e896c800.pinmux: 128 pins at pa 00000000e0bdbf4e size 512
[    0.416238] pinctrl-single ff3b6800.pinmux: 6 pins at pa 00000000d9f0f572 size 24
[    0.416327] pinctrl-single ff3fd800.pinmux: 6 pins at pa 00000000e44575aa size 24
[    0.416424] pinctrl-single ff37e800.pinmux: 6 pins at pa 00000000fa670d65 size 24
[    0.416547] pinctrl-single fff11800.pinmux: 47 pins at pa 00000000fa0520f8 size 188
[    0.417780] pl061_gpio e8a0b000.gpio: PL061 GPIO chip @0x00000000e8a0b000 registered
[    0.417957] pl061_gpio e8a0c000.gpio: PL061 GPIO chip @0x00000000e8a0c000 registered
[    0.418104] pl061_gpio e8a0d000.gpio: PL061 GPIO chip @0x00000000e8a0d000 registered
[    0.418255] pl061_gpio e8a0e000.gpio: PL061 GPIO chip @0x00000000e8a0e000 registered
[    0.418404] pl061_gpio e8a0f000.gpio: PL061 GPIO chip @0x00000000e8a0f000 registered
[    0.418551] pl061_gpio e8a10000.gpio: PL061 GPIO chip @0x00000000e8a10000 registered
[    0.418703] pl061_gpio e8a11000.gpio: PL061 GPIO chip @0x00000000e8a11000 registered
[    0.418852] pl061_gpio e8a12000.gpio: PL061 GPIO chip @0x00000000e8a12000 registered
[    0.419000] pl061_gpio e8a13000.gpio: PL061 GPIO chip @0x00000000e8a13000 registered
[    0.419152] pl061_gpio e8a14000.gpio: PL061 GPIO chip @0x00000000e8a14000 registered
[    0.419295] pl061_gpio e8a15000.gpio: PL061 GPIO chip @0x00000000e8a15000 registered
[    0.419446] pl061_gpio e8a16000.gpio: PL061 GPIO chip @0x00000000e8a16000 registered
[    0.419601] pl061_gpio e8a17000.gpio: PL061 GPIO chip @0x00000000e8a17000 registered
[    0.419753] pl061_gpio e8a18000.gpio: PL061 GPIO chip @0x00000000e8a18000 registered
[    0.419903] pl061_gpio e8a19000.gpio: PL061 GPIO chip @0x00000000e8a19000 registered
[    0.420046] pl061_gpio e8a1a000.gpio: PL061 GPIO chip @0x00000000e8a1a000 registered
[    0.420195] pl061_gpio e8a1b000.gpio: PL061 GPIO chip @0x00000000e8a1b000 registered
[    0.420342] pl061_gpio e8a1c000.gpio: PL061 GPIO chip @0x00000000e8a1c000 registered
[    0.420515] pl061_gpio ff3b4000.gpio: PL061 GPIO chip @0x00000000ff3b4000 registered
[    0.420703] pl061_gpio ff3b5000.gpio: PL061 GPIO chip @0x00000000ff3b5000 registered
[    0.420888] pl061_gpio e8a1f000.gpio: PL061 GPIO chip @0x00000000e8a1f000 registered
[    0.421059] pl061_gpio e8a20000.gpio: PL061 GPIO chip @0x00000000e8a20000 registered
[    0.421220] pl061_gpio fff0b000.gpio: PL061 GPIO chip @0x00000000fff0b000 registered
[    0.421406] pl061_gpio fff0c000.gpio: PL061 GPIO chip @0x00000000fff0c000 registered
[    0.421578] pl061_gpio fff0d000.gpio: PL061 GPIO chip @0x00000000fff0d000 registered
[    0.421761] pl061_gpio fff0e000.gpio: PL061 GPIO chip @0x00000000fff0e000 registered
[    0.421927] pl061_gpio fff0f000.gpio: PL061 GPIO chip @0x00000000fff0f000 registered
[    0.422099] pl061_gpio fff10000.gpio: PL061 GPIO chip @0x00000000fff10000 registered
[    0.422274] pl061_gpio fff1d000.gpio: PL061 GPIO chip @0x00000000fff1d000 registered
[    0.426373] k3-dma fdf30000.dma: initialized
[    0.429707] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.431001] SuperH (H)SCI(F) driver initialized
[    0.431220] msm_serial: driver initialized
[    0.436703] loop: module loaded
[    0.438816] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vdd-hba-supply regulator, assuming enabled
[    0.438848] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vcc-supply regulator, assuming enabled
[    0.438860] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vccq-supply regulator, assuming enabled
[    0.438872] ufshcd-hisi ff3b0000.ufs: ufshcd_populate_vreg: Unable to find vccq2-supply regulator, assuming enabled
[    0.465099] scsi host0: ufshcd
[    0.478678] libphy: Fixed MDIO Bus: probed
[    0.478922] tun: Universal TUN/TAP device driver, 1.6
[    0.479488] thunder-xcv, ver 1.0
[    0.479524] thunder-BGX, ver 1.0
[    0.479556] thunder-nic, ver 1.0
[    0.479738] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.479748] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.479784] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.479792] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.479819] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.479829] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.480019] sky2: driver version 1.30
[    0.480227] usbcore: registered new interface driver asix
[    0.480281] usbcore: registered new interface driver ax88179_178a
[    0.480435] VFIO - User Level meta-driver version: 0.3
[    0.481187] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.481219] ehci-pci: EHCI PCI platform driver
[    0.481246] ehci-platform: EHCI generic platform driver
[    0.481316] ehci-orion: EHCI orion driver
[    0.481368] ehci-exynos: EHCI EXYNOS driver
[    0.481421] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.481434] ohci-pci: OHCI PCI platform driver
[    0.481465] ohci-platform: OHCI generic platform driver
[    0.481523] ohci-exynos: OHCI EXYNOS driver
[    0.481777] usbcore: registered new interface driver usb-storage
[    0.481842] usbcore: registered new interface driver usbserial_generic
[    0.481867] usbserial: USB Serial support registered for generic
[    0.483400] rtc-efi rtc-efi: rtc core: registered rtc-efi as rtc0
[    0.483746] rtc-pl031 fff04000.rtc: rtc core: registered pl031 as rtc1
[    0.484114] i2c /dev entries driver
[    0.487344] sdhci: Secure Digital Host Controller Interface driver
[    0.487368] sdhci: Copyright(c) Pierre Ossman
[    0.487477] Synopsys Designware Multimedia Card Interface Driver
[    0.487929] dwmmc_k3 ff37f000.dwmmc1: fifo-depth property not found, using value of FIFOTH register as default
[    0.490182] dwmmc_k3 ff37f000.dwmmc1: IDMAC supports 64-bit address mode.
[    0.490324] dwmmc_k3 ff37f000.dwmmc1: Using internal DMA controller.
[    0.490337] dwmmc_k3 ff37f000.dwmmc1: Version ID is 270a
[    0.490384] dwmmc_k3 ff37f000.dwmmc1: DW MMC controller at irq 59,32 bit host data width,256 deep fifo
[    0.490590] dwmmc_k3 ff37f000.dwmmc1: Got CD GPIO
[    0.510694] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.531038] dwmmc_k3 ff3ff000.dwmmc2: fifo-depth property not found, using value of FIFOTH register as default
[    0.533177] dwmmc_k3 ff3ff000.dwmmc2: IDMAC supports 64-bit address mode.
[    0.533285] dwmmc_k3 ff3ff000.dwmmc2: Using internal DMA controller.
[    0.533299] dwmmc_k3 ff3ff000.dwmmc2: Version ID is 270a
[    0.533329] dwmmc_k3 ff3ff000.dwmmc2: DW MMC controller at irq 60,32 bit host data width,256 deep fifo
[    0.533942] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.536200] ledtrig-cpu: registered to indicate activity on CPUs
[    0.537163] usbcore: registered new interface driver usbhid
[    0.537182] usbhid: USB HID core driver
[    0.537912] optee: probing for conduit method from DT.
[    0.541871] optee: initialized driver
[    0.542273] usbcore: registered new interface driver snd-usb-audio
[    0.543448] NET: Registered protocol family 10
[    0.543956] Segment Routing with IPv6
[    0.543995] NET: Registered protocol family 17
[    0.544052] 9pnet: Installing 9P2000 support
[    0.544106] Key type dns_resolver registered
[    0.545203] registered taskstats version 1
[    0.545219] Loading compiled-in X.509 certificates
[    0.550083] ffd74000.serial: ttyAMA3 at MMIO 0xffd74000 (irq = 21, base_baud = 0) is a PL011 rev2
[    0.550649] fdf01000.serial: ttyAMA4 at MMIO 0xfdf01000 (irq = 22, base_baud = 0) is a PL011 rev2
[    0.550758] serial serial0: tty port ttyAMA4 registered
[    0.550975] fff32000.serial: ttyAMA6 at MMIO 0xfff32000 (irq = 23, base_baud = 0) is a PL011 rev2
[    0.592263] ufshcd-hisi ff3b0000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
[    0.748938] ufs final power mode: gear = 3, lane = 2, pwr = 1, rate = 2
[    0.751379] ufshcd-hisi ff3b0000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
[    2.269977] ufshcd-hisi ff3b0000.ufs: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11
[    2.556968] console [ttyAMA6] enabled
[    2.561893] ssp-pl022 ffd68000.spi: ARM PL022 driver, device ID: 0x00041022
[    2.569005] ssp-pl022 ffd68000.spi: mapped registers from 0x00000000ffd68000 to 00000000830da268
[    2.577868] ssp-pl022 ffd68000.spi: setup for DMA on RX dma0chan0, TX dma0chan1
[    2.586247] ssp-pl022 ff3b3000.spi: ARM PL022 driver, device ID: 0x00041022
[    2.593385] ssp-pl022 ff3b3000.spi: mapped registers from 0x00000000ff3b3000 to 00000000e424cc94
[    2.602235] ssp-pl022 ff3b3000.spi: setup for DMA on RX dma0chan2, TX dma0chan3
[    2.616523] dwmmc_k3 ff3ff000.dwmmc2: fifo-depth property not found, using value of FIFOTH register as default
[    2.628710] dwmmc_k3 ff3ff000.dwmmc2: IDMAC supports 64-bit address mode.
[    2.635622] dwmmc_k3 ff3ff000.dwmmc2: Using internal DMA controller.
[    2.641989] dwmmc_k3 ff3ff000.dwmmc2: Version ID is 270a
[    2.647329] dwmmc_k3 ff3ff000.dwmmc2: DW MMC controller at irq 60,32 bit host data width,128 deep fifo
[    2.656784] mmc_host mmc1: card is non-removable.
[    2.762926] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    2.790239] input: keys as /devices/platform/keys/input/input0
[    2.797269] dwmmc_k3 ff3ff000.dwmmc2: card claims to support voltages below defined range
[    2.797428] rtc-efi rtc-efi: setting system clock to 1970-01-01 00:00:13 UTC (13)
[    2.800896] ALSA device list:
[    2.800898]   No soundcards found.
[    2.819806] uart-pl011 fff32000.serial: no DMA platform data
[    2.831861] mmc_host mmc1: Bus speed (slot 0) = 25000000Hz (slot req 25000000Hz, actual 25000000HZ div = 0)
[    2.843018] mmc1: new SDIO card at address 0001
[    3.773991] ufshcd-hisi ff3b0000.ufs: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11
[    5.310016] ufshcd-hisi ff3b0000.ufs: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11
[    5.319449] ufshcd-hisi ff3b0000.ufs: ufshcd_query_flag_retry: query attribute, opcode 5, idn 3, failed with error -11 after 3 retires
[    6.846036] ufshcd-hisi ff3b0000.ufs: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11
[    8.382027] ufshcd-hisi ff3b0000.ufs: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11
[    9.918041] ufshcd-hisi ff3b0000.ufs: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11
[    9.928343] ufshcd-hisi ff3b0000.ufs: ufshcd_read_desc_param: Failed reading descriptor. desc_id 8, desc_index 0, param_offset 0, ret -11
[    9.940700] ufshcd-hisi ff3b0000.ufs: ufshcd_init_icc_levels: Failed reading power descriptor.len = 98 ret = -11
[   31.005620] ufshcd-hisi ff3b0000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
[   31.018771] ufshcd-hisi ff3b0000.ufs: UPIU[0] - issue time 9950516 us
[   31.025210] ufshcd-hisi ff3b0000.ufs: UPIU[0] - complete time 0 us
[   31.031389] ufshcd-hisi ff3b0000.ufs: UPIU[0] - Transfer Request Descriptor phys@0xdf058000
[   31.039747] UPIU TRD: 00000000: 15000000 00000000 0000000f 00000000
[   31.046014] UPIU TRD: 00000010: df040000 00000000 00800080 01000001
[   31.052278] ufshcd-hisi ff3b0000.ufs: UPIU[0] - Request UPIU phys@0xdf040000
[   31.059326] UPIU REQ: 00000000: 00d04001 00000000 00000000 24000000
[   31.065591] UPIU REQ: 00000010: 00000012 00000024 00000000 00000000
[   31.071856] ufshcd-hisi ff3b0000.ufs: UPIU[0] - Response UPIU phys@0xdf040200
[   31.078990] UPIU RSP: 00000000: 00000000 00000000 00000000 00000000
[   31.085256] UPIU RSP: 00000010: 00000000 00000000 00000000 00000000
[   31.091521] UPIU RSP: 00000020: 00000000 00000000 00000000 00000000
[   31.097785] UPIU RSP: 00000030: 00000000
[   31.101705] ufshcd-hisi ff3b0000.ufs: UPIU[0] - PRDT - 1 entries  phys@0xdf040400
[   31.109188] UPIU PRDT: 00000000: 1876c000 00000002 00000000 00000023
[   31.278268] ufs final power mode: gear = 3, lane = 2, pwr = 1, rate = 2
[   31.287184] ufshcd-hisi ff3b0000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
[   31.299814] Freeing unused kernel memory: 1152K
Loading, please wait...
starting version 232
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  UUID=4be2a8aa-b08f-4446-a223-f77e31460c8e does not exist.  Dropping to a shell!
(initramfs) [   68.092916] random: crng init done

#2

I have never tried using Linaro-stretch-developer image on Hikey 960. But the Debian image on Lemaker’s website works fine for me.
Here is the link : http://www.lemaker.org/product-hikeysecond-download-64.html


#3

That command is missing the partition you want to write the root partition into… Did it give you an error message?


#4

That is a typo in my original post. I will edit it. I had run the correct command without any errors :
fastboot flash system rootfs-linaro-stretch-developer-hikey-20180828-19.img


#5

Hey @rounaka
I have the tried the link given by @yog and it works really well.


#6

Hi @rounaka,

Debian images [1] worked fine on my hikey960.

Above failure from your logs show some issue related to UFS flash. Can you please provide some info regarding UFS flash on your hikey960?

@guodong @hzhuang1 any idea regarding above failure?

[1] https://www.96boards.org/documentation/consumer/hikey/hikey960/downloads/Debian.md.html


#7

It says SKHynix on the chip. If there is something else you need to know, please tell me how to find it.


#8

I had this problem, it is due to the Hynix UFS flash not being recognised by the kernel.

I’m using a custom built kernel from github.com/TallGuy74/linux.git branch daedalean 4.14.0-rc7-linaro-hikey960+.

Diff’ing against the Android kernel android.googlesource.com/kernel/hikey-linaro branch android-hikey-linaro-4.9 which boots up fine I found small changes relating to Hynix UFS quirks that were not present in the Linux kernel.

Applying the patch below produced a kernel that booted and correctly mounted the rootfs partition.

diff --git a/drivers/scsi/ufs/ufs-hi3660.c b/drivers/scsi/ufs/ufs-hi3660.c
index 9356e828e107..ba32b1ed7848 100644
--- a/drivers/scsi/ufs/ufs-hi3660.c
+++ b/drivers/scsi/ufs/ufs-hi3660.c
@@ -25,6 +25,7 @@
 #include "unipro.h"
 #include "ufs-hi3660.h"
 #include "ufshci.h"
+#include "ufs_quirks.h"
 
 static int ufs_hi3660_check_hibern8(struct ufs_hba *hba)
 {
@@ -409,6 +410,14 @@ static int ufs_hi3660_get_pwr_dev_param(
 
 static void ufs_hi3660_pwr_change_pre_change(struct ufs_hba *hba)
 {
+	if (hba->dev_quirks & UFS_DEVICE_QUIRK_HOST_VS_DEBUGSAVECONFIGTIME) {
+		pr_info("ufs flash device must set VS_DebugSaveConfigTime 0x10\n");
+		/* VS_DebugSaveConfigTime */
+		ufshcd_dme_set(hba, UIC_ARG_MIB(0xD0A0), 0x10);
+		/* sync length */
+		ufshcd_dme_set(hba, UIC_ARG_MIB(0x1556), 0x48);
+	}
+
 	/* update */
 	ufshcd_dme_set(hba, UIC_ARG_MIB(0x15A8), 0x1);
 	/* PA_TxSkip */
diff --git a/drivers/scsi/ufs/ufs_quirks.h b/drivers/scsi/ufs/ufs_quirks.h
index 71f73d1d1ad1..5d2dfdb41a6f 100644
--- a/drivers/scsi/ufs/ufs_quirks.h
+++ b/drivers/scsi/ufs/ufs_quirks.h
@@ -131,4 +131,10 @@ struct ufs_dev_fix {
  */
 #define UFS_DEVICE_QUIRK_HOST_PA_SAVECONFIGTIME	(1 << 8)
 
+/*
+ * Some UFS devices require VS_DebugSaveConfigTime is 0x10,
+ * enabling this quirk ensure this.
+ */
+#define UFS_DEVICE_QUIRK_HOST_VS_DEBUGSAVECONFIGTIME	(1 << 9)
+
 #endif /* UFS_QUIRKS_H_ */
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 794a4600e952..3eadd5fea850 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -207,6 +207,8 @@ static struct ufs_dev_fix ufs_fixups[] = {
 	UFS_FIX(UFS_VENDOR_SKHYNIX, UFS_ANY_MODEL, UFS_DEVICE_NO_VCCQ),
 	UFS_FIX(UFS_VENDOR_SKHYNIX, UFS_ANY_MODEL,
 		UFS_DEVICE_QUIRK_HOST_PA_SAVECONFIGTIME),
+	UFS_FIX(UFS_VENDOR_SKHYNIX, UFS_ANY_MODEL,
+		UFS_DEVICE_QUIRK_HOST_VS_DEBUGSAVECONFIGTIME),
 
 	END_FIX
 };

Hynix UFS does not work with Debian kernel
#9

Something weird is happening. I tried to recover my board again and repeat the steps I have listed in the first post. Everything works up until I try to flash boot partition. The command is stuck. It is not showing an error but also not moving forward. The console is not showing any error either. I did run “fastboot devices” to verify whether fastboot mode is active. I don’t know what happened. I have repeated the same steps in the same order.
Any idea what might be wrong ?
@siteks I will try the patch. But I need to be able to repeat the flashing steps first.
@yog & @sejalgupta thanks. I will try that image once I figure out why I can’t flash boot partition any more.

@danielt Is there any difference between a) using the fastboot environment right after recovering using hikey_idt and b) flashing ptable,xloader, l-loader and then flashing everything else after rebooting into fastboot mode ?


#10

It’s suggested to use hikey_idt mode to recovery boards and use it to flash other sequential images; from my understanding, with this method you could get highest security permission so it can avoid flash failure issue.

After you recovery back the board, you could simply use “fastboot mode”,to update Android and kernel/dts images.