Problems of hikey960-upstream-rebase

Hello!
I have tried build hikey960-upstream-rebase branch, and successfully generate Image and dtb. But after I replace the Image and dtb in latest rpb. My hikey960 can’t boot, It showed following information:

Loading driver at 0x000B72E5000 EntryPoint=0x000B837AA7C
Loading driver at 0x000B72E5000 EntryPoint=0x000B837AA7C 
[    1.547118] dmi: Firmware registration failed.
[    1.632568] mali e82c0000.mali: Clock not available for devfreq
[    1.632602] mali e82c0000.mali: Continuing without devfreq
[    1.682398] [USB3][hisi_dwc3_probe]+
[    1.682563] [USB3][get_phy_param]eye diagram param: 0x1c466e3
[    1.682578] [USB3][get_phy_param]eye diagram host param: 0x1c466e3
[    1.682592] [USB3][get_phy_param]usb3_phy_cr_param: 0xb80
[    1.682603] [USB3][get_phy_param]usb3_phy_host_cr_param: 0x980
[    1.682616] [USB3][get_phy_param]usb3_phy_tx_vboost_lvl: 5
[    1.682654] [USB3][get_resource]this is asic platform (fpga flag 0)
[    1.682667] [USB3][create_attr_file]+
[    1.682734] [USB3][create_attr_file]-
[    1.682749] [USB3][hi3660_usb3phy_init]+
[    1.708251] [USB3][config_femtophy_param]set hs phy param 0x1c466e3 for device
[    1.708853] [USB3][config_femtophy_param]set ss phy rx equalization 0xb80
[    1.709770] [USB3][config_femtophy_param]set ss RX_SCOPE_VDCC 0x1
[    1.709784] [USB3][config_femtophy_param]set ss phy tx vboost lvl 0x5
[    1.709798] [USB3][set_hisi_dwc3_power_flag]set hisi_dwc3_power_flag 1
[    1.709809] [USB3][hi3660_usb3phy_init]-
[    1.710714] dwc3 ff100000.dwc3: dwc3_host_init if otg, otg will do device_add.
[    1.713641] [USB3][hisi_dwc3_wake_lock]usb otg wake lock
[    1.713670] [USB3][hisi_dwc3_probe]init state: OFF
[    1.713682] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in:1
[    1.713697] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in otg:1
[    1.713710] [USB3][hisi_usb_otg_event]event: 1
[    1.713727] [USB3][hisi_dwc3_probe]-
[    1.713728] [USB3][event_work]+
[    1.713732] [USB3][handle_event][handle_event] type: 1
[    1.713791] [USB3][hisi_dwc3_wake_unlock]usb otg wake unlock
[    1.713808] [USB3][handle_event]hisi usb status: DEVICE -> OFF
[    1.713820] [USB3][event_work]-
[    1.718078] hi3660_thermal fff30000.tsensor: failed to register thermal sensor0: -19
[    1.718125] hi3660_thermal fff30000.tsensor: failed to register thermal sensor1: -19
[    1.718151] hi3660_thermal fff30000.tsensor: failed to register thermal sensor2: -19
[    1.718176] hi3660_thermal fff30000.tsensor: failed to register thermal sensor3: -19
[    1.718234] hi3660_thermal fff30000.tsensor: failed to register thermal sensor5: -19
[    1.768834] ufshcd-hi3660 ff3b0000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[1, 1], lane[1, 1], pwr[SLOWAUTO_MODE, SLOWAUTO_MODE], rate = 0
[    1.980073] ufshcd-hi3660 ff3b0000.ufs: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[1, 1], pwr[FAST MODE, FAST MODE], rate = 2
[    1.980260] ufshcd-hi3660 ff3b0000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
[    2.079599] ssp-pl022 ffd68000.spi: Failed to work in dma mode, work without dma!
[    2.088774] ssp-pl022 ff3b3000.spi: Failed to work in dma mode, work without dma!
[    2.760797] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in:1
[    2.766629] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in otg:1
[    2.772795] [E/GPIO_HUB] gpio_hub_switch_to_hub: switch to hub
[    2.778688] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in:2
[    2.784500] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in otg:2
[    2.790653] [USB3][hisi_usb_otg_event]event: 2
[    2.795143] [USB3][event_work]+
[    2.795160] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!+++++++++++
[    2.795168] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!-----------
[    2.813188] [USB3][handle_event][handle_event] type: 2
[    2.818329] [USB3][set_vbus_power]set port power 1
[    2.827460] [USB3][hisi_dwc3_wake_lock]usb otg wake lock
[    2.834971] [USB3][handle_event]hisi usb_status: OFF -> HOST
[    2.840657] [USB3][event_work]-
[    3.142945] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!+++++++++++
[    3.150347] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!-----------
[    3.157755] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in:3
[    3.163500] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in otg:3
[    3.169592] [USB3][hisi_usb_otg_event]event: 3
[    3.174040] [E/GPIO_HUB] gpio_hub_switch_to_typec: switch to typec
[    3.181358] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in:0
[    3.185785] [USB3][event_work]+
[    3.185797] [USB3][handle_event][handle_event] type: 3
[    3.185806] [USB3][set_vbus_power]set port power 0
[    3.185831] [E/hisi_pd] pd_dpm_vbus_notifier_call: pd_dpm_vbus_notifier_call!!!,++++
[    3.189593] [USB3][hisi_dwc3_wake_unlock]usb otg wake unlock
[    3.189603] [USB3][handle_event]hiusb_status: HOST -> OFF
[    3.189609] [USB3][event_work]-
[    3.222156] [USB3][hisi_usb_otg_event]hisi_usb_otg_event in otg:0
[    3.228251] [USB3][hisi_usb_otg_event]event: 0
[    3.232688] [USB3][hisi_dwc3_wake_lock]usb otg wake lock
[    3.238005] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!+++++++++++
[    3.238196] [USB3][event_work]+
[    3.238198] [USB3][handle_event][handle_event] type: 0
[    3.254140] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!-----------
[    3.373880] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=3,+++
[    3.379721] [E/hisi_pd] pd_dpm_vbus_notifier_call: pd_dpm_vbus_notifier_call!!!,++++
[    3.387469] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=7,+++
[    3.548348] [USB3][detect_charger_type]DCD done
[    3.581919] [USB3][detect_charger_type]Primary Detection done
[    3.587687] [USB3][detect_charger_type]Secondary Detection done
[    3.621919] [USB3][detect_charger_type]type: 0
[    3.626400] [E/hisi_pd] pd_dpm_vbus_notifier_call: pd_dpm_vbus_notifier_call!!!,++++
[    3.636417] [USB3][handle_event]hisi usb status: OFF -> DEVICE
[    3.642295] [USB3][event_work]-
[    4.026412] EXT4-fs (sdd10): couldn't mount as ext3 due to feature incompatibilities
[    4.034905] EXT4-fs (sdd10): couldn't mount as ext2 due to feature incompatibilities
[    4.142154] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=6,+++
[    4.199038] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=5,+++
[    4.227673] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=3,+++
Failed to mount devtmpfs at /dev: No such device
Freezing execution.
[    9.129617] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=6,+++
[    9.185715] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=5,+++
[    9.213916] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=3,+++
[   14.126379] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=6,+++
[   14.186136] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=5,+++
[   14.216494] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=3,+++

