Rock 5B fails to boot

I tried all the official images, the output is always the same on UART:

DDR Version V1.08 7
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS=1 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS=1 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS=1 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS=1 Die BW=16 Size=2048MB
Manufacturer ID:0xff 
ch:1 dq0 fail,write:0x1,read:0x0
ch:1 dq1 fail,write:0x2,read:0x4
ch:1 dq2 fail,write:0x4,read:0x8
ch:1 dq3 fail,write:0x8,read:0x10
ch:1 dq4 fail,write:0x10,read:0x20
ch:1 dq5 fail,write:0x20,read:0x40
ch:1 dq6 fail,write:0x40,read:0x80
ch:1 dq7 fail,write:0x80,read:0x0
ch:1 dq8 fail,write:0x100,read:0x200
ch:1 dq9 fail,write:0x200,read:0x400
ch:1 dq10 fail,write:0x400,read:0x800
ch:1 dq11 fail,write:0x800,read:0x1000
ch:1 dq12 fail,write:0x1000,read:0x2000
ch:1 dq13 fail,write:0x2000,read:0x4000
ch:1 dq14 fail,write:0x4000,read:0x8000
ch:1 dq15 fail,write:0x8000,read:0x0
ch:1 dq0 fail,write:0xfffffffe,read:0xfffdfffd
ch:1 dq1 fail,write:0xfffffffd,read:0xfffdfff9
ch:1 dq2 fail,write:0xfffffffb,read:0xfffdfff5
ch:1 dq3 fail,write:0xfffffff7,read:0xfffdffed
ch:1 dq4 fail,write:0xffffffef,read:0xfffdffdd
ch:1 dq5 fail,write:0xffffffdf,read:0xfffdffbd
ch:1 dq6 fail,write:0xffffffbf,read:0xfffdff7d
ch:1 dq7 fail,write:0xffffff7f,read:0x0
ch:1 dq8 fail,write:0xfffffeff,read:0xfffdfdfd
ch:1 dq9 fail,write:0xfffffdff,read:0xfffdfbfd
ch:1 dq10 fail,write:0xfffffbff,read:0xfffdf7fd
ch:1 dq11 fail,write:0xfffff7ff,read:0xfffdeffd
ch:1 dq12 fail,write:0xffffefff,read:0xfffddffd
ch:1 dq13 fail,write:0xffffdfff,read:0xfffdbffd
ch:1 dq14 fail,write:0xffffbfff,read:0xfffd7ffd
ch:1 dq15 fail,write:0xffff7fff,read:0x0
error
ERR

can you provide exact command that you use to connect with UART?

      $ sudo minicom -D /dev/ttyUSB0

Then I configure minicom for 1500000 baudrate 8-N-1 no hardware flow control
But the UART is working fine, otherwise I would not see the log output

Is this likely to be a hardware problem?
I did not manage to fix it, no matter what image I flash.

This does look like a memory training failure, which usually means hardware problem. Please contact Allnet again to proceed with your RMA.

Hi,

After RMA we got what seems the same unit reworked.
Now the unit boots to a login on Radxa debian official image, but the HDMI doesn’t work.
Please let us know how to proceed.
This is the serial output (binary dump follows but I removed it):

[ 73.312961] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdptx phy pll can’t lock!
[ 73.313047] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdmi phy pll init failed
[ 73.313217] rockchip-vop2 fdd90000.vop: [drm:vop2_initial] ERROR failed to enable dcl2
[ 73.363745] rockchip-vop2 fdd90000.vop: [drm:vop2_wait_for_fs_by_done_bit_status] *ERRO0
[ 73.364430] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdptx phy pll can’t lock!
[ 73.364438] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdmi phy pll init failed
[ 73.364452] dwhdmi-rockchip fde80000.hdmi: [drm:dw_hdmi_link_clk_set] ERROR failed to2
[ 73.364492] Internal error: synchronous external abort: 96000010 [#1] SMP
[ 73.368585] Modules linked in: bnep usb_f_ecm u_ether hci_uart btqca btrtl btbcm btinte)
[ 73.373671] CPU: 1 PID: 868 Comm: Xorg Tainted: G W O 5.10.110-15-rockchipd
[ 73.374458] Hardware name: Radxa ROCK 5B (DT)
[ 73.374847] pstate: 20400089 (nzCv daIf +PAN -UAO -TCO BTYPE=–)
[ 73.375380] pc : regmap_mmio_read32le+0x18/0x34
[ 73.375788] lr : regmap_mmio_read+0x48/0x84
[ 73.376163] sp : ffff80001670b760
[ 73.376461] x29: ffff80001670b760 x28: 0000000008d9ee20
[ 73.376935] x27: ffff0001047e0c20 x26: ffff0001047e8880
[ 73.377409] x25: 0000000000000000 x24: 0000000000000001
[ 73.377883] x23: 0000000000000000 x22: ffff80001670b834
[ 73.378360] x21: ffff80001670b834 x20: 00000000000008e0
[ 73.378835] x19: ffff000100eee200 x18: 0000000000000000
[ 73.379310] x17: 0000000000000000 x16: 0000000000000000
[ 73.379785] x15: 000000000000000a x14: 0000000000000000
[ 73.380260] x13: 00696d64682e3030 x12: 3030386564663a6d
[ 73.380734] x11: 726f6674616c702b x10: 0000000000000000
[ 73.381208] x9 : ffff80001075f268 x8 : 3030303030353834
[ 73.381682] x7 : 0000000000000001 x6 : 0000000000000000
[ 73.382156] x5 : 0000000000000000 x4 : 0000000000000000
[ 73.382631] x3 : ffff80001075f220 x2 : ffff80001075f084
[ 73.383106] x1 : 00000000000008e0 x0 : ffff800012b608e0
[ 73.383583] Call trace:
[ 73.383810] regmap_mmio_read32le+0x18/0x34
[ 73.384189] _regmap_bus_reg_read+0x24/0x30
[ 73.384564] _regmap_read+0xbc/0x138
[ 73.384885] _regmap_update_bits+0xc0/0x104
[ 73.385261] regmap_update_bits_base+0x70/0xa0
[ 73.385662] hdmi_modb+0x38/0x44
[ 73.385951] dw_hdmi_qp_bridge_atomic_enable+0x330/0x1068
[ 73.386439] drm_atomic_bridge_chain_enable+0xa4/0xac
[ 73.386894] drm_atomic_helper_commit_modeset_enables+0x1b0/0x22c
[ 73.387437] rockchip_drm_atomic_helper_commit_tail_rpm+0x60/0x144
[ 73.387986] commit_tail+0x80/0x108
[ 73.388297] drm_atomic_helper_commit+0x118/0x11c
[ 73.388717] drm_atomic_commit+0x58/0x68
[ 73.389071] drm_atomic_helper_set_config+0x70/0x9c
[ 73.389501] drm_mode_setcrtc+0x390/0x580
[ 73.389869] drm_ioctl_kernel+0xb0/0x104
[ 73.390223] drm_ioctl+0x2fc/0x348
[ 73.390539] vfs_ioctl+0x34/0x54
[ 73.390831] __arm64_sys_ioctl+0x84/0xb8
[ 73.391192] el0_svc_common.constprop.0+0x13c/0x1ec
[ 73.391620] do_el0_svc+0x8c/0x98
[ 73.391927] el0_svc+0x20/0x30
[ 73.392205] el0_sync_handler+0x144/0x1f0
[ 73.392572] el0_sync+0x1a0/0x1c0