Rock Pi 4B Debian KDE not boot from NVMe

Hello everyone. Please help me with the following problem. I have a Rock Pi 4B v1.4 (RP4). I made NVMe bootable according to this instruction. I recorded Debian KDE image via BalenaEtcher on NVMe SSD (KingSpec 1TB). The system is not booting. I have tried several Debian images:

  1. rock-pi-4b_debian_bullseye_kde_b32
  2. rock-pi-4b_debian_bullseye_kde_b30
  3. rock-pi-4b_debian_bullseye_kde_b28

The result is the same - the system does not boot.
I’m using a power supply Baseus 65W GaN Pro (with PD).

What could be the problem and how to solve it?

UART Logs (some lines are skipped):
DDR Version 1.20 20190314
In
channel 0
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 400MHz 0,1
channel 0
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 800MHz 1,0
Channel 0: LPDDR4,800MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,800MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x40
ch 1 ddrconfig = 0x101, ddrsize = 0x40
pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD
OUT
Boot1: 2018-06-26, version: 1.14
CPUId = 0x0
ChipType = 0x10, 221
Spi_ChipId = b4016
SpiBootInit:0
mmc0:cmd8,32
mmc0:cmd5,32
mmc0:cmd55,32
mmc0:cmd1,32
mmc0:cmd8,32
mmc0:cmd5,32
mmc0:cmd55,32
mmc0:cmd1,32
mmc0:cmd8,32
mmc0:cmd5,32
mmc0:cmd55,32
mmc0:cmd1,32
SdmmcInit=0 1
StorageInit ok = 21715
SecureMode = 0
SecureInit ret = 0, SecureMode = 0
GPT vendor signature is wrong
LoadTrust Addr:0x1800
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 1000
Load OK, addr=0x200000, size=0xf1924
RunBL31 0x10000
NOTICE: BL31: v1.3(debug):0e7a845
NOTICE: BL31: Built : 16:13:46, Apr 17 2019
NOTICE: BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1181): pd status 3e
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot 2017.09-2700-g70b4cfe057 (Jun 05 2021 - 07:28:02 +0000), Build: jenkins-linux-build-release-604

Model: Radxa ROCK Pi 4B
PreSerial: 2
DRAM: 3.9 GiB
Relocation Offset is: f5bde000
Sysmem: init
I2c speed: 400000Hz
PMIC: RK808
vdd_center 900000 uV
vdd_cpu_l 900000 uV
MMC: dwmmc@fe320000: 1, sdhci@fe330000: 0
Using default environment

Model: Radxa ROCK Pi 4B
## Error: “rkimg_bootdev” not defined
Bootdev: mmc 1
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
[Vendor ERROR]:Invalid boot device type(0)
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
[Vendor ERROR]:Invalid boot device type(0)
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
rockchip_get_boot_mode: dev_desc is NULL!
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
init_resource_list: dev_desc is NULL!
Can’t find file:logo.bmp
failed to display uboot logo
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 24000 KHz, init 24000 KHz, kernel 0N/A)
aplll 816000 KHz
apllb 24000 KHz
dpll 800000 KHz
cpll 24000 KHz
gpll 800000 KHz
npll 600000 KHz
vpll 24000 KHz
aclk_perihp 133333 KHz
hclk_perihp 66666 KHz
pclk_perihp 33333 KHz
aclk_perilp0 266666 KHz
hclk_perilp0 88888 KHz
pclk_perilp0 44444 KHz
hclk_perilp1 100000 KHz
pclk_perilp1 50000 KHz
Net: eth0: ethernet@fe300000
Hit key to stop autoboot(‘CTRL+C’): 0
Here trying to boot from nvme
dcache off

Device 0: GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
Repair the backup gpt table OK!
Vendor: 0x1dbe Rev: 2.1.A.1S Prod: 0005304004328
Type: Hard Disk
Capacity: 976762.3 MB = 953.8 GB (2000409264 x 512)
… is now current device
Scanning nvme 0:2…
Found /boot/extlinux/extlinux.conf
pxefile_addr_str = 0x00500000
bootfile = /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1411 bytes read in 5 ms (275.4 KiB/s)
U-Boot menu
1: Debian GNU/Linux 11 (bullseye) 5.10.110-8-rockchip
2: Debian GNU/Linux 11 (bullseye) 5.10.110-8-rockchip (rescue target)
Enter choice: Retrieving file: /hw_intfc.conf
** File not found /hw_intfc.conf **
hw_conf.valid = 0
hw_conf.pwm0 = 2
hw_conf.pwm1 = 2
hw_conf.uart2 = 2
hw_conf.uart4 = 2
hw_conf.spi1 = 2
hw_conf.spi2 = 2
hw_conf.i2c2 = 2
hw_conf.i2c6 = 2
hw_conf.i2c7 = 2
hw_conf.dts_overlay_count = 0
1: Debian GNU/Linux 11 (bullseye) 5.10.110-8-rockchip
Retrieving file: /boot/initrd.img-5.10.110-8-rockchip
14279639 bytes read in 129 ms (105.6 MiB/s)
Retrieving file: /boot/vmlinuz-5.10.110-8-rockchip
28170752 bytes read in 250 ms (107.5 MiB/s)
append: root=UUID=42144245-5b54-455d-a53b-c3b9910baee3 quiet splash loglevel=4 rw earlycon consoleblank=0 console=tty0 console=ttyFIQ0,1500000n8 console=ttyAML0,115200n8 console=ttyS2,1500000n8 console=ttyS0,1500000n8 coherent_pool=2M irqchip.gicv3_pseudo_nmi=0 plymouth.ignore-serial-consoles cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
Retrieving file: /usr/lib/linux-image-5.10.110-8-rockchip/rockchip/rk3399-rock-pi-4b.dtb
99664 bytes read in 48 ms (2 MiB/s)
fdt addr 0000000008300000
fdt magic number edfe0dd0
fdt size 1048576
## Flattened Device Tree blob at 08300000
Booting using the fdt blob at 0x8300000
‘reserved-memory’ region@110000: addr=110000 size=f0000
Loading Ramdisk to e9026000, end e9dc43d7 … OK
Loading Device Tree to 00000000e8f23000, end 00000000e9025fff … OK
Adding bank: 0x00200000 - 0xf8000000 (size: 0xf7e00000)
Total: 23973.973 ms

Starting kernel …

