Linux kernel 5.x at HiKey970

I setup Ubuntu 18.04.3 LTS at HiKey970. All work fine but it run with 4.9.78 kernel.
I need to upgrade kernel to 5.x version. Currently I try to start 5.3.13 kernel version.

I get new kernel from Ubuntu kernel archive (https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.3.13/) and setup it at HiKey970.
Also I make new device tree for HiKey970 from github/torvalds/linux.

I add new entry to grub boot menu for 5.3.13 kernel with this command line:
menuentry 'Lebuntu 18.04 (5.3.13 kernel)' { linux (hd3,gpt12)/boot/Image5 earlycon=pl011,0xfff32000,115200 clk_ignore_unused=true console=tty0 console=ttyAMA6,115200n8 root=/dev/sdd12 rootwait rw quiet efi=noruntime devicetree (hd3,gpt12)/boot/dtb5 initrd (hd3,gpt12)/boot/initrd5 }

5.3.13 kernel start, successful detect device (HiKey970) but quickly fail with message:
`[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.3.13-050313-generic (kernel@kathleen) (gcc version 9.2.1 20191109 (Ubuntu 9.2.1-19ubuntu1)) #201911240840 SMP Sun Nov 24 08:56:36 UTC 2019
[ 0.000000] Machine model: HiKey970
[ 0.000000] earlycon: pl11 at MMIO 0x00000000fff32000 (options ‘115200’)
[ 0.000000] printk: bootconsole [pl11] enabled
[ 1.497432] ufshcd-hisi ff3c0000.ufs: invalid ref_clk setting = 3200000
[ 1.504077] ufshcd-hisi ff3c0000.ufs: ufs_hisi_init_common: failed
to get reset control
[ 1.512118] ufshcd-hisi ff3c0000.ufs: ufs_hi3670_init: ufs common init fail
[ 1.519081] ufshcd-hisi ff3c0000.ufs: ufshcd_variant_hba_init:
variant hi3670 init failed err -517
[ 1.528043] ufshcd-hisi ff3c0000.ufs: Initialization failed
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! /dev/sdd12 does not exist. Dropping to a shell!

BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu3.2) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
(initramfs)
`

Can anybody help with this error? May be any manual for run 5.x kernel at HiKey970

Board based on the Kirin 970 - HI3670 Application Processor
More info: http://www.96boards.org/product/hikey970/ (Website coming soon…)
Buy now: https://www.seeedstudio.com/HiKey-970-Development-Board-p-3046.html

@alex_inno please have a look at @Mani’s blog posts in mainlining the Hikey970 here. You can also get his patched kernel based in 5.1 from https://git.linaro.org/people/manivannan.sadhasivam/96b-common.git/?h=hikey970_pcie and also you should be able to follow the kernel building steps from this blog post to compile and flash your upgraded kernel.

Probably a good idea to have some follow-up info on the results.
Can we run the latest 5.5.9 kernel with Mani’s patches for PCIe?
Also how do we get video output working with the 5.x kernels?