radxa-repo / rbuild

Radxa Image Builder (Maintenance mode)
https://radxa-repo.github.io/rbuild/
GNU General Public License v3.0
53 stars 44 forks source link

CM3 images no longer building #37

Closed AaronDewes closed 7 months ago

AaronDewes commented 8 months ago

Hi!

CM3 images from the main repo are no longer building properly. Images built from the testing repo fail to boot on the CM3 (With the CM3-RPI-CM4IO config on a CM4 IO board)

U-Boot latest-2023.10-1-ac88cb12-gac88cb12 (Nov 13 2023 - 08:42:27 +0000)

Model: Radxa Compute Module 3(CM3) on Raspberry Pi CM4 IO
DRAM:  4 GiB (effective 3.7 GiB)
PMIC:  RK8170 (on=0x40, off=0x00)
Core:  320 devices, 29 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe2c0000: 2, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Radxa Compute Module 3(CM3) on Raspberry Pi CM4 IO
Net:   No ethernet found.
starting USB...
Bus usb@fcc00000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fcc00000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit Ctrl+C key in 0 seconds to stop autoboot...
** Booting bootflow 'mmc@fe2b0000.bootdev.part_3' with extlinux
U-Boot menu
1:      Debian GNU/Linux 12 (bookworm) 5.10.110-24-rockchip
2:      Debian GNU/Linux 12 (bookworm) 5.10.110-24-rockchip (rescue target)
Enter choice: 1:        Debian GNU/Linux 12 (bookworm) 5.10.110-24-rockchip
Retrieving file: /boot/vmlinuz-5.10.110-24-rockchip
Retrieving file: /boot/initrd.img-5.10.110-24-rockchip
append: root=UUID=d5f82c03-c9aa-444e-857a-5f13421f744b console=ttyFIQ0,1500000n8 quiet splash loglevel=4 rw earlycon consoleblank=0 console=tty0 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.110-24-rockchip/rockchip/rk3566-radxa-cm3-rpi-cm4-io.dtb
Moving Image from 0x2080000 to 0x2200000, end=3da0000
## Flattened Device Tree blob at edebff10
   Booting using the fdt blob at 0xedebff10
Working FDT set to edebff10
   Loading Ramdisk to ec461000, end eceb21b9 ... OK
   Loading Device Tree to 00000000ec44b000, end 00000000ec460e6f ... OK
Working FDT set to ec44b000

Starting kernel ...

[    7.697523] rockchip_clk_register_muxgrf: regmap not available
[    7.698097] rockchip_clk_register_branches: failed to register clock clk_32k_ioe: -524

Boot gets stuck there.

RadxaYuntian commented 7 months ago

We currently only support Debian Bullseye Xfce variant on CM3.

AaronDewes commented 7 months ago

@RadxaYuntian Bullseye Xfce built from the latest test & normal repos are not booting either (normal repo is not building, test is stuck with the same issue)

RadxaYuntian commented 7 months ago

I'll take a look at this today.

RadxaYuntian commented 7 months ago

I just did a rebuild with Radxa ZERO 3 and it worked fine. Please try with:

./rbuild radxa-cm3-rpi-cm4-io xfce -r -T
./rbuild write-image radxa-cm3-rpi-cm4-io_debian_bullseye-test_xfce.img /dev/sdX

to build and flash the image to a microSD and check if it can boot.

If you are still having issue please send the build log and system boot log.

AaronDewes commented 7 months ago

Okay, I'll try again. thanks!

AaronDewes commented 7 months ago

Now having this on boot:

U-Boot latest-2023.10-5-d321260a-gd321260a (Dec 12 2023 - 09:17:26 +0000)

Model: Radxa Compute Module 3(CM3) on Raspberry Pi CM4 IO
DRAM:  8 GiB (effective 7.7 GiB)
PMIC:  RK8170 (on=0x40, off=0x00)
Core:  320 devices, 29 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe2c0000: 2, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Radxa Compute Module 3(CM3) on Raspberry Pi CM4 IO
Net:   No ethernet found.
starting USB...
Bus usb@fcc00000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fcc00000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit Ctrl+C key in 0 seconds to stop autoboot...
** Booting bootflow 'mmc@fe2b0000.bootdev.part_3' with extlinux
U-Boot menu
1:      Debian GNU/Linux 11 (bullseye) 5.10.160-22-rk356x
2:      Debian GNU/Linux 11 (bullseye) 5.10.160-22-rk356x (rescue target)
Enter choice: 1:        Debian GNU/Linux 11 (bullseye) 5.10.160-22-rk356x
Retrieving file: /boot/vmlinuz-5.10.160-22-rk356x
Retrieving file: /boot/initrd.img-5.10.160-22-rk356x
append: root=UUID=b1130185-d1a5-46f7-97b2-831fd0084e3f console=ttyFIQ0,1500000n8 quiet splash loglevel=4 rw earlycon consoleblank=0 console=tty0 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-22-rk356x/rockchip/rk3566-radxa-cm3-rpi-cm4-io.dtb
Retrieving file: /boot/dtbo/radxa-cm3-raspcm4io-pcie2x1.dtbo
Moving Image from 0x2080000 to 0x2200000, end=3d80000
## Flattened Device Tree blob at 0a100000
   Booting using the fdt blob at 0xa100000