[ 24.686234] ramoops ramoops: failed to locate DT /reserved-memory resource
[ 24.746374] fiq_debugger fiq_debugger.0: IRQ fiq not found
[ 24.746399] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[ 24.746415] fiq_debugger_probe: could not install nmi irq handler
[ 26.431534] rockchip-usb2phy ff770000.syscon:usb2-phy@e450: IRQ index 0 not found
[ 26.434522] rockchip-usb2phy ff770000.syscon:usb2-phy@e460: IRQ index 0 not found
[ 26.444065] rkvdec_init:1230: failed on clk_get clk_hevc_cabac
[ 26.444159] mpp_rkvdec ff660000.rkvdec: shared_video_hevc_cabac is not found!
[ 26.444175] rkvdec_init:1261: No hevc cabac reset resource define
[ 26.467116] rockchip-vop ff8f0000.vop: missing rockchip,grf property
[ 26.467409] rockchip-vop ff900000.vop: missing rockchip,grf property
[ 27.218049] no ATF memory for init
[ 27.230959] no ATF memory for init
[ 27.235416] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[ 27.537123] vcc_cam: failed to get the current voltage: -EPROBE_DEFER
[ 27.537948] vcc_mipi: failed to get the current voltage: -EPROBE_DEFER
[ 27.567538] vcc_sdio: unsupportable voltage range: 3300000-3000000uV
[ 27.572342] rockchip-dmc dmc: Failed to get ddr_leakage
[ 27.573127] rockchip-dmc dmc: Get wrong frequency, Request 856000000, Current 800000000
[ 27.573264] rockchip-dmc dmc: could not find power_model node
[ 27.573367] devfreq dmc: Couldn’t update frequency transition information.
[ 27.578730] rksfc_base v1.1 2016-01-08
[ 27.683761] Internal error: synchronous external abort: 96000210 [#1] SMP
[ 27.684592] Modules linked in:
[ 27.684981] CPU: 2 PID: 136 Comm: kworker/u12:2 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 27.685944] Hardware name: Radxa ROCK Pi 4B (DT)
[ 27.686503] Workqueue: events_unbound deferred_probe_work_func
[ 27.687203] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=–)
[ 27.687919] pc : rockchip_pcie_rd_conf+0x160/0x1b4
[ 27.688493] lr : rockchip_pcie_rd_conf+0x150/0x1b4
[ 27.689062] sp : ffff8000128b37c0
[ 27.689465] x29: ffff8000128b37c0 x28: 0000000000000001
[ 27.690105] x27: 0000000000000000 x26: 0000000000000000
[ 27.690744] x25: ffff8000110c9a6a x24: 0000000000000000
[ 27.691382] x23: ffff0000e92c1400 x22: 0000000000000000
[ 27.696570] x21: 0000000000000004 x20: ffff8000128b3844
[ 27.701668] x19: ffff800014100000 x18: 0000000000000000
[ 27.706801] x17: ffff800011141b40 x16: ffff800011141b40
[ 27.710967] mmc_host mmc2: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
[ 27.711899] x15: 000000000000000a x14: 0000000000000605
[ 27.722794] x13: ffffffffffffffff x12: ffffffffffffffff
[ 27.727914] x11: 0000000000000000 x10: ffff0000e9181a1c
[ 27.728445] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 270
[ 27.732939] x9 : ffff8000105bab78 x8 : 01001d8700000000
[ 27.732950] x7 : 000000000000ea60 x6 : ffff8000128b38f4
[ 27.743068] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[ 27.743147] x5 : 0000000000000000 x4 : 0000000000000000
[ 27.758266] x3 : 0000000000c00008 x2 : 000000000080000a
[ 27.763240] x1 : ffff800017c00008 x0 : ffff800014000000
[ 27.768268] Call trace:
[ 27.772926] rockchip_pcie_rd_conf+0x160/0x1b4
[ 27.777749] pci_bus_read_config_dword+0x84/0xdc
[ 27.782547] pci_bus_generic_read_dev_vendor_id+0x48/0x174
[ 27.787410] pci_bus_read_dev_vendor_id+0x74/0x7c
[ 27.792146] pci_scan_single_device+0x78/0xf0
[ 27.796787] pci_scan_slot+0x80/0xf4
[ 27.801278] pci_scan_child_bus_extend+0x74/0x300
[ 27.805823] pci_scan_bridge_extend+0x488/0x54c
[ 27.810274] pci_scan_child_bus_extend+0x2c4/0x300
[ 27.811441] rockchip-pm-domain ff310000.power-management:power-controller: Looking up sdioaudio-supply from device tree
[ 27.814684] pci_scan_child_bus+0x20/0x2c
[ 27.814693] pci_scan_root_bus_bridge+0x9c/0xd4
[ 27.814702] pci_host_probe+0x28/0xb0
[ 27.814715] rockchip_pcie_really_probe+0x150/0x164
[ 27.819986] rockchip-pm-domain ff310000.power-management:power-controller: Looking up sdioaudio-supply property in node /power-management@ff310000/power-controller failed
[ 27.824389] rockchip_pcie_probe+0x304/0x360
[ 27.824399] platform_drv_probe+0x60/0xb0
[ 27.824413] really_probe+0x2dc/0x46c
[ 27.861432] driver_probe_device+0x138/0x148
[ 27.866212] __device_attach_driver+0xd8/0x114
[ 27.871056] bus_for_each_drv+0xa4/0xcc
[ 27.875847] __device_attach+0xdc/0x170
[ 27.880622] device_initial_probe+0x20/0x2c
[ 27.885449] bus_probe_device+0x3c/0xa0
[ 27.890097] deferred_probe_work_func+0xe0/0xf4
[ 27.894690] process_one_work+0x1e0/0x298
[ 27.899217] process_scheduled_works+0x4c/0x50
[ 27.903778] worker_thread+0x1f8/0x27c
[ 27.908213] kthread+0xf8/0x108
[ 27.912494] ret_from_fork+0x10/0x30
[ 27.916814]
[ 27.916814] PC: 0xffff8000105bab88:
[ 27.924914] a988 11700023 11002063 32090042 8b234083 b9000062 d50332bf f9400400 11700021
[ 27.929774] a9a8 11003021 8b214001 b900003f 52800000 d50323bf d65f03c0 128002a0 17fffffd
[ 27.933683] usb 4-1: new full-speed USB device number 2 using ohci-platform
[ 27.934702] a9c8 d503245f aa1e03e9 d503201f d503233f a9be7bfd d2800003 910003fd a90153f3
[ 27.944640] a9e8 aa0003f4 2a0103f3 2a1303e0 f0ffd962 d0009941 91189042 9105e021 97ecbe88
[ 27.949801] aa08 f9401281 2a1303e0 97ecbbad 52800000 a94153f3 a8c27bfd d50323bf d65f03c0
[ 27.955035] aa28 d503245f aa1e03e9 d503201f d503233f a9bc7bfd 910003fd a90153f3 aa0403f4
[ 27.960323] aa48 a9025bf5 2a0303f5 53037c23 f9001bf7 f9400804 f9406817 b4000064 f9400885
[ 27.965670] aa68 b5000665 72001076 54000160 12800000 528010d6 b9000280 2a1603e0 a94153f3
[ 27.971118] aa88 a9425bf5 f9401bf7 a8c47bfd d50323bf d65f03c0 b50004c4 f94006e0 93407c42
[ 27.976630] aaa8 91600042 93407ea1 d1000421 8b020000 ea01001f 54000080 528010f6 b900029f
[ 27.982227] aac8 17ffffee 710012bf 54000101 b9400002 d50331bf 2a0203e0 ca000000 b5000000
[ 27.987886] aae8 b9000282 17ffffe5 71000abf 54000121 97ffff8a 12003c01 d50331bf 92403c00
[ 27.993448] ab08 ca000000 b5000000 b9000281 17ffffdb 710006bf 54fffd21 97ffff7c 12001c01
[ 27.998917] ab28 d50331bf 92401c00 17fffff6 b94142f6 350004f6 39438013 53111063 53140821
[ 28.004479] ab48 12002c42 2a020022 510006a0 2a135073 2a020273 6a13001f 54fffb01 f9400880
[ 28.010127] ab68 b50001e0 52800141 aa1703e0 94000969 710012bf 54000181 f94002e0 8b130013
[ 28.015844] ab88* b9400273 d50331bf 2a1303e0 ca000000 b5000000 b9000293 17ffffb8 52800161
[ 28.021448] aba8 17fffff2 71000abf 54000081 f94002e0 8b130000 17ffffcf 710006bf 54fff7e1
[ 28.026906] abc8 f94002e0 8b130000 17ffffd4 52800016 17ffffaa aa1e03e9 d503201f d503233f
[ 28.032416] abe8 8b214000 b9400000 d50331bf 2a0003e1 ca010021 b5000001 d50323bf d65f03c0
[ 28.037987] ac08 d503245f aa1e03e9 d503201f d503233f a9bb7bfd 910003fd a90153f3 9100c013
[ 28.043649] ac28 a9025bf5 a90363f7 a9046bf9 f9402416 f9400417 f9402ac0 f94066f9 b5000160
[ 28.049385] ac48 f94022c1 b4000081 aa1303e0 d63f0020 14000006 f9401ec1 aa1303e0 d63f0020
[ 28.055193] ac68 f9401ac1 b5ffff21 f94006e0 52800a01 f0005898 91031318 d280003a 97ffffd6
[ 28.061054] ac88 d3452014 35000194 f9402ac1 b4000321 aa1303e0 d63f0020 a94153f3 a9425bf5
[ 28.066989] aca8 a94363f7 a9446bf9 a8c57bfd d50323bf d65f03c0 5ac00295 5ac012b5 9ad52340
[ 28.073007] acc8 0a200294 f9406ae0 93407ea1 97ecc86c 34000060 97eca4d3 17ffffeb 2a1503e2
[ 28.079100] ace8 aa1803e1 aa1903e0 941da8e0 17ffffe6 f94026c1 17ffffe7 d503245f aa1e03e9
[ 28.085251] ad08 d503201f d503233f a9bd7bfd 52800901 910003fd a90153f3 91004014 f90013f5
[ 28.091481] ad28 f9403e93 f9400660 97ffffab 120c0415 f9400660 52800781 97ffffa7 714c02bf
[ 28.097810] ad48 54000081 12001401 7100403f 54000060 52800020 b9014260 f8548260 97ff728d
[ 28.104211] ad68 f8548260 97ff732a f9406a60 97eccb3b f9400660 52801a01 72a01401 97ffff96
[ 28.110688]
[ 28.110688] LR: 0xffff8000105bab78:
[ 28.122461] a978 8b234083 b900007f d50332bf f9400404 11700023 11002063 32090042 8b234083
[ 28.129165] a998 b9000062 d50332bf f9400400 11700021 11003021 8b214001 b900003f 52800000
[ 28.135848] a9b8 d50323bf d65f03c0 128002a0 17fffffd d503245f aa1e03e9 d503201f d503233f
[ 28.142537] a9d8 a9be7bfd d2800003 910003fd a90153f3 aa0003f4 2a0103f3 2a1303e0 f0ffd962
[ 28.147371] usb 4-1: New USB device found, idVendor=1a86, idProduct=e2e3, bcdDevice= 0.00
[ 28.149195] a9f8 d0009941 91189042 9105e021 97ecbe88 f9401281 2a1303e0 97ecbbad 52800000
[ 28.155904] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 28.162529] aa18 a94153f3 a8c27bfd d50323bf d65f03c0 d503245f aa1e03e9 d503201f d503233f
[ 28.169161] usb 4-1: Product: USB2IIC_CTP_CONTROL
[ 28.175854] aa38 a9bc7bfd 910003fd a90153f3 aa0403f4 a9025bf5 2a0303f5 53037c23 f9001bf7
[ 28.182273] usb 4-1: Manufacturer: wch.cn
[ 28.189018] aa58 f9400804 f9406817 b4000064 f9400885 b5000665 72001076 54000160 12800000
[ 28.202226] aa78 528010d6 b9000280 2a1603e0 a94153f3 a9425bf5 f9401bf7 a8c47bfd d50323bf
[ 28.209130] aa98 d65f03c0 b50004c4 f94006e0 93407c42 91600042 93407ea1 d1000421 8b020000
[ 28.210815] input: wch.cn USB2IIC_CTP_CONTROL as /devices/platform/fe3e0000.usb/usb4/4-1/4-1:1.0/0003:1A86:E2E3.0001/input/input0
[ 28.216018] aab8 ea01001f 54000080 528010f6 b900029f 17ffffee 710012bf 54000101 b9400002
[ 28.216048] aad8 d50331bf 2a0203e0 ca000000 b5000000 b9000282 17ffffe5 71000abf 54000121
[ 28.243855] aaf8 97ffff8a 12003c01 d50331bf 92403c00 ca000000 b5000000 b9000281 17ffffdb
[ 28.251006] ab18 710006bf 54fffd21 97ffff7c 12001c01 d50331bf 92401c00 17fffff6 b94142f6
[ 28.258172] ab38 350004f6 39438013 53111063 53140821 12002c42 2a020022 510006a0 2a135073
[ 28.265347] ab58 2a020273 6a13001f 54fffb01 f9400880 b50001e0 52800141 aa1703e0 94000969
[ 28.272523] ab78* 710012bf 54000181 f94002e0 8b130013 b9400273 d50331bf 2a1303e0 ca000000
[ 28.279690] ab98 b5000000 b9000293 17ffffb8 52800161 17fffff2 71000abf 54000081 f94002e0
[ 28.283846] input: wch.cn USB2IIC_CTP_CONTROL UNKNOWN as /devices/platform/fe3e0000.usb/usb4/4-1/4-1:1.0/0003:1A86:E2E3.0001/input/input1
[ 28.286859] abb8 8b130000 17ffffcf 710006bf 54fff7e1 f94002e0 8b130000 17ffffd4 52800016
[ 28.301658] hid-multitouch 0003:1A86:E2E3.0001: input,hiddev96,hidraw0: USB HID v1.00 Device [wch.cn USB2IIC_CTP_CONTROL] on usb-fe3e0000.usb-1/input0
[ 28.308546] abd8 17ffffaa aa1e03e9 d503201f d503233f 8b214000 b9400000 d50331bf 2a0003e1
[ 28.331203] abf8 ca010021 b5000001 d50323bf d65f03c0 d503245f aa1e03e9 d503201f d503233f
[ 28.338941] ac18 a9bb7bfd 910003fd a90153f3 9100c013 a9025bf5 a90363f7 a9046bf9 f9402416
[ 28.346664] ac38 f9400417 f9402ac0 f94066f9 b5000160 f94022c1 b4000081 aa1303e0 d63f0020
[ 28.354386] ac58 14000006 f9401ec1 aa1303e0 d63f0020 f9401ac1 b5ffff21 f94006e0 52800a01
[ 28.362082] ac78 f0005898 91031318 d280003a 97ffffd6 d3452014 35000194 f9402ac1 b4000321
[ 28.369749] ac98 aa1303e0 d63f0020 a94153f3 a9425bf5 a94363f7 a9446bf9 a8c57bfd d50323bf
[ 28.377537] acb8 d65f03c0 5ac00295 5ac012b5 9ad52340 0a200294 f9406ae0 93407ea1 97ecc86c
[ 28.385291] acd8 34000060 97eca4d3 17ffffeb 2a1503e2 aa1803e1 aa1903e0 941da8e0 17ffffe6
[ 28.393057] acf8 f94026c1 17ffffe7 d503245f aa1e03e9 d503201f d503233f a9bd7bfd 52800901
[ 28.400836] ad18 910003fd a90153f3 91004014 f90013f5 f9403e93 f9400660 97ffffab 120c0415
[ 28.408619] ad38 f9400660 52800781 97ffffa7 714c02bf 54000081 12001401 7100403f 54000060
[ 28.416371] ad58 52800020 b9014260 f8548260 97ff728d f8548260 97ff732a f9406a60 97eccb3b

