radxa-build / rock-3c

ROCK 3C
https://wiki.radxa.com/Rock3
5 stars 1 forks source link

Debian image CLI 5.10.160 not booting #5

Closed mbol closed 1 year ago

mbol commented 1 year ago

I've tried the image Debian 5.10.160-1-rk356x with XFCE on Rock 3C and is working correctly. Trying the Debian 5.10.160-1-rk356x only CLI it won't boot, here the log where it get blocked:

U-Boot menu 1: Debian GNU/Linux 11 (bullseye) 5.10.160-1-rk356x 2: Debian GNU/Linux 11 (bullseye) 5.10.160-1-rk356x (rescue target) Enter choice: 1: Debian GNU/Linux 11 (bullseye) 5.10.160-1-rk356x Retrieving file: /boot/vmlinuz-5.10.160-1-rk356x Retrieving file: /boot/initrd.img-5.10.160-1-rk356x append: root=UUID=b7d69630-7c7b-4d6f-8b46-19892353d001 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 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 Retrieving file: /usr/lib/linux-image-5.10.160-1-rk356x/rockchip/rk3566-rock-3c.dtb Moving Image from 0x2080000 to 0x2200000, end=3d40000

Flattened Device Tree blob at 0a100000

Booting using the fdt blob at 0xa100000 Working FDT set to a100000 Host not halted after 16000 microseconds. Host not halted after 16000 microseconds. Loading Ramdisk to 7c701000, end 7cecc0ef ... OK ERROR: reserving fdt memory region failed (addr=0 size=0 flags=0) ERROR: reserving fdt memory region failed (addr=0 size=0 flags=0) Loading Device Tree to 000000007c6d7000, end 000000007c7009fd ... OK Working FDT set to 7c6d7000

Starting kernel ...

[ 10.905371] fiq_debugger fiq_debugger.0: IRQ fiq not found [ 10.905426] fiq_debugger fiq_debugger.0: IRQ wakeup not found [ 10.905459] fiq_debugger_probe: could not install nmi irq handler [ 12.470791] rk-pcie 3c0000000.pcie: IRQ msi not found [ 12.470883] rk-pcie 3c0000000.pcie: Missing config reg space [ 12.471141] rk-pcie 3c0000000.pcie: Missing config reg space [ 12.471221] rk-pcie 3c0000000.pcie: invalid resource [ 12.479780] mpp-iep2 fdef0000.iep: allocate roi buffer failed [ 12.500246] arm-scmi firmware:scmi: Failed. SCMI protocol 22 not active. [ 12.523218] dwhdmi-rockchip fe0a0000.hdmi: IRQ index 1 not found [ 12.526732] no ATF memory for init [ 12.549482] no ATF memory for init [ 12.561267] rk_gmac-dwmac fe010000.ethernet: no regulator found [ 12.908816] rkcifhw fdfe0000.rkcif: can't request region for resource [mem 0xfdfe0000-0xfdfe7fff] [ 12.912480] rkisp_hw fdff0000.rkisp: can't request region for resource [mem 0xfdff0000-0xfdffffff] [ 12.923624] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active. [ 12.932950] rksfc_base v1.1 2016-01-08 [ 13.066750] rk817-battery rk817-battery: Failed to find matching dt id [ 13.067331] rk817-charger rk817-charger: Failed to find matching dt id [ 13.094524] mpp_rkvenc fdf40000.rkvenc: Failed to get leakage [ 13.095438] mpp_rkvenc fdf40000.rkvenc: failed to find power_model node [ 13.095505] mpp_rkvenc fdf40000.rkvenc: failed to initialize power model [ 13.095536] mpp_rkvenc fdf40000.rkvenc: failed to get dynamic-coefficient [ 13.098396] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_a is not found! [ 13.098470] rkvdec2_init:1022: No niu aclk reset resource define [ 13.098505] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_h is not found! [ 13.098532] rkvdec2_init:1025: No niu hclk reset resource define [ 13.099860] mpp_rkvdec2 fdf80200.rkvdec: failed to find power_model node [ 13.099902] mpp_rkvdec2 fdf80200.rkvdec: failed to initialize power model [ 13.099932] mpp_rkvdec2 fdf80200.rkvdec: failed to get dynamic-coefficient [ 13.267490] headset_interrupt:get pin level again, pin=148,i=0 [ 15.354098] rk-pcie 3c0000000.pcie: PCIe Link Fail [ 15.354184] rk-pcie 3c0000000.pcie: failed to initialize host

gjm19761 commented 9 months ago

i get the exact same issue in debian cli, its pcie : failed ro initilize host and hangs

RadxaYuntian commented 9 months ago

The issue was again on the GPU driver. I tried to fix it properly, but found out that Debian 11 does not support the GPU used in RK356X. The Mesa commit adding the support is released in newer version than the one shipped in Debian 11. As such we decided to put this on hold for now (since we would work with Rockchip Debian 12 SDK soon), and recommend users to use the Desktop variant for now.

RadxaYuntian commented 8 months ago

panfrost is disabled since https://github.com/radxa-repo/bsp/commit/17340a79b0a123e5adfa309c9cd598a0f8b2b327.

RadxaYuntian commented 8 months ago

User who wish to have CLI image booting can check this forum post.

rabee05 commented 7 months ago

"since we would work with Rockchip Debian 12 SDK soon" how soon can we get Debian 12 image? we have been working on Debian 11 and we unable to build our software.

RadxaYuntian commented 7 months ago

The one for RK3588 is released, and I got to the desktop yesterday on ROCK 5B. RK356X will come later according to Rockchip's roadmap released in 2023/09:

pavelvasev commented 4 months ago

Hi @RadxaYuntian ! Is there any news on Linux kernel 6.* support for Radxa Zero 3? Maybe any forecast? Thank you!

RadxaYuntian commented 4 months ago

Nothing from Rockchip right now. We are still working on RK3588 Linux 6.1, though rkr2 was released by the end of April. With above projection we are 1 release away from RK356X.

outhud commented 1 month ago

Hi @RadxaYuntian, is there any news on Debian 12 and/or Linux 6.1 for RK3566 / Zero 3W?

Hoping to use an official Debian CLI OS for this board soon :)

RadxaYuntian commented 1 month ago

No news. When we are going to work on it you would see repos like rock-3c-6_1 just like our current RK3588 bring up. Until then there is nothing.

We will stop provide CLI image in the future due to lack of testing and supporting resources.