Ubuntu Jammy fails to boot to linux login prompt

I have a problem with the running the (unsupported) “./rbuild --native-build rock-5b jammy cli” OS build on the rock5. It fails to boot to the linux login prompt. Here is a log of the boot up messages via the serial port -

DDR V1.11 f1474cf52f cym 23/05/09-11:02:36
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
CH0 RX Vref:28.5%, TX Vref:20.8%,0.0%
CH1 RX Vref:30.1%, TX Vref:21.8%,0.0%
CH2 RX Vref:27.5%, TX Vref:20.8%,0.0%
CH3 RX Vref:28.9%, TX Vref:22.8%,0.0%
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-589-g3389cfdda:derrick.huang
NOTICE: BL31: Built : 10:14:29, May 9 2023
INFO: spec: 0x1
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: system boots from cpu-hwid-0
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.725570] fiq_debugger fiq_debugger.0: IRQ fiq not found
[ 6.725583] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[ 6.725590] fiq_debugger_probe: could not install nmi irq handler
[ 7.447029] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[ 7.447589] rk-pcie fe170000.pcie: IRQ msi not found
[ 7.447616] rk-pcie fe170000.pcie: Missing config reg space
[ 7.447745] rk-pcie fe170000.pcie: Missing config reg space
[ 7.447774] rk-pcie fe170000.pcie: invalid resource
[ 7.448786] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[ 7.448794] rkvdec2_init:1008: No niu aclk reset resource define
[ 7.448801] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[ 7.448806] rkvdec2_init:1011: No niu hclk reset resource define
[ 7.449428] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[ 7.449436] rkvdec2_init:1008: No niu aclk reset resource define
[ 7.449442] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[ 7.449447] rkvdec2_init:1011: No niu hclk reset resource define
[ 7.458354] rk-pcie fe150000.pcie: IRQ msi not found
[ 7.458394] rk-pcie fe150000.pcie: Missing config reg space
[ 7.458575] rk-pcie fe150000.pcie: Missing config reg space
[ 7.458631] rk-pcie fe150000.pcie: invalid resource
[ 7.516274] rk806 spi2.0: no sleep-setting state
[ 7.516291] rk806 spi2.0: no reset-setting pinctrl state
[ 7.516298] rk806 spi2.0: no dvs-setting pinctrl state
[ 7.816750] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[ 7.822680] rksfc_base v1.1 2016-01-08
[ 7.848236] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[ 7.848270] rockchip-dmc dmc: failed to get vop pn to msch rl
[ 7.850236] rockchip-dmc dmc: could not find power_model node
[ 7.853699] rk-pcie fe190000.pcie: IRQ msi not found
[ 7.853735] rk-pcie fe190000.pcie: Missing config reg space
[ 7.853918] rk-pcie fe190000.pcie: Missing config reg space
[ 7.853974] rk-pcie fe190000.pcie: invalid resource
[ 7.855571] RKNPU fdab0000.npu: can’t request region for resource [mem 0xfdab0000-0xfdabffff]
[ 7.855592] RKNPU fdab0000.npu: can’t request region for resource [mem 0xfdac0000-0xfdacffff]
[ 7.855607] RKNPU fdab0000.npu: can’t request region for resource [mem 0xfdad0000-0xfdadffff]
[ 7.863283] debugfs: Directory ‘fdab0000.npu-rknpu’ with parent ‘vdd_npu_s0’ already present!
[ 7.885074] RKNPU fdab0000.npu: failed to find power_model node
[ 7.885095] RKNPU fdab0000.npu: RKNPU: failed to initialize power model
[ 7.885107] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient
[ 8.446712] mmc1: delay init for 600 ms to enable UHS mode
[ 9.891998] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_cancel_cpu_limit_freq freq qos nod add
[ 10.334335] rk-pcie fe170000.pcie: PCIe Link Fail
[ 10.334622] rk-pcie fe170000.pcie: failed to initialize host
[ 10.337426] rk-pcie fe150000.pcie: PCIe Link Fail
[ 10.337684] rk-pcie fe150000.pcie: failed to initialize host

I am wondering if this is related to the USB-C PD problem, as with the 35W OKdo usb-c power supply I see a continuous reboot. A 65W OKdo usb-c power supply, or my laptop docking station supply, only boots once and stops as shown in the log above.

In contrast (same laptop docking station supply), swapping to “./rbuild rock-5b debian cli” OS build boots normally to the linux prompt -