[ 29.705804] X19: 0xffff800014100000:
[ 29.718085] fe00
[ 30.680355] vendor storage:20190527 ret = -1
[ 51.413686] random: crng init done
[ 88.236960] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 88.243285] rcu: 2-…0: (7 ticks this GP) idle=9b2/1/0x4000000000000000 softirq=38/38 fqs=6000
[ 88.249960] (detected by 0, t=18002 jiffies, g=-923, q=4)
[ 88.256276] Task dump for CPU 2:
[ 88.262298] task:kworker/u12:2 state:R running task stack: 0 pid: 136 ppid: 2 flags:0x0000002a
[ 88.269139] Workqueue: events_unbound deferred_probe_work_func
[ 88.275526] Call trace:
[ 88.281492] __switch_to+0xdc/0x148
[ 88.287509] pci_scan_single_device+0x78/0xf0
[ 88.293560] pci_scan_slot+0x80/0xf4
[ 88.299423] pci_scan_child_bus_extend+0x74/0x300
[ 88.305319] pci_scan_bridge_extend+0x488/0x54c
[ 88.311116] pci_scan_child_bus_extend+0x2c4/0x300
[ 88.316858] pci_scan_child_bus+0x20/0x2c
[ 88.322413] pci_scan_root_bus_bridge+0x9c/0xd4
[ 88.327942] pci_host_probe+0x28/0xb0
[ 88.333279] rockchip_pcie_really_probe+0x150/0x164
[ 88.338672] rockchip_pcie_probe+0x304/0x360
[ 88.343912] platform_drv_probe+0x60/0xb0
[ 88.349044] really_probe+0x2dc/0x46c
[ 88.354038] driver_probe_device+0x138/0x148
[ 88.359019] __device_attach_driver+0xd8/0x114
[ 88.363940] bus_for_each_drv+0xa4/0xcc
[ 88.368727] __device_attach+0xdc/0x170
[ 88.373422] device_initial_probe+0x20/0x2c
[ 88.378079] bus_probe_device+0x3c/0xa0
[ 88.382625] deferred_probe_work_func+0xe0/0xf4
[ 88.387167] process_one_work+0x1e0/0x298
[ 88.391574] process_scheduled_works+0x4c/0x50
[ 88.395936] worker_thread+0x1f8/0x27c
[ 88.400154] kthread+0xf8/0x108
[ 88.404201] ret_from_fork+0x10/0x30