What’s wrong with it? My toolchain version is 5.3.1
http://releases.linaro.org/components/toolchain/binaries/5.3-2016.05/aarch64-linux-gnu/

I’have flashed the latest bootloader in http://builds.96boards.org/snapshots/reference-platform/components/uefi-staging/55/hikey960/release/
But It still shows error below. Is there any wrong operation during my build??
I use the script following:

#!/bin/sh
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-

BOOT=arch/arm64/boot
DTB=hi3660-hikey960.dtb

make defconfig
make Image dtbs -j8 

And defconfig is from the latest rpb. http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/

I use the Image and hi3660-hikey960.dtb replace the kernel and dts in rpb-desktop-image-hikey960-20180209072216-129.rootfs.img.gz.

And then I met errors below.

Hi @tianyu_XU,

Can you please try to flash the latest bootloader by downloading the binaries from here: http://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/latest/hikey960/debug/

And flash using the instructions specified in: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/hikey960.rst

Then flash the latest release image (boot, rootfs) from: http://snapshots.linaro.org/96boards/hikey/linaro/debian/latest/

Finally, you can build the kernel from ‘hikey960-upstream-rebase’ branch using the instructions in below guide:

Note

You should use defconfig alone while building the kernel. hikey960_defconfig is missing DEVTMPFS which is essential for populating the /dev entries.

Thanks,
Mani

I did try the hikey960-upstream-rebase recently but with the defconfig that was already present in the source, and it workd fine.