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
- Inspect the graph
media-ctl -p -d /dev/media0 - 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.
- 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
PCIe Link FailRockchip "PCIe Link Fail" / "Phy link never came up": NVMe Not Detectedstmmac_open: Cannot attach to PHY (error: -19)Rockchip Ethernet "Cannot attach to PHY (error: -19)": FixLink is Up - 1Gbps/Full but no DHCP / no trafficRockchip Ethernet Link Up but No Traffic (RGMII tx_delay / rx_delay)rknn_init fail! ret=-6 (RKNN_ERR_MODEL_INVALID)RKNN "rknn_init fail! ret=-6" RKNN_ERR_MODEL_INVALID: FixRKNN_ERR_TARGET_PLATFORM_UNMATCH (-13)RKNN_ERR_TARGET_PLATFORM_UNMATCH (-13): Model Built for Another SoC[drm] Cannot find any crtc or sizesRockchip HDMI No Display: "[drm] Cannot find any crtc or sizes"