[ 1888.403371] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 1888.407682] rcu: 2-…0: (7 ticks this GP) idle=9b2/1/0x4000000000000000 softirq=38/38 fqs=185883
[ 1888.412442] (detected by 0, t=558052 jiffies, g=-923, q=22)
[ 1888.416941] Task dump for CPU 2:
[ 1888.421218] task:kworker/u12:2 state:R running task stack: 0 pid: 136 ppid: 2 flags:0x0000002a
[ 1888.426339] Workqueue: events_unbound deferred_probe_work_func
[ 1888.430993] Call trace:
[ 1888.435186] __switch_to+0xdc/0x148
[ 1888.439445] pci_scan_single_device+0x78/0xf0
[ 1888.443693] pci_scan_slot+0x80/0xf4
[ 1888.447720] pci_scan_child_bus_extend+0x74/0x300
[ 1888.451819] pci_scan_bridge_extend+0x488/0x54c
[ 1888.455909] pci_scan_child_bus_extend+0x2c4/0x300
[ 1888.460014] pci_scan_child_bus+0x20/0x2c
[ 1888.464024] pci_scan_root_bus_bridge+0x9c/0xd4
[ 1888.468085] pci_host_probe+0x28/0xb0
[ 1888.472046] rockchip_pcie_really_probe+0x150/0x164
[ 1888.476168] rockchip_pcie_probe+0x304/0x360
[ 1888.480234] platform_drv_probe+0x60/0xb0
[ 1888.484293] really_probe+0x2dc/0x46c
[ 1888.488297] driver_probe_device+0x138/0x148
[ 1888.492345] __device_attach_driver+0xd8/0x114
[ 1888.496433] bus_for_each_drv+0xa4/0xcc
[ 1888.500458] __device_attach+0xdc/0x170
[ 1888.504487] device_initial_probe+0x20/0x2c
[ 1888.508557] bus_probe_device+0x3c/0xa0
[ 1888.512583] deferred_probe_work_func+0xe0/0xf4
[ 1888.516686] process_one_work+0x1e0/0x298
[ 1888.520745] process_scheduled_works+0x4c/0x50
[ 1888.524846] worker_thread+0x1f8/0x27c
[ 1888.528876] kthread+0xf8/0x108
[ 1888.532813] ret_from_fork+0x10/0x30

Wiki is deprecated. @Peter.Wang we need to do something.

For now please erase your SPI. Then boot your system from a microSD with out latest system. You can then reflash the SPI bootloader within rsetup. After it is finished you should be able to boot from NVMe SSD.

Do I really need to erase the SPI memory? It seems to me that it will boot from the SD card without erasing. I’m just afraid to touch the SPI memory once again, because this can lead to a breakdown. I tried the Manjaro image. It boots well with NVMe SSD. Only the official Debian image does not boot from NVMe.

I tried without erasing SPI memory and it worked. The Debian system (rock-pi-4b_debian_bullseye_kde_b32) booted from the SD card. However, in rsetup, there is no “Update SPI Bootloader” option in the “System Maintenance” section (see attachments). What to do?

You should do a full system upgrade if you do not see that option.

I performed a system update by selecting the “System update” option in the “System Maintenance” section of the rsetup. The system update was successful and the “Update SPI Bootloader” option appeared in the “System Maintenance” section. I started it, but the operation failed with the message “The updating process has failed. System might be broken!” (see attachments). After exiting the rsetup, there was a message in the terminal “/dev/mtd0 is missing.”. What to do?

I looked at the NVMe install article again. It says about SPI Flash. There it was necessary to edit the file /boot/hw_intfc.conf. I tried to do it, but it didn’t work out.

Then, I tried using rsetup. (“RSETUP”=>“Overlays”=>“Manage overlays”). The option “Enable spidev on SPI1” did not help, but the option “Enable JEDEC SPI NOR on SPI1” helped. The memory appeared in the list as:
$ ls /dev/mtd*
/dev/mtd0 /dev/mtd0ro /dev/mtdblock0




Next, I tried to launch the “Update SPI Bootloader” option in a new way. The process failed. There was a message in the terminal that the data did not match at some address. I tried to run the “Update SPI Bootloader” option again. The result is also unsuccessful, but only the data did not match at another address. I’ve tried it over 50 times, I think. Everything is unsuccessful. The address of the data that did not match changed, sometimes it coincided with previously received addresses.

After a reboot, the device (Rock Pi 4B) does not boot from anything.
UART log:
DDR Version 1.25 20210517
In
channel 0
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
256B stride
channel 0
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 1, cs 0, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x40
ch 1 ddrconfig = 0x101, ddrsize = 0x40
pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD
ddr_set_rate to 328MHZ
ddr_set_rate to 666MHZ
ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: Jun 3 2020 15:02:58, version: 1.26
CPUId = 0x0
ChipType = 0x10, 353
Spi_ChipId = b4016
no find rkpartition
SpiBootInit:0
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=30528MB
FwPartOffset=2000 , 0
StorageInit ok = 20408
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part: 0, name: config, start:0x8000, size:0x8000
GPT part: 1, name: rootfs, start:0x10000, size:0x3b8ffdf
no find partition:uboot.
Trust Addr:0x4000, 0x58334c42
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xfca20
RunBL31 0x40000 @ 159193 us
NOTICE: BL31: v1.3(release):845ee93
NOTICE: BL31: Built : 15:51:11, Jul 22 2020
NOTICE: BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1196): pd status 3e
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot latest-2023.10-8-eed05a18-geed05a18 (Jan 10 2024 - 03:43:24 +0000)

