This is a cache of https://discuss.96boards.org/t/how-to-customize-kernel-for-lemakers-lebian9-need-system-v-ipc-enabled/7179. It is a snapshot of the page at 2024-11-01T10:29:04.914+0000.
How to customize kernel for Lemaker's Lebian9 (need System V IPC enabled) - HiKey970 - 96Boards Forum

How to customize kernel for Lemaker's Lebian9 (need System V IPC enabled)

Hello,

I would like to use Xtion PRO LIVE on Lebian9 with pre-built TensorFlow(hereafter called Lebian9-tf).
However, in order to use this, it was necessary to enable “System V IPC” in kernel configuration.
(SimpleViewer can't work well. Log shows Xiron OS failed to create a mutex! - Getting Started - Orbbec 3D Club)
This function is used by OpenNI library, and disabled in Lebian9-tf kernel.

I tried to build kernel. I used the kernel source code is here.->(https://github.com/96boards-hikey/linux)
I executed command list is:

git clone < github link >
cd linux
git checkout hikey970-v4.9
make mrproper
sudo cp /proc/config.gz ~/
gzip -d ~/config.gz
cp ~/config .config
sudo chmod 666 .config
make menuconfig
< enabled kernel config >
make -j4
sudo cp arch/arm64/boot/Image /boot
sudo cp arch/arm64/boot/dts/hisilicon/kirin970-hikey970.dtb /boot
< reboot >

Unfortunately my built kernel source did not work…

The functions I need are as follows.
・ build-in TensorFlow
・ GUI interface
・ possible HDMI output
・ kernel enabled System V IPC ← I want to enabled…

Could you tell me how to customize kernel on Lebian9-tf?
Or you know how to create equivalent img?

I am looking forward to reply.
Thank you.

These steps look about right to me. What does “did not work” mean (how did it fail to work)?

I guess the big question is whether https://github.com/96boards-hikey/linux exactly matches the source used by Lemaker. I think you’d have to ask the Lemaker folks about that.

Thank you for reply, danielt,

When I introduced my custom kernel, Hikey 970 did not seem to start.
However, since WiFi and PCIE LED is blinking, it seems to be running…?
I looked just like to did not working HDMI output.

I guess the big question is whether https://github.com/96boards-hikey/linux exactly matches the source used by Lemaker. I think you’d have to ask the Lemaker folks about that.

I think so too, it is important to check whether it exactly matches the source used by Lemaker.
(I’m currently contacting Lemaker, but I have not received a reply for a week…)

If you get no HDMI output it might be worth comparing serial logs from the broken and working kernels. Hikey970 has a (read only) debug UART on the second type-C connector.

I used UART for debugging for the first time … Thank you for the advice.

The boot log of the custom kernel is as follows.

  Booting `Lebian 9 (HiKey970 Lebian)'

EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.78-147536-g7304d83b6c94 (yukey@yukey-laptop) (gcc version 7.3.0 (ubuntu/Linaro 7.3.0-27ubuntu1~18.04) ) #1 SMP PREEMPT Tue Jan 29 14:51:06 JST 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: pl11 at MMIO 0x00000000fff32000 (options '115200')
[    0.000000] bootconsole [pl11] enabled
[    0.000000] Ion: insert heap-name carveout_gralloc
[    0.031938] /soc/interrupt-controller@0xf4000000: Unable to locate ITS domain
[    0.039264] /soc/interrupt-controller@0xf4000000: unable to locate ITS domain
[    0.425253] dmi: Firmware registration failed.
[    0.429914] Ion: invalid heap-name in node iommu_info, please check the name
[    0.437085] Ion: invalid heap-name in node linear, please check the name
[    0.443912] Ion: node name [heap_sys_user], heap-name [sys_heap]
[    0.449929] Ion: heap index 0 : name sys_heap base 0x0 size 0x0 id 0 type 0
[    0.456889] Ion: heap sys_heap base =0, try to find dynamic area
[    0.462981] Ion: name = sys_heap, table name carveout_gralloc
[    0.468809] Ion: name = sys_heap, table name
[    0.473251] Ion: name = sys_heap, table name
[    0.477690] Ion: name = sys_heap, table name
[    0.482130] Ion: name = sys_heap, table name
[    0.486577] Ion: node name [heap_carveout_gralloc], heap-name [carveout_gralloc]
[    0.493970] Ion: heap index 1 : name carveout_gralloc base 0x0 size 0x0 id 2 type 2
[    0.501623] Ion: heap carveout_gralloc base =0, try to find dynamic area
[    0.508406] Ion: name = carveout_gralloc, table name carveout_gralloc
[    0.514930] Ion: have found heap name carveout_gralloc base = 0xbc800000, size 31457280
[    0.522945] of_get_iova_info:start_addr 0x40000, size 0xbffc0000 align 0x8000
[    0.534309] no hisilicon,hisi-pmic-irq-num1 property set
[    0.539623] hisi_pmic 2-00: the platform don't support ext-interrupt.
[    0.553309] <[hisi_dt_parse_ip_atf]: regulator_id=0, ppll0_clock_set_rate_flag=0>
[    0.560968] <[hisi_dt_parse_ip_atf]: regulator_id=1, ppll0_clock_set_rate_flag=0>
[    0.568530] <[hisi_ip_to_atf_is_enabled]:regulator_id=1>
[    0.573943] <[hisi_dt_parse_ip_atf]: regulator_id=8, ppll0_clock_set_rate_flag=0>
[    0.581549] <[hisi_dt_parse_ip_atf]: regulator_id=2, ppll0_clock_set_rate_flag=0>
[    0.589072] <[hisi_ip_to_atf_is_enabled]:regulator_id=2>
[    0.594479] <[hisi_dt_parse_ip_atf]: regulator_id=3, ppll0_clock_set_rate_flag=0>
[    0.601998] <[hisi_ip_to_atf_is_enabled]:regulator_id=3>
[    0.607420] <[hisi_dt_parse_ip_atf]: regulator_id=4, ppll0_clock_set_rate_flag=0>
[    0.614939] <[hisi_ip_to_atf_is_enabled]:regulator_id=4>
[    0.620346] <[hisi_dt_parse_ip_atf]: regulator_id=5, ppll0_clock_set_rate_flag=0>
[    0.627864] <[hisi_ip_to_atf_is_enabled]:regulator_id=5>
[    0.633277] <[hisi_dt_parse_ip_atf]: regulator_id=6, ppll0_clock_set_rate_flag=0>
[    0.640795] <[hisi_ip_to_atf_is_enabled]:regulator_id=6>
[    0.646216] <[hisi_dt_parse_ip_atf]: regulator_id=7, ppll0_clock_set_rate_flag=0>
[    0.653736] <[hisi_ip_to_atf_is_enabled]:regulator_id=7>
[    0.668400] Kirin-pcie f4000000.pcie: eye_param_vboost = [0xffffffff]
[    0.674865] Kirin-pcie f4000000.pcie: eye_param_iboost = [0xffffffff]
[    0.681305] Kirin-pcie f4000000.pcie: eye_param_pre = [0xffffffff]
[    0.687651] Kirin-pcie f4000000.pcie: eye_param_post = [0xffffffff]
[    0.693919] Kirin-pcie f4000000.pcie: eye_param_main = [0xffffffff]
[    0.799642] ion domain already init return domain
[    0.804485] [drm:drm_helper_disable_unused_functions] *ERROR* Called for atomic driver, this is not what you want.
[    1.148255] gpio_hub_power_on:regulator_enable
[    1.208483] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!+++++++++++
[    1.215885] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!-----------
[    1.223285] [E/hisi_pd] typec_unattached_power_entry:!!!+++++++++++
[    1.229792] [E/hisi_pd] tcpci_disable_vbus_control: !!!++++++++
[    1.235718] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=0,+++
[    1.241552] [E/hisi_pd] typec_unattached_power_entry:!!!-----------
[    1.370794] ufshcd-hisi ff3c0000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
[    1.434113] hifi pdev name[hifidsp].
[    1.437837] DRV_IPCIntInit begin.
[    1.441163] DRV_IPCIntInit line = 220
[    1.444957] BSP_DRV_IPCIntInit end.
[    1.448635] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
[    1.449481] of_get_iova_info:start_addr 0x40000, size 0x80000000 align 0x40000
[    1.449597] IFO:<493:VENC_DRV_ModInit>enter VENC_DRV_ModInit()
[    1.449597]
[    1.449969] IFO:<429:VENC_DRV_Probe>omxvenc prepare to probe
[    1.449969]
[    1.449979] IFO:<368:VENC_DRV_SetupCdev>enter VENC_DRV_SetupCdev()
[    1.449979]
[    1.450082] IFO:<399:VENC_DRV_SetupCdev>exit VENC_DRV_SetupCdev()
[    1.450082]
[    1.450085] ion domain already init return domain
[    1.450150] IFO:<131:Venc_GetDtsConfigInfo>venc_clk_rate: highRate:554000000, normalRate:450000000, lowRate:238000000
[    1.450150]
[    1.450153] ERR:<137:Venc_GetDtsConfigInfo>get venc qos mode failed set default
[    1.450153]
[    1.450155] IFO:<143:Venc_GetDtsConfigInfo>SmmuPageBaseAddr is 0xffff000008e0ee38
[    1.450155]
[    1.450157] IFO:<458:VENC_DRV_Probe>omxvenc probe successfully
[    1.450157]
[    1.450191] IFO:<429:VENC_DRV_Probe>omxvenc prepare to probe
[    1.450191]
[    1.450193] IFO:<432:VENC_DRV_Probe>venc device detected already
[    1.450193]
[    1.450217] IFO:<506:VENC_DRV_ModInit>success
[    1.450217]
[    1.450219] IFO:<510:VENC_DRV_ModInit>exit VENC_DRV_ModInit()
[    1.450219]
[    1.450674] ion domain already init return domain
[    1.753731] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    1.760127] [ISP] isp_i2c_xfer: I2C abort
[    1.764154] [ISP] isp_i2c_write_reg: write reg fail
[    1.769073] [ISP] ov5640_main_power: could not set init registers
[    1.775241] [ISP] isp_i2c_read_reg: read[0x300a]
[    1.782875] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    1.789233] [ISP] isp_i2c_xfer: I2C abort
[    1.793260] [ISP] isp_i2c_read_reg: read reg fail[    1.797789] [ISP] ov5640_main_get_chip_id: get chip id high[255] fail
[    1.804258] [ISP] ov5640_main_probe: chip id is 0x0
[    1.809137] [ISP] ov5640_main_probe: chip id is 0x0, probe failed
[    2.065741] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    2.072132] [ISP] isp_i2c_xfer: I2C abort
[    2.076147] [ISP] isp_i2c_write_reg: write reg fail
[    2.081046] [ISP] ov5640_sub_power: could not set init registers
[    2.087063] [ISP] isp_i2c_read_reg: read[0x300a]
[    2.094727] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    2.101096] [ISP] isp_i2c_xfer: I2C abort
[    2.105108] [ISP] isp_i2c_read_reg: read reg fail[    2.109635] [ISP] ov5640_sub_get_chip_id: get chip id high[255] fail
[    2.116012] [ISP] ov5640_sub_probe: chip id is 0x0, probe failed
[    2.122221] <[hisi_ip_to_atf_is_enabled]:regulator_id=0>
[    2.127534] <[hisi_ip_to_atf_is_enabled]:regulator_id=1>
[    2.132852] <[hisi_ip_to_atf_is_enabled]:regulator_id=8>
[    2.138163] <[hisi_ip_to_atf_is_enabled]:regulator_id=2>
[    2.143475] <[hisi_ip_to_atf_is_enabled]:regulator_id=3>
[    2.148788] <[hisi_ip_to_atf_is_enabled]:regulator_id=4>
[    2.154098] <[hisi_ip_to_atf_is_enabled]:regulator_id=5>
[    2.159409] <[hisi_ip_to_atf_is_enabled]:regulator_id=6>
[    2.164722] <[hisi_ip_to_atf_is_enabled]:regulator_id=7>
[    2.170744] EXT4-fs (sdd15): couldn't mount as ext3 due to feature incompatibilities
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.30:  No such file or directory
[    2.374518] (stk) :ldisc installation timeout[FAILED] Failed to start Hostname Service.
See 'systemctl status systemd-hostnamed.service' for details.
[  OK  ] Started Network Manager.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Serial Getty on ttyAMA6.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
         Starting Light Display Manager...
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Light Display Manager.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
[    3.202951] vgaarb: this pci device is not a vga device
[    3.398527] (stk) : timed out waiting for ldisc to be un-installed[    3.446992] vgaarb: this pci device is not a vga device
[  OK  ] Created slice User Slice of lightdm.
[  OK  ] Started Session c1 of user lightdm.
         Starting User Manager for UID 107...
[  OK  ] Started User Manager for UID 107.
[    4.518531] (stk) :ldisc installation timeout(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc installation timeout(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc installation timeout
Debian GNU/Linux 9 hikey970 ttyAMA6

hikey970 login: (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc installation timeout(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc installation timeout(stk) : timed out waiting for ldisc to be un-installed[   14.126088] Bluetooth: st_register failed -22

The errors I found are summarized below.
[drm:drm_helper_disable_unused_functions] ERROR Called for atomic driver, this is not what you want.

It is an error you do not know the measure. And this was found only in the custom kernel.

[ 1.487580] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2

This is because I have not installed firmware-ti-conectivity yet.

[ 1.913077] [ISP] isp_i2c_read_reg: read reg fail[ 1.917609] [ISP] ov5640_main_get_chip_id: get chip id high[255] fail
[ 1.928964] [ISP] ov5640_main_probe: chip id is 0x0, probe failed
[ 2.216986] [ISP] isp_i2c_read_reg: read reg fail[ 2.221519] [ISP] ov5640_sub_get_chip_id: get chip id high[255] fail
[ 2.227904] [ISP] ov5640_sub_probe: chip id is 0x0, probe failed

It is an error you do not know the measure. However, this error also occurred in the Lemaker’s kernel.

[ 2.295963] EXT4-fs (sdd15): couldn’t mount as ext3 due to feature incompatibilities

This is because I have not executed the resize2fs command yet.

SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.30: No such file or directory
[ 3.274444] vgaarb: this pci device is not a vga device
[ 3.430806] (stk) : timed out waiting for ldisc to be un-installed

It is an error you do not know the measure. However, this error also occurred in the Lemaker’s kernel.


Appendix: Lemaker’s kernel boot log

  Booting `Lebian 9 (HiKey970 Lebian)'

EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services and installing virtual address map...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.78-147538-g244928755bbe (andy@andy-virtual-machine) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Thu May 31 10:58:02 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] Ion: insert heap-name carveout_gralloc
[    0.031935] /soc/interrupt-controller@0xf4000000: Unable to locate ITS domain
[    0.039260] /soc/interrupt-controller@0xf4000000: unable to locate ITS domain
[    0.393210] dmi: Firmware registration failed.
[    0.398004] Ion: invalid heap-name in node iommu_info, please check the name
[    0.405155] Ion: invalid heap-name in node linear, please check the name
[    0.411957] Ion: node name [heap_sys_user], heap-name [sys_heap]
[    0.417982] Ion: heap index 0 : name sys_heap base 0x0 size 0x0 id 0 type 0
[    0.424946] Ion: heap sys_heap base =0, try to find dynamic area
[    0.431039] Ion: name = sys_heap, table name carveout_gralloc
[    0.436869] Ion: name = sys_heap, table name
[    0.441309] Ion: name = sys_heap, table name
[    0.445749] Ion: name = sys_heap, table name
[    0.450187] Ion: name = sys_heap, table name
[    0.454634] Ion: node name [heap_carveout_gralloc], heap-name [carveout_gralloc]
[    0.462028] Ion: heap index 1 : name carveout_gralloc base 0x0 size 0x0 id 2 type 2
[    0.469682] Ion: heap carveout_gralloc base =0, try to find dynamic area
[    0.476465] Ion: name = carveout_gralloc, table name carveout_gralloc
[    0.482989] Ion: have found heap name carveout_gralloc base = 0xbc800000, size 31457280
[    0.491004] of_get_iova_info:start_addr 0x40000, size 0xbffc0000 align 0x8000
[    0.502458] no hisilicon,hisi-pmic-irq-num1 property set
[    0.507772] hisi_pmic 2-00: the platform don't support ext-interrupt.
[    0.521463] <[hisi_dt_parse_ip_atf]: regulator_id=0, ppll0_clock_set_rate_flag=0>
[    0.529118] <[hisi_dt_parse_ip_atf]: regulator_id=1, ppll0_clock_set_rate_flag=0>
[    0.536679] <[hisi_ip_to_atf_is_enabled]:regulator_id=1>
[    0.542086] <[hisi_dt_parse_ip_atf]: regulator_id=8, ppll0_clock_set_rate_flag=0>
[    0.549685] <[hisi_dt_parse_ip_atf]: regulator_id=2, ppll0_clock_set_rate_flag=0>
[    0.557207] <[hisi_ip_to_atf_is_enabled]:regulator_id=2>
[    0.562619] <[hisi_dt_parse_ip_atf]: regulator_id=3, ppll0_clock_set_rate_flag=0>
[    0.570139] <[hisi_ip_to_atf_is_enabled]:regulator_id=3>
[    0.575559] <[hisi_dt_parse_ip_atf]: regulator_id=4, ppll0_clock_set_rate_flag=0>
[    0.583077] <[hisi_ip_to_atf_is_enabled]:regulator_id=4>
[    0.588489] <[hisi_dt_parse_ip_atf]: regulator_id=5, ppll0_clock_set_rate_flag=0>
[    0.596009] <[hisi_ip_to_atf_is_enabled]:regulator_id=5>
[    0.601419] <[hisi_dt_parse_ip_atf]: regulator_id=6, ppll0_clock_set_rate_flag=0>
[    0.608936] <[hisi_ip_to_atf_is_enabled]:regulator_id=6>
[    0.614348] <[hisi_dt_parse_ip_atf]: regulator_id=7, ppll0_clock_set_rate_flag=0>
[    0.621878] <[hisi_ip_to_atf_is_enabled]:regulator_id=7>
[    0.636582] Kirin-pcie f4000000.pcie: eye_param_vboost = [0xffffffff]
[    0.643044] Kirin-pcie f4000000.pcie: eye_param_iboost = [0xffffffff]
[    0.649488] Kirin-pcie f4000000.pcie: eye_param_pre = [0xffffffff]
[    0.655671] Kirin-pcie f4000000.pcie: eye_param_post = [0xffffffff]
[    0.661939] Kirin-pcie f4000000.pcie: eye_param_main = [0xffffffff]
[    0.767831] ion domain already init return domain
[    1.100022] gpio_hub_power_on:regulator_enable
[    1.160160] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!+++++++++++
[    1.167563] [E/hisi_pd] typec_wait_ps_change: typec_wait_ps_change!!!-----------
[    1.174961] [E/hisi_pd] typec_unattached_power_entry:!!!+++++++++++
[    1.181464] [E/hisi_pd] tcpci_disable_vbus_control: !!!++++++++
[    1.187385] [E/hisi_pd] pd_dpm_handle_pe_event:!!!,event=0,+++
[    1.193217] [E/hisi_pd] typec_unattached_power_entry:!!!-----------
[    1.235137] hisi_thermal fff30000.tsensor: THERMAL ALARM: 65384 > 65000
[    1.257169] ufshcd-hisi ff3c0000.ufs: ufshcd_find_max_sup_active_icc_level: Regulator capability was not set, actvIccLevel=0
[    1.269263] hisi_thermal fff30000.tsensor: THERMAL ALARM stopped: 60416 < 65000
[    1.427811] wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2
[    1.445416] hifi pdev name[hifidsp].
[    1.449349] DRV_IPCIntInit begin.
[    1.452679] DRV_IPCIntInit line = 220
[    1.456369] BSP_DRV_IPCIntInit end.
[    1.460978] of_get_iova_info:start_addr 0x40000, size 0x80000000 align 0x40000
[    1.468338] IFO:<493:VENC_DRV_ModInit>enter VENC_DRV_ModInit()
[    1.468338]
[    1.476107] IFO:<429:VENC_DRV_Probe>omxvenc prepare to probe
[    1.476107]
[    1.483363] IFO:<368:VENC_DRV_SetupCdev>enter VENC_DRV_SetupCdev()
[    1.483363]
[    1.491354] IFO:<399:VENC_DRV_SetupCdev>exit VENC_DRV_SetupCdev()
[    1.491354]
[    1.499018] ion domain already init return domain
[    1.503786] IFO:<131:Venc_GetDtsConfigInfo>venc_clk_rate: highRate:554000000, normalRate:450000000, lowRate:238000000
[    1.503786]
[    1.515972] ERR:<137:Venc_GetDtsConfigInfo>get venc qos mode failed set default
[    1.515972]
[    1.524850] IFO:<143:Venc_GetDtsConfigInfo>SmmuPageBaseAddr is 0xffff000008e22c38
[    1.524850]
[    1.533901] IFO:<458:VENC_DRV_Probe>omxvenc probe successfully
[    1.533901]
[    1.541323] IFO:<429:VENC_DRV_Probe>omxvenc prepare to probe
[    1.541323]
[    1.548548] IFO:<432:VENC_DRV_Probe>venc device detected already
[    1.548548]
[    1.556132] IFO:<506:VENC_DRV_ModInit>success
[    1.556132]
[    1.562055] IFO:<510:VENC_DRV_ModInit>exit VENC_DRV_ModInit()
[    1.562055]
[    1.569818] ion domain already init return domain
[    1.837676] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    1.844079] [ISP] isp_i2c_xfer: I2C abort
[    1.848107] [ISP] isp_i2c_write_reg: write reg fail
[    1.853050] [ISP] ov5640_main_power: could not set init registers
[    1.859165] [ISP] isp_i2c_read_reg: read[0x300a]
[    1.866815] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    1.873194] [ISP] isp_i2c_xfer: I2C abort
[    1.877213] [ISP] isp_i2c_read_reg: read reg fail[    1.881751] [ISP] ov5640_main_get_chip_id: get chip id high[255] fail
[    1.888227] [ISP] ov5640_main_probe: chip id is 0x0
[    1.893118] [ISP] ov5640_main_probe: chip id is 0x0, probe failed
[    2.141669] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    2.148030] [ISP] isp_i2c_xfer: I2C abort
[    2.152039] [ISP] isp_i2c_write_reg: write reg fail
[    2.156915] [ISP] ov5640_sub_power: could not set init registers
[    2.162930] [ISP] isp_i2c_read_reg: read[0x300a]
[    2.170562] [ISP] isp_i2c_read_clear_intrbits: ABRT_SOURCE 0x1000001
[    2.176928] [ISP] isp_i2c_xfer: I2C abort
[    2.180934] [ISP] isp_i2c_read_reg: read reg fail[    2.185459] [ISP] ov5640_sub_get_chip_id: get chip id high[255] fail
[    2.191827] [ISP] ov5640_sub_probe: chip id is 0x0, probe failed
[    2.198002] <[hisi_ip_to_atf_is_enabled]:regulator_id=0>
[    2.203318] <[hisi_ip_to_atf_is_enabled]:regulator_id=1>
[    2.208630] <[hisi_ip_to_atf_is_enabled]:regulator_id=8>
[    2.213940] <[hisi_ip_to_atf_is_enabled]:regulator_id=2>
[    2.219252] <[hisi_ip_to_atf_is_enabled]:regulator_id=3>
[    2.224565] <[hisi_ip_to_atf_is_enabled]:regulator_id=4>
[    2.229876] <[hisi_ip_to_atf_is_enabled]:regulator_id=5>
[    2.235189] <[hisi_ip_to_atf_is_enabled]:regulator_id=6>
[    2.240500] <[hisi_ip_to_atf_is_enabled]:regulator_id=7>
[    2.246209] EXT4-fs (sdd15): couldn't mount as ext3 due to feature incompatibilities
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.30:  No such file or directory
[    2.342661] (stk) :ldisc installation timeout[    2.489554] hisi_thermal fff30000.tsensor: THERMAL ALARM: 66032 > 65000
[FAILED] Failed to start Hostname Service.
See 'systemctl status systemd-hostnamed.service' for details.
[  OK  ] Started Network Manager.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting OpenBSD Secure Shell server...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Serial Getty on ttyAMA6.
         Starting Light Display Manager...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Light Display Manager.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