Working FDT set to a100000
   Loading Ramdisk to ec6af000, end eceb0a65 ... 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 00000000ec683000, end 00000000ec6aefff ... OK
Working FDT set to ec683000

Starting kernel ...

[    7.991972] fiq_debugger fiq_debugger.0: IRQ fiq not found
[    7.992038] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    7.992072] fiq_debugger_probe: could not install nmi irq handler
[    9.465994] rk-pcie 3c0000000.pcie: IRQ msi not found
[    9.466087] rk-pcie 3c0000000.pcie: Missing *config* reg space
[    9.466325] rk-pcie 3c0000000.pcie: Missing *config* reg space
[    9.466403] rk-pcie 3c0000000.pcie: invalid resource
[    9.475161] mpp-iep2 fdef0000.iep: allocate roi buffer failed
[    9.495682] arm-scmi firmware:scmi: Failed. SCMI protocol 22 not active.
[    9.518778] dwhdmi-rockchip fe0a0000.hdmi: IRQ index 1 not found
[    9.522313] no ATF memory for init
[    9.543409] no ATF memory for init
[    9.558525] rk_gmac-dwmac fe010000.ethernet: no regulator found
[    9.950965] rk817-battery rk817-battery: Failed to find matching dt id
[    9.951407] rk817-charger rk817-charger: Failed to find matching dt id
[    9.958898] rtc-pcf85063 0-0051: RTC chip is not present
[    9.962759] rkcifhw fdfe0000.rkcif: can't request region for resource [mem 0xfdfe0000-0xfdfe7fff]
[    9.966475] rkisp_hw fdff0000.rkisp: can't request region for resource [mem 0xfdff0000-0xfdffffff]
[    9.987304] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    9.989579] rockchip,bus bus-npu: Failed to get leakage
[    9.995105] rksfc_base v1.1 2016-01-08
[   10.034475] mpp_rkvenc fdf40000.rkvenc: Failed to get leakage
[   10.034891] mpp_rkvenc fdf40000.rkvenc: failed to find power_model node
[   10.034913] mpp_rkvenc fdf40000.rkvenc: failed to initialize power model
[   10.034925] mpp_rkvenc fdf40000.rkvenc: failed to get dynamic-coefficient
[   10.036480] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_a is not found!
[   10.036508] rkvdec2_init:1022: No niu aclk reset resource define
[   10.036522] mpp_rkvdec2 fdf80200.rkvdec: shared_niu_h is not found!
[   10.036535] rkvdec2_init:1025: No niu hclk reset resource define
[   10.037241] mpp_rkvdec2 fdf80200.rkvdec: failed to find power_model node
[   10.037261] mpp_rkvdec2 fdf80200.rkvdec: failed to initialize power model
[   10.037274] mpp_rkvdec2 fdf80200.rkvdec: failed to get dynamic-coefficient
[   10.040023] rockchip-dmc dmc: failed to get vop pn to msch rl
[   10.040268] rockchip-dmc dmc: could not find power_model node
[   10.048499] RKNPU fde40000.npu: can't request region for resource [mem 0xfde40000-0xfde4ffff]
[   10.051929] RKNPU fde40000.npu: failed to find power_model node
[   10.051994] RKNPU fde40000.npu: RKNPU: failed to initialize power model
[   10.052009] RKNPU fde40000.npu: RKNPU: failed to get dynamic-coefficient
[   10.621986] mmc0: delay init for 600 ms to enable UHS mode
[   12.370981] rk-pcie 3c0000000.pcie: PCIe Link Fail
[   12.371096] rk-pcie 3c0000000.pcie: failed to initialize host

And then it gets stuck

RadxaYuntian commented 7 months ago

There is some known issue with the CLI image that we are looking to fix. For now please use the desktop variant.