SoC: Rockchip rk3399
Reset cause: POR
Model: Radxa ROCK 4B
DRAM: 4 GiB (effective 3.9 GiB)
Device tree error at node ‘symbols
Some drivers failed to bind
initcall sequence 00000000f7fc5180 failed at call 00000000002257b4 (err=-11)
### ERROR ### Please RESET the board ###

Please help me

I managed to restore the functionality of my Rock Pi 4B board. I tried to restore the SPI bootloader according to this article and I succeeded. But there’s a link to the old SPI bootloaders. I want to try to flash the memory directly through the utility, because it doesn’t work through rsetup. Where can I download a new SPI bootloader image or how do I get it?

The forum works by sending notification only to direct reply or at reference, which is why I only saw the post now.

Currently we no longer provide separate SPI bootloader image, and rely on rsetup to be the official installation method, so I’ll keep your issue in the track. With that being said, when you run rsetup to install the bootloader, it creates a temporary SPI image first, which should be located under /tmp/spi.img. You can copy that file out and use it with rkdeveloptool.

The image is available only during the update process of the SPI bootloader. Located at the path /tmp/spi.img. I took it away and tried to download it via rkdeveloptool. I did it, but the system didn’t start. The UART messages are almost the same as they were after downloading via rsetup.

How long do you think it will take to fix the rsetup problem with SPI bootloader?


UART log:
DDR Version 1.25 20210517
In
channel 0
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
256B stride
channel 0
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 1
CS = 0
MR0=0xB8
MR4=0x1
MR5=0xFF
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0x0
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 1, cs 0, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x40
ch 1 ddrconfig = 0x101, ddrsize = 0x40
pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD
ddr_set_rate to 328MHZ
ddr_set_rate to 666MHZ
ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: Jun 3 2020 15:02:58, version: 1.26
CPUId = 0x0
ChipType = 0x10, 352
Spi_ChipId = b4016
no find rkpartition
SpiBootInit:0
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 22573
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x44
SecureInit read PBA: 0x84
SecureInit read PBA: 0xc4
SecureInit read PBA: 0x104
SecureInit read PBA: 0x144
SecureInit read PBA: 0x184
SecureInit read PBA: 0x1c4
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x33361f8 signature is wrong
recovery gpt…
GPT 0x33361f8 signature is wrong
recovery gpt fail!
Trust Addr:0x4000, 0xfcdc8c3b
Trust Addr:0x4400, 0x0
Trust Addr:0x4800, 0x0
Trust Addr:0x4c00, 0x0
Trust Addr:0x5000, 0x44414f4c
Trust Addr:0x5400, 0x94006a7c
Trust Addr:0x5800, 0x58334c42
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
hdr 000000000338d4e0 + 0x0:0x3b,0x8c,0xdc,0xfc,0xbe,0x9f,0x9d,0x51,0xeb,0x30,0x34,0xce,0x24,0x51,0x1f,0x98,

tag:LOADER error,addr:0x4000
hdr 000000000338d4e0 + 0x0:0x3b,0x8c,0xdc,0xfc,0xbe,0x9f,0x9d,0x51,0xeb,0x30,0x34,0xce,0x24,0x51,0x1f,0x98,

Load uboot, ReadLba = 2400
hdr 000000000338d4e0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

tag:LOADER error,addr:0x4400
hdr 000000000338d4e0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

Load uboot, ReadLba = 2800
hdr 000000000338d4e0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

tag:LOADER error,addr:0x4800
hdr 000000000338d4e0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

Load uboot, ReadLba = 2c00
hdr 000000000338d4e0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

tag:LOADER error,addr:0x4c00
hdr 000000000338d4e0 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

Load uboot, ReadLba = 3000
Load OK, addr=0x200000, size=0xfca20
RunBL31 0x40000 @ 2204629 us
NOTICE: BL31: v1.3(release):845ee93
NOTICE: BL31: Built : 15:51:11, Jul 22 2020
NOTICE: BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1196): pd status 3e
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot latest-2023.10-8-eed05a18-geed05a18 (Jan 10 2024 - 03:43:24 +0000)

SoC: Rockchip rk3399
Reset cause: POR
Model: Radxa ROCK 4B
DRAM: 4 GiB (effective 3.9 GiB)
Device tree error at node '__symbols__'
Some drivers failed to bind
initcall sequence 00000000f7fc5180 failed at call 00000000002257b4 (err=-11)
### ERROR ### Please RESET the board ###

I have already assigned @Nasca to investigate this issue. I cannot give an estimate since the cause of the issue is currently unknown.

Ok. Thanks. Just in case, I’ll attach a screenshot with information about my SPI memory. Maybe the memory does not have time to write a block of data because it is not consistent with its size.

Hi, @Delphist52
There are still some issues with the rock 4b u-boot, but here’s a bootable u-boot you can try:

sudo dpkg -i u-boot-2023-07-02-7
cd /usr/lib/u-boot/rock-4se/
sudo bash ./setup.sh update_bootloader /dev/mmcblk1

then, poweroff and remove sd/emmc and boot from nvme

Hi,@Nasca. I tried, but not successfully (see attachments). I did it for the first time and it’s like nothing has changed.


UART log:
DDR Version 1.20 20190314

OUT
Boot1: 2018-06-26, version: 1.14
CPUId = 0x0
ChipType = 0x10, 220
Spi_ChipId = b4016
SpiBootInit:0
mmc0:cmd8,32
mmc0:cmd5,32
mmc0:cmd55,32
mmc0:cmd1,32
mmc0:cmd8,32
mmc0:cmd5,32
mmc0:cmd55,32
mmc0:cmd1,32
mmc0:cmd8,32
mmc0:cmd5,32
mmc0:cmd55,32
mmc0:cmd1,32
SdmmcInit=0 1
StorageInit ok = 21700
SecureMode = 0
SecureInit ret = 0, SecureMode = 0
GPT vendor signature is wrong
LoadTrust Addr:0x1800
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 1000
Load OK, addr=0x200000, size=0xf1664
RunBL31 0x10000
NOTICE: BL31: v1.3(debug):0e7a845
NOTICE: BL31: Built : 16:13:46, Apr 17 2019
NOTICE: BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1181): pd status 3e
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot 2017.09-2697-ge41695afe3 (Dec 19 2020 - 04:46:31 +0000), Build: jenkins-linux-build-release-436

Model: Radxa ROCK Pi 4B
PreSerial: 2
DRAM: 3.9 GiB
Relocation Offset is: f5bde000
Sysmem: init
I2c speed: 400000Hz
PMIC: RK808
vdd_center 900000 uV
vdd_cpu_l 900000 uV
MMC: dwmmc@fe320000: 1, sdhci@fe330000: 0
Using default environment

