Reboot loop trying to boot off MicroSD

I have an experience where after flashing https://github.com/radxa-build/rock-5b/releases/download/rsdk-b5/rock-5b_bookworm_kde_b5.output.img.xz using BalenaEtcher, I get a reboot loop on the Rock5B with the following serial output.

Any idea why?

  • Oh I think I fixed it already: A top notch USB-C charger was used, but the USB-C PD negotiation must have failed.

Trying with one particular USB-C power bank instead, the system boots.

GROWROOT: NOCHANGE: partition 3 is size 124055519. it cannot be grown
  DDR 9fffbe1e78 cym 24/02/04-10:09:20,fwver: v1.16
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
Manufacturer ID:0x6
CH0 RX Vref:27.9%, TX Vref:25.8%,24.8%
CH1 RX Vref:27.5%, TX Vref:24.8%,24.8%
CH2 RX Vref:27.9%, TX Vref:24.8%,25.8%
CH3 RX Vref:25.8%, TX Vref:25.8%,26.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-682-g4ca8a8422:derrick.huang, fwver: v1.45
NOTICE:  BL31: Built : 10:11:21, Dec 27 2023
INFO:    spec: 0x1
INFO:    code: 0x88
INFO:    ext 32k is not valid
INFO:    ddr: stride-en 4CH
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO:    l3 cache partition cfg-0
INFO:    system boots from cpu-hwid-0
INFO:    disable memory repair
INFO:    idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO:    dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO:    dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO:    dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO:    dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO:    BL31: Initialising Exception Handling Framework
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
[    6.741393] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[    6.741411] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[    7.541754] fiq_debugger fiq_debugger.0: error -ENXIO: IRQ fiq not found
[    7.541771] fiq_debugger fiq_debugger.0: error -ENXIO: IRQ wakeup not found
[    7.541779] fiq_debugger_probe: could not install nmi irq handler
[    8.836655] rockchip-vop2 fdd90000.vop: error -ENODEV: _opp_set_regulators: no regulator (vop) found
[    8.836691] rockchip-vop2 fdd90000.vop: failed to set opp config
[    8.836701] rockchip-vop2 fdd90000.vop: failed to init opp info
[    8.836709] rockchip-vop2 fdd90000.vop: failed to init_opp_table
[    8.866058] rk806 spi2.0: no sleep-setting state
[    8.866077] rk806 spi2.0: no reset-setting pinctrl state
[    8.866086] rk806 spi2.0: no dvs-setting pinctrl state
[    8.923579] dw-apb-uart feb90000.serial: Failed to create device link (0x180) with 6-0051
[    8.933664] dw-apb-uart feb90000.serial: Failed to create device link (0x180) with 6-0051
[    8.947414] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    8.960920] debugfs: File 'Capture' in directory 'dapm' already present!
[    8.962038] debugfs: File 'Capture' in directory 'dapm' already present!
[    9.015871] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[    9.017349] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[    9.017365] rkvdec2_init:982: No niu aclk reset resource define
[    9.017378] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[    9.017387] rkvdec2_init:985: No niu hclk reset resource define
[    9.018313] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[    9.018325] rkvdec2_init:982: No niu aclk reset resource define
[    9.018336] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[    9.018345] rkvdec2_init:985: No niu hclk reset resource define
[    9.019238] mpp_rkvenc2 fdbd0000.rkvenc-core: rockchip_init_read_margin: no regulator (venc) found: -19
[    9.019535] mpp_rkvenc2 fdbd0000.rkvenc-core: error -ENODEV: _opp_set_regulators: no regulator (venc) found
[    9.019575] mpp_rkvenc2 fdbd0000.rkvenc-core: failed to set opp config
[    9.019586] mpp_rkvenc2 fdbd0000.rkvenc-core: failed to init opp info
[    9.019595] mpp_rkvenc2 fdbd0000.rkvenc-core: failed to init_opp_table
[    9.019604] rkvenc_init:1870: failed to add venc devfreq
[    9.020379] mpp_rkvenc2 fdbe0000.rkvenc-core: rockchip_init_read_margin: no regulator (venc) found: -19
[    9.020634] mpp_rkvenc2 fdbe0000.rkvenc-core: error -ENODEV: _opp_set_regulators: no regulator (venc) found
[    9.020657] mpp_rkvenc2 fdbe0000.rkvenc-core: failed to set opp config
[    9.020667] mpp_rkvenc2 fdbe0000.rkvenc-core: failed to init opp info
[    9.020676] mpp_rkvenc2 fdbe0000.rkvenc-core: failed to init_opp_table
[    9.020684] rkvenc_init:1870: failed to add venc devfreq
[    9.023773] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[    9.023785] rockchip-dmc dmc: failed to get vop pn to msch rl
[    9.029576] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
[    9.029610] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
[    9.029629] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
[    9.032927] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[    9.044887] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[    9.045386] debugfs: File 'uA_load' in directory '/' already present!
[    9.045400] debugfs: File 'min_uV' in directory '/' already present!
[    9.045413] debugfs: File 'max_uV' in directory '/' already present!
[    9.045425] debugfs: File 'constraint_flags' in directory '/' already present!
e[2Je[3Je[-1;-1fGROWROOT: NOCHANGE: partition 3 is size 124055519. it cannot be grown

When the Rock5B was running I did see this error.

Does it look to you like that the USB power bank had caused a problem, or what does this crash look like?

After this error the whole Rock5B system freezes and waits for hard power cycle.

# INFO:    BL31: v2.3():v2.3-682-g4ca8a8422:derrick.huang, fwver: v1.45
INFO:    enter: cfg=0x4, sleeptimes:1
INFO:    armoff_ddrpd
INFO:    io_ret (0x0)
INFO:    GPIO POWER INFO:
INFO:           not config

INFO:    GPIO0_INTEN: 0xffff 0xffff 0xfe7f 0xffff 0x0 0xc02f342d
INFO:    GPIO1_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0x98b8be60
INFO:    GPIO2_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xefc834
INFO:    GPIO3_INTEN: 0xffff 0xffff 0xefff 0xffff 0x0 0xd08fc630
INFO:    GPIO4_INTEN: 0xffff 0xffff 0xffff 0xffff 0x0 0xe09c3009
INFO:     IRQ_EN: 282
INFO:     IRQ_EN: 272
INFO:     IRQ_EN: 313
INFO:     IRQ_EN: 312
INFO:     IRQ_EN: 311
INFO:     IRQ_EN: 310
INFO:     IRQ_EN: 309
INFO:     IRQ_EN: 292
INFO:     IRQ_EN: 321
INFO:     IRQ_EN: 365

01INFO:    pmu_power_domains_suspend 1202 pd_st=0x2c5fffff repair_st=0xf8d00001 idle_st=0x1bffff qst=0x28000
2abcde3456789aINFO:    PMU1_PWR_CON(0x1) PMU1_CRU_PWR_CON(0x30) PMU1_WAKEUP_INT_CON(0x900)
PMU2_BUS_IDLE_ST(0x27fffff 0x0) PMU2_BUS_IDLE_ACK(0x27fffff 0x0) PMU2_PWR_GATE_ST(0x6fffffff 0x0)
PMU2_BUS_IDLE_CON(0x0 0xfd80 0xf007) PMU2_BIU_AUTO_CON(0xffff 0xffff 0x7)
PMU2_PWR_GATE_CON(0x0 0x9000 0x3)
PMU2_VOL_GATE_CON(0x7 0x0 0x3)
PMU2_QCHANNEL_PWR_CON(0x0) PMU2_QCHANNEL_STATUS(0xfe0007f)
PMU1_DDR_PWR_CON(0x747 0x747 0x747 0x747)
PMU1_DDR_PWR_SFTCON(0x900 0x900 0x900 0x900)
PMU1_PLLPD_CON(0xffff 0x3)
PMU2_PWR_CON1(0xfe)
PMU2_DSU_PWR_CON(0x3)
PMU2_CORE_PWR_CON0(0x1 0x1)
PMU2_CORE_AUTO_PWR_CON0(0x0 0x0)
PMU2_CLUSTER_IDLE_CON(0x75)
INFO:    PMU0_PWR_CON(0x0) PMU0_WAKEUP_INT_CON(0x0)
PMU0_DDR_RET_CON(0x0 0x0)
PMU1_GRF_SOC_CON2(0x7777) PMU0_GRF_OS_REGS9(0xd3214f6c)
9aS

It looks like the system suspended itself. You can try disabling it from system settings.

2 Likes

@RadxaYuntian Interesting, thanks for saying. Indeed this SBC should stay powered on always, never suspend.

This should be the normal case for all Rock5B:s.

Can I add a line to some sysctl file, what should I add?

Probably something like this: https://askubuntu.com/a/858617

1 Like