[    3.171898] vgaarb: this pci device is not a vga device
[    3.366658] (stk) : timed out waiting for ldisc to be un-installed[    3.409400] vgaarb: this pci device is not a vga device
[  OK  ] Created slice User Slice of lightdm.
         Starting User Manager for UID 107...
[  OK  ] Started Session c1 of user lightdm.
[  OK  ] Started User Manager for UID 107.
[    4.486874] (stk) :ldisc installation timeout
[    5.511468] (stk) : timed out waiting for ldisc to be un-installed
[    6.631473] (stk) :ldisc installation timeout
[    7.655446] (stk) : timed out waiting for ldisc to be un-installed
[    8.775445] (stk) :ldisc installation timeout

Debian GNU/Linux 9 hikey970 ttyAMA6

hikey970 login: [    9.799454] (stk) : timed out waiting for ldisc to be un-installed
[   10.918699] (stk) :ldisc installation timeout
[   11.942698] (stk) : timed out waiting for ldisc to be un-installed
[   13.062704] (stk) :ldisc installation timeout
[   14.086700] (stk) : timed out waiting for ldisc to be un-installed
[   14.094959] Bluetooth: st_register failed -22

Weird. There seems to be a fair bit missing from both logs which makes it hard to figure out what happens in what order. Is there anything on the kernel command line to make things quieter (quiet or loglevel=).

I realized that after you built the kernel nothing has been done to deploy the modules (make modules_install). I can’t tell with the abridged logs but that might be necessary too.