Model: Radxa ROCK Pi 4B
## Error: “rkimg_bootdev” not defined
Bootdev: mmc 1
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
[Vendor ERROR]:Invalid boot device type(0)
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
[Vendor ERROR]:Invalid boot device type(0)
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
rockchip_get_boot_mode: dev_desc is NULL!
MMC: no card present
mmc_init: -123, time 0
rockchip_get_bootdev: can’t find dev_desc!
init_resource_list: dev_desc is NULL!
Can’t find file:logo.bmp
failed to display uboot logo
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 24000 KHz, init 24000 KHz, kernel 0N/A)
aplll 816000 KHz
apllb 24000 KHz
dpll 800000 KHz
cpll 24000 KHz
gpll 800000 KHz
npll 600000 KHz
vpll 24000 KHz
aclk_perihp 133333 KHz
hclk_perihp 66666 KHz
pclk_perihp 33333 KHz
aclk_perilp0 266666 KHz
hclk_perilp0 88888 KHz
pclk_perilp0 44444 KHz
hclk_perilp1 100000 KHz
pclk_perilp1 50000 KHz
Net: eth0: ethernet@fe300000
Hit key to stop autoboot(‘CTRL+C’): 0
Here trying to boot from nvme
dcache off

Device 0: Vendor: 0x1dbe Rev: 2.1.A.1S Prod: 0005304004328
Type: Hard Disk
Capacity: 976762.3 MB = 953.8 GB (2000409264 x 512)
… is now current device
Scanning nvme 0:2…
Found /boot/extlinux/extlinux.conf
pxefile_addr_str = 0x00500000
bootfile = /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1411 bytes read in 5 ms (275.4 KiB/s)
U-Boot menu
1: Debian GNU/Linux 11 (bullseye) 5.10.110-8-rockchip
2: Debian GNU/Linux 11 (bullseye) 5.10.110-8-rockchip (rescue target)
Enter choice: Retrieving file: /hw_intfc.conf
** File not found /hw_intfc.conf **
hw_conf.valid = 0
hw_conf.pwm0 = 2
hw_conf.pwm1 = 2
hw_conf.uart2 = 2
hw_conf.uart4 = 2
hw_conf.spi1 = 2
hw_conf.spi2 = 2
hw_conf.i2c2 = 2
hw_conf.i2c6 = 2
hw_conf.i2c7 = 2
hw_conf.dts_overlay_count = 0
1: Debian GNU/Linux 11 (bullseye) 5.10.110-8-rockchip
Retrieving file: /boot/initrd.img-5.10.110-8-rockchip
14279639 bytes read in 133 ms (102.4 MiB/s)
Retrieving file: /boot/vmlinuz-5.10.110-8-rockchip
28170752 bytes read in 261 ms (102.9 MiB/s)
append: root=UUID=42144245-5b54-455d-a53b-c3b9910baee3 quiet splash loglevel=4 rw earlycon consoleblank=0 console=tty0 console=ttyFIQ0,1500000n8 console=ttyAML0,115200n8 console=ttyS2,1500000n8 console=ttyS0,1500000n8 coherent_pool=2M irqchip.gicv3_pseudo_nmi=0 plymouth.ignore-serial-consoles cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
Retrieving file: /usr/lib/linux-image-5.10.110-8-rockchip/rockchip/rk3399-rock-pi-4b.dtb
99664 bytes read in 55 ms (1.7 MiB/s)
fdt addr 0000000008300000
fdt magic number edfe0dd0
fdt size 1048576
## Flattened Device Tree blob at 08300000
Booting using the fdt blob at 0x8300000
‘reserved-memory’ region@110000: addr=110000 size=f0000
Loading Ramdisk to e9026000, end e9dc43d7 … OK
Loading Device Tree to 00000000e8f23000, end 00000000e9025fff … OK
Adding bank: 0x00200000 - 0xf8000000 (size: 0xf7e00000)
Total: 18943.173 ms

Starting kernel …

