Rockchip Camera "VIDIOC_STREAMON returned -1 (Broken pipe)": Fix

VIDIOC_STREAMON returned -1 (Broken pipe)

Streaming failed because the media pipeline is inconsistent. EPIPE means a link is disabled or formats/sizes do not match between the sensor, MIPI receiver and CIF/ISP entities.

Applies to: RK3588 RK3588S RK3576 RK3568 RK3566 RV1106 RV1126 RV1109

Symptoms

  • v4l2-ctl --stream-mmap fails with "Broken pipe"
  • media-ctl -p shows the sensor, but the capture node cannot stream

Common causes

  • Pad formats (resolution / bus code) differ between linked entities
  • A media link is not enabled
  • data-lanes or link-frequencies differ between sensor and csi2 endpoints
  • Capturing from the wrong /dev/videoN (ISP vs raw CIF node)

How to fix it

  1. Inspect the graph
    media-ctl -p -d /dev/media0
  2. Match formats end to end

    Make the sensor output format and size match the capture format you request, and enable any disabled links with media-ctl -l.

  3. Verify DT endpoints agree

    data-lanes and link-frequencies must match on the sensor endpoint and the csi2_dphy/mipi_csi2 endpoint.

FAQ

What does "VIDIOC_STREAMON returned -1 (Broken pipe)" mean?

Streaming failed because the media pipeline is inconsistent. EPIPE means a link is disabled or formats/sizes do not match between the sensor, MIPI receiver and CIF/ISP entities.

What causes "VIDIOC_STREAMON returned -1 (Broken pipe)"?

Pad formats (resolution / bus code) differ between linked entities; A media link is not enabled; data-lanes or link-frequencies differ between sensor and csi2 endpoints; Capturing from the wrong /dev/videoN (ISP vs raw CIF node).

How do I fix "VIDIOC_STREAMON returned -1 (Broken pipe)"?

1. Inspect the graph 2. Match formats end to end: Make the sensor output format and size match the capture format you request, and enable any disabled links with media-ctl -l. 3. Verify DT endpoints agree: data-lanes and link-frequencies must match on the sensor endpoint and the csi2_dphy/mipi_csi2 endpoint.

Related issues

¿Desarrollas un producto basado en Rockchip?

Del diseño de hardware a la integración de Linux, Android e IA: consigue soporte de ingeniería para tu proyecto Rockchip.