ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

Bug Report: Can't get ubuntu-24.04-preinstalled-desktop-arm64-nanopi-r6c to boot correctly/fully

Open RicStrang opened this issue 1 year ago • 2 comments

What happened?

Booting from SD card I see Ubuntu splash screen then after a few seconds this then changes to mouse pointer but on a blank black screen. SSHing in using ubuntu as user and ubuntu as password I get "access denied". Using ubuntu-22.04-preinstalled-desktop-arm64-nanopi-r6c or ubuntu-24.04-preinstalled-server-arm64-nanopi-r6c both boot and work fine for me.

Contents of Putty log from serial port attached.

Ideas?

Thanks

Richard

Kernel version

6.1.0-1025-rockchip

SBC model

NanoPi R6C

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2024.09.16 17:15:18 =~=~=~=~=~=~=~=~=~=~=~=
                      DDR 9fffbe1e78 cym 24/02/04-10:09:20,fwver: v1.16
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x1
CH0 RX Vref:27.5%, TX Vref:20.8%,20.8%
CH1 RX Vref:23.4%, TX Vref:21.8%,21.8%
CH2 RX Vref:26.7%, TX Vref:18.8%,20.8%
CH3 RX Vref:26.7%, TX Vref:20.8%,19.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09 (Aug 21 2024 - 00:51:05)
unrecognized JEDEC id bytes: 00, 00, 00
unknown raw ID 0 0 0
Trying to boot from MMC2
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(a7d1d8d191...) + OK
## Checking uboot 0x00200000 ... sha256(d9f3aec6c4...) + OK
## Checking fdt 0x00317010 ... sha256(6b406cdf1c...) + OK
## Checking atf-2 0xff100000 ... sha256(4b2065349b...) + OK
## Checking atf-3 0x000f0000 ... sha256(aa71013e72...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 384.600/533.511 ms

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: 0x13
INFO:    code: 0x88
INFO:    ext 32k is 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


U-Boot 2017.09 (Aug 31 2024 - 15:15:06 +0000)

Model: NanoPi R6C
MPIDR: 0x81000000
PreSerial: 2, raw, 0xfeb50000
DRAM:  8 GiB
Sysmem: init
Relocation Offset: eda48000
Relocation fdt: eb9f8ce0 - eb9fecd0
CR: M/C/I
Using default environment

DM: v2
mmc@fe2c0000: 1, mmc@fe2e0000: 0
Bootdev(assign): mmc 0
MMC0: HS400 Enhanced Strobe, 200Mhz
PartType: EFI
boot mode: None
RESC: 'resource', blk@0x0000a000
Failed to load DTB, ret=-19
No valid DTB, ret=-22
Failed to get kernel dtb, ret=-22
Model: NanoPi R6C
MPIDR: 0x81000000
starting USB...
No working controllers found
No usb mass storage found
CLK: (sync kernel. arm: enter 1008000 KHz, init 1008000 KHz, kernel 0N/A)
  b0pll 24000 KHz
  b1pll 24000 KHz
  lpll 24000 KHz
  v0pll 24000 KHz
  aupll 24000 KHz
  cpll 1500000 KHz
  gpll 1188000 KHz
  npll 24000 KHz
  ppll 1100000 KHz
  aclk_center_root 702000 KHz
  pclk_center_root 100000 KHz
  hclk_center_root 396000 KHz
  aclk_center_low_root 500000 KHz
  aclk_top_root 750000 KHz
  pclk_top_root 100000 KHz
  aclk_low_top_root 396000 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  2  1  0 
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1067 bytes read in 10 ms (103.5 KiB/s)
U-Boot menu
1:	Ubuntu 24.04.1 LTS 6.1.0-1025-rockchip
2:	Ubuntu 24.04.1 LTS 6.1.0-1025-rockchip (rescue target)
Enter choice: 1:	Ubuntu 24.04.1 LTS 6.1.0-1025-rockchip
Retrieving file: /boot/initrd.img-6.1.0-1025-rockchip
22304353 bytes read in 1803 ms (11.8 MiB/s)
Retrieving file: /boot/vmlinuz-6.1.0-1025-rockchip
53682688 bytes read in 4330 ms (11.8 MiB/s)
append: root=UUID=6ced6c5f-78b6-44d0-8789-aad661e75a33 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory quiet splash plymouth.ignore-serial-consoles
Retrieving file: /lib/firmware/6.1.0-1025-rockchip/device-tree/rockchip/rk3588s-nanopi-r6c.dtb
235101 bytes read in 173 ms (1.3 MiB/s)
Fdt Ramdisk skip relocation
## Flattened Device Tree blob at 0x08300000
   Booting using the fdt blob at 0x08300000
   Using Device Tree in place at 0000000008300000, end 000000000833c65c
WARNING: could not set reg FDT_ERR_BADOFFSET.
## reserved-memory:
  ramoops@110000: addr=110000 size=e0000
Adding bank: 0x00200000 - 0xf0000000 (size: 0xefe00000)
Adding bank: 0x100000000 - 0x200000000 (size: 0x100000000)
Adding bank: 0x2f0000000 - 0x300000000 (size: 0x10000000)
Total: 10640.94/10673.137 ms

Starting kernel ...

[   10.699494] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@0': base 0x0000000000000000, size 0 MiB
[   10.700520] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@0': base 0x0000000000000000, size 0 MiB
[   10.699494] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@0': base 0x0000000000000000, size 0 MiB
[   10.700520] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@0': base 0x0000000000000000, size 0 MiB
[   11.905943] fiq_debugger fiq_debugger.0: error -ENXIO: IRQ fiq not found
[   11.905961] fiq_debugger fiq_debugger.0: error -ENXIO: IRQ wakeup not found
[   11.905971] fiq_debugger_probe: could not install nmi irq handler
[   12.031846] rockchip-vop2 fdd90000.vop: error -ENODEV: _opp_set_regulators: no regulator (vop) found
[   12.031886] rockchip-vop2 fdd90000.vop: failed to set opp config
[   12.031898] rockchip-vop2 fdd90000.vop: failed to init opp info
[   12.080699] dwhdmi-rockchip fde80000.hdmi: i2c read err!
[   12.191811] dwhdmi-rockchip fde80000.hdmi: i2c read time out!
[   12.192426] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdptx phy pll locked!
[   12.192726] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdptx phy pll locked!
[   12.193006] rockchip-hdptx-phy-hdmi fed60000.hdmiphy: hdptx phy lane locked!
[   12.274292] rk806 spi2.0: no sleep-setting state
[   12.274333] rk806 spi2.0: no reset-setting pinctrl state
[   12.274360] rk806 spi2.0: no dvs-setting pinctrl state
[   12.278616] rk_gmac-dwmac fe1c0000.ethernet: Can not read property: rx_delay.
[   12.278659] rk_gmac-dwmac fe1c0000.ethernet: set rx_delay to 0xffffffff
[   12.278709] rk_gmac-dwmac fe1c0000.ethernet: cannot get clock mac_clk_rx
[   12.278741] rk_gmac-dwmac fe1c0000.ethernet: cannot get clock mac_clk_tx
[   12.278781] rk_gmac-dwmac fe1c0000.ethernet: cannot get clock clk_mac_speed
[   12.630328] .. rk pwm remotectl v2.0 init
[   12.758726] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[   12.758955] rk-crypto fe370000.crypto: invalid resource
[   12.813845] dw-pcie fe180000.pcie: invalid resource
[   12.813870] dw-pcie fe180000.pcie: Failed to initialize host
[   12.814181] dw-pcie fe190000.pcie: invalid resource
[   12.814194] dw-pcie fe190000.pcie: Failed to initialize host
[   12.816338] mpp-iep2 fdbb0000.iep: allocate roi buffer failed
[   12.816932] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!
[   12.816947] rkvdec2_init:1197: No niu aclk reset resource define
[   12.816961] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!
[   12.816974] rkvdec2_init:1200: No niu hclk reset resource define
[   12.817467] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!
[   12.817483] rkvdec2_init:1197: No niu aclk reset resource define
[   12.817496] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!
[   12.817509] rkvdec2_init:1200: No niu hclk reset resource define
[   12.822630] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[   12.823547] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[   12.823564] rockchip-dmc dmc: failed to get vop pn to msch rl
[   12.824085] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[   12.829316] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
[   12.829365] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
[   12.829390] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
[   12.831853] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[   12.842401] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[   14.026269] [drm:vop2_atomic_plane_get_property] *ERROR* failed to get vop2 plane property id:58, name:COLOR_ENCODING

RicStrang avatar Sep 16 '24 16:09 RicStrang

Try to wait a few minutes, and you can't ssh into the desktop system until you have created a user account.

Joshua-Riek avatar Sep 16 '24 16:09 Joshua-Riek

Sorry this is a duplication of https://github.com/Joshua-Riek/ubuntu-rockchip/issues/982 :-( It's been on or about 30 minutes now and still black screen. ALT-CTL-F4 & then ALT-CTL-F1 you see the graphics screen briefly, and if you mouse click in the right place you can process the Ubuntu initialisation process...

RicStrang avatar Sep 16 '24 17:09 RicStrang

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!

github-actions[bot] avatar Jan 20 '25 12:01 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Feb 10 '25 12:02 github-actions[bot]