[ 19.655522] ramoops ramoops: failed to locate DT /reserved-memory resource
[ 19.715602] fiq_debugger fiq_debugger.0: IRQ fiq not found
[ 19.715627] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[ 19.715643] fiq_debugger_probe: could not install nmi irq handler
[ 21.400929] rockchip-usb2phy ff770000.syscon:usb2-phy@e450: IRQ index 0 not found
[ 21.403902] rockchip-usb2phy ff770000.syscon:usb2-phy@e460: IRQ index 0 not found
[ 21.413351] rkvdec_init:1230: failed on clk_get clk_hevc_cabac
[ 21.413444] mpp_rkvdec ff660000.rkvdec: shared_video_hevc_cabac is not found!
[ 21.413460] rkvdec_init:1261: No hevc cabac reset resource define
[ 21.436359] rockchip-vop ff8f0000.vop: missing rockchip,grf property
[ 21.436654] rockchip-vop ff900000.vop: missing rockchip,grf property
[ 22.185404] no ATF memory for init
[ 22.198291] no ATF memory for init
[ 22.202740] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[ 22.506429] vcc_cam: failed to get the current voltage: -EPROBE_DEFER
[ 22.507256] vcc_mipi: failed to get the current voltage: -EPROBE_DEFER
[ 22.536797] vcc_sdio: unsupportable voltage range: 3300000-3000000uV
[ 22.541638] rockchip-dmc dmc: Failed to get ddr_leakage
[ 22.542419] rockchip-dmc dmc: Get wrong frequency, Request 856000000, Current 800000000
[ 22.542555] rockchip-dmc dmc: could not find power_model node
[ 22.542659] devfreq dmc: Couldn’t update frequency transition information.
[ 22.547862] rksfc_base v1.1 2016-01-08
[ 22.646892] SError Interrupt on CPU5, code 0xbf000002 – SError
[ 22.646896] CPU: 5 PID: 136 Comm: kworker/u12:2 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 22.646899] Hardware name: Radxa ROCK Pi 4B (DT)
[ 22.646902] Workqueue: events_unbound deferred_probe_work_func
[ 22.646906] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=–)
[ 22.646909] pc : rockchip_pcie_rd_conf+0x164/0x1b4
[ 22.646911] lr : rockchip_pcie_rd_conf+0x150/0x1b4
[ 22.646913] sp : ffff8000128ab7c0
[ 22.646916] x29: ffff8000128ab7c0 x28: 0000000000000001
[ 22.646921] x27: 0000000000000000 x26: 0000000000000000
[ 22.646927] x25: ffff8000110c9a6a x24: 0000000000000000
[ 22.646932] x23: ffff0000e901f400 x22: 0000000000000000
[ 22.646937] x21: 0000000000000004 x20: ffff8000128ab844
[ 22.646943] x19: 0000000000000000 x18: 0000000000000000
[ 22.646948] x17: 0000000000000000 x16: 0000000000000000
[ 22.646953] x15: 000000000000000a x14: 0000000000000605
[ 22.646958] x13: ffffffffffffffff x12: ffffffffffffffff
[ 22.646964] x11: 0000000000000000 x10: ffff0000e90daa1c
[ 22.646969] x9 : ffff8000105bab78 x8 : 01001d8700000000
[ 22.646974] x7 : 000000000000ea60 x6 : ffff8000128ab8f4
[ 22.646980] x5 : 0000000000000000 x4 : 0000000000000000
[ 22.646985] x3 : 0000000000c00008 x2 : 000000000080000a
[ 22.646990] x1 : ffff800017c00008 x0 : ffff800014000000
[ 22.646996] Kernel panic - not syncing: Asynchronous SError Interrupt
[ 22.646999] CPU: 5 PID: 136 Comm: kworker/u12:2 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 22.647002] Hardware name: Radxa ROCK Pi 4B (DT)
[ 22.647004] Workqueue: events_unbound deferred_probe_work_func
[ 22.647008] Call trace:
[ 22.647010] dump_backtrace+0x0/0x1b4
[ 22.647012] show_stack+0x24/0x30
[ 22.647014] dump_stack_lvl+0xc8/0xf8
[ 22.647016] dump_stack+0x18/0x34
[ 22.647018] panic+0x170/0x354
[ 22.647020] nmi_panic+0x7c/0xa0
[ 22.647022] arm64_serror_panic+0x7c/0x88
[ 22.647024] do_serror+0x2c/0x68
[ 22.647026] el1_error+0x90/0x110
[ 22.647028] rockchip_pcie_rd_conf+0x164/0x1b4
[ 22.647031] pci_bus_read_config_dword+0x84/0xdc
[ 22.647033] pci_bus_generic_read_dev_vendor_id+0x48/0x174
[ 22.647035] pci_bus_read_dev_vendor_id+0x74/0x7c
[ 22.647038] pci_scan_single_device+0x78/0xf0
[ 22.647040] pci_scan_slot+0x80/0xf4
[ 22.647042] pci_scan_child_bus_extend+0x74/0x300
[ 22.647045] pci_scan_bridge_extend+0x488/0x54c
[ 22.647047] pci_scan_child_bus_extend+0x2c4/0x300
[ 22.647049] pci_scan_child_bus+0x20/0x2c
[ 22.647051] pci_scan_root_bus_bridge+0x9c/0xd4
[ 22.647053] pci_host_probe+0x28/0xb0
[ 22.647056] rockchip_pcie_really_probe+0x150/0x164
[ 22.647058] rockchip_pcie_probe+0x304/0x360
[ 22.647060] platform_drv_probe+0x60/0xb0
[ 22.647063] really_probe+0x2dc/0x46c
[ 22.647065] driver_probe_device+0x138/0x148
[ 22.647067] __device_attach_driver+0xd8/0x114
[ 22.647070] bus_for_each_drv+0xa4/0xcc
[ 22.647071] __device_attach+0xdc/0x170
[ 22.647074] device_initial_probe+0x20/0x2c
[ 22.647076] bus_probe_device+0x3c/0xa0
[ 22.647078] deferred_probe_work_func+0xe0/0xf4
[ 22.647081] process_one_work+0x1e0/0x298
[ 22.647083] process_scheduled_works+0x4c/0x50
[ 22.647085] worker_thread+0x1f8/0x27c
[ 22.647087] kthread+0xf8/0x108
[ 22.647089] ret_from_fork+0x10/0x30
[ 22.647165] CPU0: stopping
[ 22.647182] CPU4: stopping
[ 22.647188] CPU1: stopping
[ 22.647201] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 22.647206] CPU2: stopping
[ 22.647208] Hardware name: Radxa ROCK Pi 4B (DT)
[ 22.647213] CPU3: stopping
[ 22.647215] Call trace:
[ 22.647229] dump_backtrace+0x0/0x1b4
[ 22.647237] show_stack+0x24/0x30
[ 22.647246] dump_stack_lvl+0xc8/0xf8
[ 22.647252] dump_stack+0x18/0x34
[ 22.647262] local_cpu_stop+0x4c/0x6c
[ 22.647269] ipi_handler+0x1b4/0x208
[ 22.647280] handle_percpu_devid_fasteoi_ipi+0x6c/0x90
[ 22.647290] generic_handle_irq_desc+0x14/0x20
[ 22.647298] __handle_domain_irq+0xc4/0xcc
[ 22.647306] gic_handle_irq+0x2bc/0x30c
[ 22.647313] el1_irq+0xcc/0x180
[ 22.647324] arch_local_irq_enable+0xc/0x28
[ 22.647332] cpuidle_enter+0x44/0x5c
[ 22.647341] do_idle+0x23c/0x260
[ 22.647348] cpu_startup_entry+0x30/0x48
[ 22.647356] secondary_start_kernel+0x1e0/0x1f4
[ 22.647367] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 22.647371] Hardware name: Radxa ROCK Pi 4B (DT)
[ 22.647375] Call trace:
[ 22.647385] dump_backtrace+0x0/0x1b4
[ 22.647394] show_stack+0x24/0x30
[ 22.647402] dump_stack_lvl+0xc8/0xf8
[ 22.647409] dump_stack+0x18/0x34
[ 22.647417] local_cpu_stop+0x4c/0x6c
[ 22.647424] ipi_handler+0x1b4/0x208
[ 22.647433] handle_percpu_devid_fasteoi_ipi+0x6c/0x90
[ 22.647441] generic_handle_irq_desc+0x14/0x20
[ 22.647450] __handle_domain_irq+0xc4/0xcc
[ 22.647457] gic_handle_irq+0x2bc/0x30c
[ 22.647463] el1_irq+0xcc/0x180
[ 22.647472] arch_local_irq_enable+0xc/0x28
[ 22.647481] cpuidle_enter+0x44/0x5c
[ 22.647488] do_idle+0x23c/0x260
[ 22.647495] cpu_startup_entry+0x30/0x48
[ 22.647503] secondary_start_kernel+0x1e0/0x1f4
[ 22.647514] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 22.647518] Hardware name: Radxa ROCK Pi 4B (DT)
[ 22.647521] Call trace:
[ 22.647530] dump_backtrace+0x0/0x1b4
[ 22.647537] show_stack+0x24/0x30
[ 22.647545] dump_stack_lvl+0xc8/0xf8
[ 22.647552] dump_stack+0x18/0x34
[ 22.647559] local_cpu_stop+0x4c/0x6c
[ 22.647566] ipi_handler+0x1b4/0x208
[ 22.647575] handle_percpu_devid_fasteoi_ipi+0x6c/0x90
[ 22.647584] generic_handle_irq_desc+0x14/0x20
[ 22.647592] __handle_domain_irq+0xc4/0xcc
[ 22.647599] gic_handle_irq+0x2bc/0x30c
[ 22.647606] el1_irq+0xcc/0x180
[ 22.647614] arch_local_irq_enable+0xc/0x28
[ 22.647623] cpuidle_enter+0x44/0x5c
[ 22.647630] do_idle+0x23c/0x260
[ 22.647638] cpu_startup_entry+0x30/0x48
[ 22.647645] secondary_start_kernel+0x1e0/0x1f4
[ 22.647889] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 23.065387] Hardware name: Radxa ROCK Pi 4B (DT)
[ 23.069026] Call trace:
[ 23.072455] dump_backtrace+0x0/0x1b4
[ 23.076036] show_stack+0x24/0x30
[ 23.079607] dump_stack_lvl+0xc8/0xf8
[ 23.083207] dump_stack+0x18/0x34
[ 23.086749] local_cpu_stop+0x4c/0x6c
[ 23.090293] ipi_handler+0x1b4/0x208
[ 23.093804] handle_percpu_devid_fasteoi_ipi+0x6c/0x90
[ 23.097510] generic_handle_irq_desc+0x14/0x20
[ 23.101172] __handle_domain_irq+0xc4/0xcc
[ 23.104824] gic_handle_irq+0x2bc/0x30c
[ 23.108446] el1_irq+0xcc/0x180
[ 23.111981] arch_local_irq_enable+0xc/0x28
[ 23.115671] cpuidle_enter+0x44/0x5c
[ 23.119305] do_idle+0x23c/0x260
[ 23.122872] cpu_startup_entry+0x30/0x48
[ 23.126419] rest_init+0xd4/0xe8
[ 23.129796] arch_call_rest_init+0x1c/0x28
[ 23.133274] start_kernel+0x5a0/0x5d8
[ 23.136711] CPU: 4 PID: 0 Comm: swapper/4 Not tainted 5.10.110-8-rockchip #f9d1b1529
[ 23.138870] Hardware name: Radxa ROCK Pi 4B (DT)
[ 23.140768] Call trace:
[ 23.142483] dump_backtrace+0x0/0x1b4
[ 23.144317] show_stack+0x24/0x30
[ 23.146124] dump_stack_lvl+0xc8/0xf8
[ 23.147940] dump_stack+0x18/0x34
[ 23.149707] local_cpu_stop+0x4c/0x6c
[ 23.151493] ipi_handler+0x1b4/0x208
[ 23.153271] handle_percpu_devid_fasteoi_ipi+0x6c/0x90
[ 23.155221] generic_handle_irq_desc+0x14/0x20
[ 23.157114] __handle_domain_irq+0xc4/0xcc
[ 23.158970] gic_handle_irq+0x2bc/0x30c
[ 23.160811] el1_irq+0xcc/0x180
[ 23.162596] arch_local_irq_enable+0xc/0x28
[ 23.164482] cpuidle_enter+0x44/0x5c
[ 23.166276] do_idle+0x23c/0x260
[ 23.167975] cpu_startup_entry+0x30/0x48
[ 23.169734] secondary_start_kernel+0x1e0/0x1f4
[ 23.172140] rockchip-dmc dmc: cur_freq: 800000000 Hz, volt: 902000 uV
[ 23.174198] SMP: stopping secondary CPUs
[ 23.174200] CRU:
[ 23.174203] 00000000: 00000044 00001201 8000031f 00000108 00000007 00007f00 00000000 00000000
[ 23.174206] 00000020: 00000044 00001201 80000000 00000108 00000007 00007f00 00000000 00000000
[ 23.174209] 00000040: 00000064 00001301 8000031f 00000108 00000007 00007f00 00000000 00000000
[ 23.174213] 00000060: 000000c0 00001302 8000031f 00000008 00000007 00007f00 00000000 00000000
[ 23.174216] 00000080: 00000064 00001301 8000031f 00000108 00000007 00007f00 00000000 00000000
[ 23.174219] 000000a0: 0000004b 00001301 8000031f 00000108 00000007 00007f00 00000000 00000000
[ 23.174223] 000000c0: 00000071 00006303 80100000 00000100 00000007 00007f00 00000000 00000000
[ 23.174226] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174229] 00000100: 00000100 00000701 00000140 00006404 00000083 00008580 00008320 00000141
[ 23.174233] 00000120: 00000181 00008181 00000141 00000141 00004141 00008343 00003185 0000041d
[ 23.174236] 00000140: 0000041d 00000300 00004a87 0000033f 00009381 00008387 00001103 00005282
[ 23.174239] 00000160: 00008247 00000187 00001743 0000001f 00000300 00000300 00000300 00000000
[ 23.174242] 00000180: 00006300 00001200 00000200 00000200 00000200 00000200 00003f3f 00000081
[ 23.174246] 000001a0: 00000000 00000000 00004141 00000421 00008700 000002dc 00000004 00000381
[ 23.174249] 000001c0: 00000381 00000000 00000003 00000087 00000087 00000141 00000141 00008181
[ 23.174252] 000001e0: 00008323 00000007 00008f1f 00008f8f 00008f8f 00008783 00008787 00008787
[ 23.174255] 00000200: 000000cf 000000cf 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174258] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174262] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174265] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174269] 00000280: 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60 0bb8ea60
[ 23.174272] 000002a0: 0bb8ea60 0bb8ea60 00010014 00010014 00000000 00000000 00000000 00000000
[ 23.174275] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174278] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174281] 00000300: 00000000 00000000 00000000 00000000 00000430 00000000 00000000 00000000
[ 23.174285] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174288] 00000340: 00000505 00000505 00000000 00000000 00000000 00000000 00004041 00000000
[ 23.174291] 00000360: 00000000 00000020 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174294] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174298] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174301] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174304] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174307] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174310] 00000420: 00000000 00004040 00000000 00000014 00000000 00000000 00000000 00000000
[ 23.174314] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174317] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174320] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174324] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174326] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174330] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174333] 00000500: 00000000 00000000 00640064 00000000 00000003 00000000 00000000 00000000
[ 23.174336] 00000520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174340] 00000540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174343] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174345] 00000580: 00000002 00000000 00000002 00000000 00000004
[ 23.174347] PMU CRU:
[ 23.174351] 00000000: 000000a9 00001203 80000000 00000108 00000007 00007f00 00000000 00000000
[ 23.174354] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174357] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174360] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174363] 00000080: 0000800d 00001986 00000303 00000003 000002dc 00000200 0bb8ea60 00010014
[ 23.174367] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174370] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174373] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174376] 00000100: 00000300 00000080 0000000f 00000000 00000024 00000000 00000000 00000000
[ 23.174379] 00000120: 00000000 00000000 00000000 00000000 00000003
[ 23.174381] PMU:
[ 23.174384] 00000000: 00000000 00000000 00000000 00000000 00000000 000d0000 000d0000 00000000
[ 23.174387] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174390] 00000040: 00000000 00000000 00000000 00000000 00000000 000f033f 00000000 00000000
[ 23.174394] 00000060: 00000068 00000068 00000068 00000010 00000000 00007e00 00000000 2880121c
[ 23.174397] 00000080: 000003c0 00011940 00005dc0 000003c0 00005dc0 00000060 0000000f 00000018
[ 23.174400] 000000a0: 00000018 00000018 00000018 00000018 00000018 00005dc0 00005dc0 00005dc0
[ 23.174403] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 3fffffff 00000000
[ 23.174406] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174409] Kernel Offset: disabled
[ 23.174411] CPU features: 0x000,40240022,6100200c
[ 23.174413] Memory Limit: none
[ 23.174415] THERMAL REGS:
[ 23.174418] 00000000: 00000200 00030133 00000031 00000002 00000000 00000000 00000000 00000000
[ 23.174422] 00000020: 0000020f 0000020d 00000000 00000000 0000024e 00000000 00000000 00000000
[ 23.174425] 00000040: 00000279 00000279 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.174428] 00000060: 00000004 00000004 00000753 00000753 00000000 00000000 00000000 00000000
[ 23.174430] 00000080: 00000000 00000000

The second time I tried to change /dev/mmcblk1 to /dev/mtd0, but it didn’t help. I did it again with /dev/mmcblk1 and after rebooting, there was no logging in the UART at all and, accordingly, nothing was loaded. I had to restore it through rkdeveloptool.

You should use sudo ./setup.sh update_spinor /dev/mtd0 subcommand instead of update_bootloader, since SPI flash is a different storage media compared to MMC flash.

I have reproduced the RESET error. Currently looking for a fix.

BTW SPI flash has limited write cycles, so that might be why you are getting those write errors. I have a few samples with the same issue, and I’ll ask the repair department to replace the SPI for me to make sure that is the cause.

Ok. Understood

Of course, I’ve tried it many times, but not more than a hundred. The memory resource is from 1000 times. And when I first tried to load the memory, it was programmed no more than 10 times. Defective memory? But it is programmed well through rkdeveloptool.