DDR V1.10 75d050770f typ 23/02/28-20:47:10
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
CH0 RX Vref:28.5%, TX Vref:19.8%,0.0%
CH1 RX Vref:30.2%, TX Vref:21.8%,0.0%
CH2 RX Vref:27.1%, TX Vref:19.8%,0.0%
CH3 RX Vref:28.9%, TX Vref:22.8%,0.0%
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-557-g9609b9c19:derrick.huang
NOTICE: BL31: Built : 14:29:57, Mar 8 2023
INFO: spec: 0x1
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: system boots from cpu-hwid-0
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.678267] fiq_debugger fiq_debugger.0: IRQ fiq not found
[ 6.678284] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[ 6.678291] fiq_debugger_probe: could not install nmi irq handler
[ 7.297311] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[ 7.297639] rk-pcie fe170000.pcie: IRQ msi not found
[ 7.297665] rk-pcie fe170000.pcie: Missing config reg space
[ 7.297803] rk-pcie fe170000.pcie: Missing config reg space
[ 7.297845] rk-pcie fe170000.pcie: invalid resource
[ 7.298965] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[ 7.298974] rkvdec2_init:1008: No niu aclk reset resource define
[ 7.298981] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[ 7.298987] rkvdec2_init:1011: No niu hclk reset resource define
[ 7.299629] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[ 7.299637] rkvdec2_init:1008: No niu aclk reset resource define
[ 7.299643] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[ 7.299649] rkvdec2_init:1011: No niu hclk reset resource define
[ 7.308568] rk-pcie fe150000.pcie: IRQ msi not found
[ 7.308607] rk-pcie fe150000.pcie: Missing config reg space
[ 7.308804] rk-pcie fe150000.pcie: Missing config reg space
[ 7.308854] rk-pcie fe150000.pcie: invalid resource
[ 7.366106] rk806 spi2.0: no sleep-setting state
[ 7.366123] rk806 spi2.0: no reset-setting pinctrl state
[ 7.366130] rk806 spi2.0: no dvs-setting pinctrl state
[ 7.656705] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[ 7.664450] rksfc_base v1.1 2016-01-08
[ 7.718501] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[ 7.718529] rockchip-dmc dmc: failed to get vop pn to msch rl
[ 7.718690] rockchip-dmc dmc: could not find power_model node
[ 7.727643] rk-pcie fe190000.pcie: IRQ msi not found
[ 7.727672] rk-pcie fe190000.pcie: Missing config reg space
[ 7.727812] rk-pcie fe190000.pcie: Missing config reg space
[ 7.727846] rk-pcie fe190000.pcie: invalid resource
[ 7.730166] RKNPU fdab0000.npu: can’t request region for resource [mem 0xfdab0000-0xfdabffff]
[ 7.730213] RKNPU fdab0000.npu: can’t request region for resource [mem 0xfdac0000-0xfdacffff]
[ 7.730246] RKNPU fdab0000.npu: can’t request region for resource [mem 0xfdad0000-0xfdadffff]
[ 7.739996] debugfs: Directory ‘fdab0000.npu-rknpu’ with parent ‘vdd_npu_s0’ already present!
[ 7.761676] RKNPU fdab0000.npu: failed to find power_model node
[ 7.761698] RKNPU fdab0000.npu: RKNPU: failed to initialize power model
[ 7.761715] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient
[ 8.286869] mmc1: delay init for 600 ms to enable UHS mode
[ 9.632788] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_cancel_cpu_limit_freq freq qos nod add
[ 10.184816] rk-pcie fe170000.pcie: PCIe Link Fail
[ 10.184935] rk-pcie fe170000.pcie: failed to initialize host
[ 10.211482] rk-pcie fe150000.pcie: PCIe Link Fail
[ 10.211583] rk-pcie fe150000.pcie: failed to initialize host
[ 10.484931] debugfs: Directory ‘fb000000.gpu-mali’ with parent ‘vdd_gpu_s0’ already present!
[ 10.554617] debugfs: File ‘Capture’ in directory ‘dapm’ already present!
[ 10.576091] rk-multicodecs es8316-sound: ASoC: Property ‘rockchip,audio-routing’ does not exist or its length is not even
[ 10.708972] debugfs: File ‘Left Hp mixer’ in directory ‘dapm’ already present!
[ 10.709152] debugfs: File ‘Right Hp mixer’ in directory ‘dapm’ already present!
[ 10.709264] debugfs: File ‘HPCP L’ in directory ‘dapm’ already present!
[ 10.709351] debugfs: File ‘HPCP R’ in directory ‘dapm’ already present!
[ 10.709449] debugfs: File ‘HPVOL L’ in directory ‘dapm’ already present!
[ 10.709538] debugfs: File ‘HPVOL R’ in directory ‘dapm’ already present!
[ 10.724872] of_dma_request_slave_channel: dma-names property of node ‘/serial@feb90000’ missing or empty

Debian GNU/Linux 11 rock-5b ttyFIQ0

rock-5b login: [ 13.034758] Bluetooth: hci0: command 0xfc18 tx timeout
[ 20.928515] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
[ 20.929001] Bluetooth: hci0: Failed to set baudrate
[ 23.061658] Bluetooth: hci0: command 0x0c03 tx timeout
[ 30.955028] Bluetooth: hci0: BCM: Reset failed (-110)

Any suggestions? Is there something in the Ubuntu Jammy build which enables?/configures? the USB PD feature that is causing a problem?

I appreciate that Jammy OS is not officially supported by Radxa, but I have a requirement to use it.

@Rob , I know this suggestion does not address the root reason for your question, but have you looked at the Ubuntu builds by Joshua-Riek? Info is on the Downloads page. Here is a direct link to his Github. https://github.com/Joshua-Riek/ubuntu-rockchip. I have had good results from both server and desktop builds.

2 Likes

Just use Armbian.

1 Like

I’ve had good results with Joshua-Reik’s version of Ubuntu with the 5a and would recommend it. It did everything I wanted with the likes of gstreamer and the the NPU. Had newer drivers than the official debian build. Radxa fully admit that their Ubuntu version is junk (they claim they are forced to provide it) and not worth bothering with. Expect next to zero help with it, so don’t touch it. Armbian is also likely a good alternative.

3 Likes

Thumb up for Joshua-Reik’s Ubuntu. This is the one I stick with for my 5B after trying couple of others.

2 Likes

+1 on Joshua-Reik’s Ubuntu, works perfectly.

1 Like

Thanks for posting this, I had the same issue or similiar output atleast,
With Joshua-reik’s ubuntu it worked!

The only other image I had previously gotten to work was Files · main · hardware-enablement / Rockchip RK3588 upstream enablement efforts / debian-image-recipes · GitLab (collabora.com) images