Kernel stuck at "Deasserting all peripheral resets"

I have the following problem:

I have built an kernel from this repo. The u-boot loader works and tries to loader the image.

When starting the kernel, it stops outputting and seems not to progress.

It stucks at Deasserting all peripheral resets

This is the output:

U-Boot SPL 2021.07-dirty (Sep 13 2022 - 00:41:50 +0200)
Trying to boot from MMC1


U-Boot 2021.07-dirty (Sep 13 2022 - 00:41:50 +0200)

CPU:   Altera SoCFPGA Platform
FPGA:  Altera Cyclone V, SE/A6 or SX/C6 or ST/D6, version 0x0
BOOT:  SD/MMC Internal Transceiver (3.0V)
DRAM:  1 GiB
MMC:   dwmmc0@ff704000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Terasic DE10-Nano
Net:   eth0: ethernet@ff702000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
161 bytes read in 6 ms (25.4 KiB/s)
1:      Linux Default
Retrieving file: /extlinux/../zImage
5509488 bytes read in 278 ms (18.9 MiB/s)
append: root=/dev/mmcblk0p2 rw rootwait earlyprintk console=ttyS0,115200n8
Retrieving file: /extlinux/../socfpga_cyclone5_de10_nano.dtb
18553 bytes read in 8 ms (2.2 MiB/s)
Kernel image @ 0x1000000 [ 0x000000 - 0x541170 ]
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Device Tree to 09ff8000, end 09fff878 ... OK

Starting kernel ...

Deasserting all peripheral resets

Any help or tips how to debug such situation, would be welcomed :slight_smile:

Or if you have suggestions how to solve this problem

It seems to be due to the dtb. I used one for the de0-nano provided by the repo and got following error message:

Starting kernel ...

Deasserting all peripheral resets
data abort
pc : [<00115174>]          lr : [<00008060>]
reloc pc : [<c11931b4>]    lr : [<c10860a0>]
sp : 01542188  ip : abaaaa00     fp : 00dbcb80
r10: 00961000  r9 : 413fc090     r8 : 00000000
r7 : 1548ff4d  r6 : 00000040     r5 : 00c465ac  r4 : 00c462c4
r3 : 00000000  r2 : 09ff6000     r1 : 00000000  r0 : 00400000
Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
Code: e1a03826 e1a06c26 e20330f0 ea000006 (e797c004) 
Resetting CPU ...

I’m in the same boat as you are, except with a Stratix 10. I’m stuck at Deasserting all peripheral resets. Was the really a problem with the dtb? How did you end up fixing this?

GitHub - zangman/de10-nano: Absolute beginner's guide to the de10-nano I used the image provided by this repo :skull: I started yesteraday to work with de10 nano again. Maybe Ill try again some time later.

have you solved this problem? I believe it linked with dtb but don’t know why stucked…

btw, the error message is printed by u-boot,

drivers/reset/reset-socfpga.c
static int socfpga_reset_remove(struct udevice *dev)
{
struct socfpga_reset_data *data = dev_get_priv(dev);

    if (socfpga_reset_keep_enabled()) {
            puts("Deasserting all peripheral resets\n");
            writel(0, data->modrst_base + 4);

#if defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
writel(0, data->modrst_base + 8);
#endif
}

    return 0;

}