Skip to content

IMX708 on CAM3: rkaiq stuck at "wait stream start event" on rkisp-unite #1338

@renethoma

Description

@renethoma

What happened?

Body:
Hardware:

Board: Orange Pi 5 (RK3588S)
Camera: Raspberry Pi Camera Module 3 (IMX708) via Tachyn Labs adapter on CAM3 port
Kernel: 6.1.0-1025-rockchip
OS: Ubuntu 24.04.1 LTS

Summary:
The full media pipeline is assembled and the sensor is detected, but rkaiq gets stuck at wait stream start event and frames never flow from /dev/video11.
What works:

IMX708 detected on I2C (imx708 2-001a: camera module ID 0x0301)
Full pipeline linked: sensor → csi2-dcphy1 → rkcif-mipi-lvds1 → rkisp-unite → rkisp_mainpath
rkaiq loads correct IQ file: imx708_rpi-camera-v3_default.json
rk_aiq_uapi_sysctl_prepare success
Raw frames flow through /dev/video0 (confirmed with gst-launch fakesink)

What doesn't work:

device(/dev/video19) start failed (error -9) every boot
rkaiq permanently stuck at /dev/media1: wait stream start event
GStreamer pipeline reaches PLAYING but no frames arrive on /dev/video11

rkaiq service log:
XCORE:K:cid[1] rk_aiq_uapi_sysctl_init success. iq:/etc/iqfiles//imx708_rpi-camera-v3_default.json
XCORE:E:device(/dev/video19) start failed
CAMHW:E:prepare isp params dev err: -9
XCORE:K:cid[1] rk_aiq_uapi_sysctl_prepare success. mode:0
DBG: subscribe events from /dev/video19 success !
DBG: /dev/media1: wait stream start event...
Media pipeline (media-ctl -d /dev/media1 -p):

  • entity 1: rkisp-isp-subdev (4 pads, 10 links)
    <- "rkisp-input-params":0 [ENABLED]
    -> "rkisp_mainpath":0 [ENABLED]
  • entity 6: rkisp_mainpath → /dev/video11
  • entity 54: rkisp-input-params → /dev/video19
  • entity 60: rkcif-mipi-lvds1 → "rkisp-isp-subdev":0 [ENABLED]
    Background:
    The DTB required manual patching because the overlay symbol resolution was broken (targets resolving to 0xffffffff). The following nodes were enabled by directly patching rk3588s-orangepi-5.dtb:

csi2-dcphy1
csi2-dphy0-hw@fedc0000
imx708@1a and dw9817@c on i2c2
rkcif-mipi-lvds1
rkisp-unite@fdcb0000
rkisp-unite-mmu@fdcb7f00
rkisp1-vir0 (with rockchip,hw changed to point to unite node 0x271)
iommu@fdcc7f00

Question:
Is there a known fix for device(/dev/video19) start failed on the rkisp-unite ISP? Is rkaiq expected to work with the unite ISP topology on RK3588S, or does it require a different version/configuration?

Kernel version

Linux 6.1.0-1025-rockchip

SBC model

Orange Pi 5

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions