This is a cache of https://discuss.96boards.org/t/booting-from-sd-card-halts/7727. It is a snapshot of the page at 2024-10-31T10:51:23.955+0000.
Booting from SD card halts - HiKey 960 - 96Boards Forum

Booting from SD card halts

Hi
i am trying to boot Hikey960 from SD card. I have flashed the images onto the SD card. When i boot the board on normal mode the debian images halts loading at some point. When i repeatedly power on and power off the board to boot it again, occassionally the board boots up completely. But 98% of the time the board does not boot up. What could be the issue?

I have followed the following link:
Create a Bootable SD Card for HiKey - 96Boards

This is the last few lines of my boot log (i have skipped the first few lines because of size restriction):

[ 1.577603] dwmmc_k3 ff37f000.dwmmc1: fifo-depth property not found, using value of FIFOTH register as default
[ 1.579856] dwmmc_k3 ff37f000.dwmmc1: IDMAC supports 64-bit address mode.
[ 1.579998] dwmmc_k3 ff37f000.dwmmc1: Using internal DMA controller.
[ 1.580012] dwmmc_k3 ff37f000.dwmmc1: Version ID is 270a
[ 1.580060] dwmmc_k3 ff37f000.dwmmc1: DW MMC controller at irq 59,32 bit host data width,256 deep fifo
[ 1.580156] dwmmc_k3 ff37f000.dwmmc1: Linked as a consumer to regulator.5
[ 1.580215] dwmmc_k3 ff37f000.dwmmc1: Linked as a consumer to regulator.2
[ 1.580283] dwmmc_k3 ff37f000.dwmmc1: Got CD GPIO
[ 1.595774] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 1.610345] dwmmc_k3 ff3ff000.dwmmc2: fifo-depth property not found, using value of FIFOTH register as default
[ 1.612515] dwmmc_k3 ff3ff000.dwmmc2: IDMAC supports 64-bit address mode.
[ 1.612763] dwmmc_k3 ff3ff000.dwmmc2: Using internal DMA controller.
[ 1.612802] dwmmc_k3 ff3ff000.dwmmc2: Version ID is 270a
[ 1.612880] dwmmc_k3 ff3ff000.dwmmc2: DW MMC controller at irq 60,32 bit host data width,256 deep fifo
[ 1.614355] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.620004] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.622259] usbcore: registered new interface driver usbhid
[ 1.622314] usbhid: USB HID core driver
[ 1.624401] optee: probing for conduit method from DT.
[ 1.624492] optee: revision 3.0 (94ee4938)
[ 1.628390] optee: initialized driver
[ 1.629005] usbcore: registered new interface driver snd-usb-audio
[ 1.631146] NET: Registered protocol family 10
[ 1.631967] Segment Routing with IPv6
[ 1.632038] NET: Registered protocol family 17
[ 1.632116] 9pnet: Installing 9P2000 support
[ 1.632218] Key type dns_resolver registered
[ 1.633248] registered taskstats version 1
[ 1.633267] Loading compiled-in X.509 certificates
[ 1.640272] ffd74000.serial: ttyAMA3 at MMIO 0xffd74000 (irq = 21, base_baud = 0) is a PL011 rev2
[ 1.640811] fdf01000.serial: ttyAMA4 at MMIO 0xfdf01000 (irq = 22, base_baud = 0) is a PL011 rev2
[ 1.640923] serial serial0: tty port ttyAMA4 registered
[ 1.641080] fff32000.serial: ttyAMA6 at MMIO 0xfff32000 (irq = 23, base_baud = 0) is a PL011 rev2
[ 1.691167] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
[ 1.692921] console [ttyAMA6] enabled
[ 1.905129] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 1.906769] ssp-pl022 ffd68000.spi: ARM PL022 driver, device ID: 0x00041022
[ 1.967444] hub 2-1:1.0: USB hub found
[ 1.975515] ssp-pl022 ffd68000.spi: mapped registers from 0x00000000ffd68000 to (ptrval)
[ 1.984070] hub 2-1:1.0: 5 ports detected
[ 1.993484] ssp-pl022 ffd68000.spi: setup for DMA on RX dma0chan0, TX dma0chan1
[ 2.170966] dwmmc_k3 ff37f000.dwmmc1: tuning ok best_clksmpl 22 tuning_sample_flag bfffbfff
[ 2.176431] ssp-pl022 ff3b3000.spi: ARM PL022 driver, device ID: 0x00041022
[ 2.180734] mmc0: new ultra high speed SDR50 SDHC card at address aaaa
[ 2.184863] ssp-pl022 ff3b3000.spi: mapped registers from 0x00000000ff3b3000 to (ptrval)
[ 2.197577] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[ 2.203759] ssp-pl022 ff3b3000.spi: setup for DMA on RX dma0chan2, TX dma0chan3
[ 2.216352] mmcblk0: p1 p2
[ 2.236478] hisi_hikey_usb hisi_hikey_usb: extcon_hisi_pd_set_role:set usb role to 0
[ 3.060684] random: fast init done
[ 3.061141] usb_switch_ctrl: switch to hub
[ 3.300715] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 3.306090] usb_typec_power_ctrl: set typec vbus gpio to 0
[ 3.519352] hub 1-1:1.0: USB hub found
[ 3.570054] dwmmc_k3 ff3ff000.dwmmc2: fifo-depth property not found, using value of FIFOTH register as default
[ 3.577821] hub 1-1:1.0: 5 ports detected
[ 3.583267] dwmmc_k3 ff3ff000.dwmmc2: IDMAC supports 64-bit address mode.
[ 3.587985] hisi_hikey_usb hisi_hikey_usb: extcon_hisi_pd_set_role:set usb role to 0
[ 3.591859] dwmmc_k3 ff3ff000.dwmmc2: Using internal DMA controller.
[ 3.597276] usb_switch_ctrl: already switch to hub
[ 3.601015] dwmmc_k3 ff3ff000.dwmmc2: Version ID is 270a
[ 3.611026] usb_typec_power_ctrl: typec power no change
[ 3.615048] dwmmc_k3 ff3ff000.dwmmc2: DW MMC controller at irq 60,32 bit host data width,128 deep fifo
[ 3.660618] dwmmc_k3 ff3ff000.dwmmc2: Linked as a consumer to regulator.6
[ 3.667491] mmc_host mmc1: card is non-removable.
[ 3.764623] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 3.790475] input: keys as /devices/platform/keys/input/input0
[ 3.798532] rtc-efi rtc-efi: setting system clock to 1970-01-01 00:00:20 UTC (20)
[ 3.806898] ALSA device list:
[ 3.809897] No soundcards found.
[ 3.813775] uart-pl011 fff32000.serial: no DMA platform data
[ 3.819933] Freeing unused kernel memory: 1344K
[ 3.824478] dwmmc_k3 ff3ff000.dwmmc2: card claims to support voltages below defined range
[ 3.832739] Run /init as init process
Loading, please wait…
[ 3.850572] mmc_host mmc1: Bus speed (slot 0) = 25000000Hz (slot req 25000000Hz, actual 25000000HZ div = 0)
starting version 232
[ 3.861886] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 3.862788] random: udevadm: uninitialized urandom read (16 bytes read)
[ 3.863970] mmc1: new SDIO card at address 0001
[ 3.869821] random: systemd-udevd: uninitialized urandom read (16 bytes read)