Arducam 16MP Quad-Camera Kit not detected on Raspberry Pi 4B Bullseye - is dtoverlay syntax correct?

Trying to set up an Arducam 16MP Autofocus Quad-Camera Kit on a Raspberry Pi 4B. I’ve already had three ArduCam cameras fail before this — one lost sync and the other two were never recognized. Right now the boot log has no mention of the camera or board at all, so I’m wondering if my dtoverlay syntax is wrong.

I’m on V11 Bullseye (should I move to Bookworm?) and I set camera_auto_detect=0 in config.txt. My config has:

dtoverlay=camera-mux-4port,cam0-imx519,cam1-imx519
camera_auto_detect=0
[all]
dtoverlay=w1-gpio
enable_uart=1

The doc template I was following looks like:

dtoverlay=camera-mux-4port,cam0-,cam1-,cam2-,cam3-

I tried Bing CoPilot but it kept giving me old docs/typos, and I also read the ArduCam Quick Start for the Multi-Camera Adapter Board. I have the cabling photo and bug report file if needed.

It looks like the guide itself is the issue. That dtoverlay line is for the generic Multi-Camera Adapter Board, not the 16MP Autofocus Quad-Camera Kit. The camera-mux-4port overlay should not be used for this kit.

Delete this line from /boot/config.txt:

dtoverlay=camera-mux-4port,cam0-imx519,cam1-imx519

Then use the IMX519 Multi-Camera Kit quick start instead:

https://docs.arducam.com/Raspberry-Pi-Camera/Multi-Camera-CamArray/quick-start/#imx519-multi-camera-kit

Start there and see if the cameras show up in the boot log or libcamera.

Thanks, I switched to the IMX519 Kit path. A few things are still off:

  • The B12001 board is older than B0388 (glad I bought the 2023 version)
  • The imx519 section doesn’t say what to do with camera_auto_detect
  • It doesn’t explain how to specify multiple cameras

I ended up with this in config.txt:

dtoverlay=imx519,cam0
dtoverlay=imx519,cam1

Now only one camera is detected. Camera 1 is found but says the driver version is wrong, and I get timeout errors. Relevant boot log:

[0.083347] platform fe800000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@0/imx519@1a
[0.084041] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx519@1a
[8.853254] imx519 0-001a: failed to read chip id 519, with error -5 (Connection issue cam0?)
[9.121194] imx519: probe of 0-001a failed with error -5
[9.309787] imx519 10-001a: Device found is imx519 (Camera 1 was detected, but driver version is wrong)
[9.310508] imx519 10-001a: Consider updating driver imx519 to match on endpoints

libcamera v0.0.0+4367-ad9428b4
Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media2 and ISP device /dev/media0
Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
configuring streams: (0) 2328x1748-YUV420
Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[13:cap]: Dequeue timer of 1000000.00us has expired!
ERROR RPI pipeline_base.cpp:1356 Camera frontend has timed out!
ERROR RPI pipeline_base.cpp:1357 Please check that your camera sensor connector is attached securely.
ERROR RPI pipeline_base.cpp:1358 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!

I also tried following troubleshooting item 12 (“Time error occurs when using multi-camera adapter board on Pi5”), which points to the driver file rp1-cfe.ko.xz, but the Google Drive link gives an error when I click it. Where can I get that file?

Before we go down the driver-modification path, let’s verify the physical setup first. Can you connect all four IMX519 cameras to the HAT board and post a photo of the wiring/connections? I want to confirm the port groups are populated correctly before we touch the driver file.

The rp1-cfe.ko.xz change may not be the right fix yet — the timeout can also be caused by which ports are used.

Okay, I connected all four IMX519 cameras. At first none were detected, then it dropped back to 2, and after retrying all 4 came up. Weird. With 4 or 3 cameras they seem to work, but using only 2 cameras brings back the timing issue.

The boot log still shows this:

[9.422537] imx519 0-001a: failed to read chip id 519, with error -5
[9.446725] imx519: probe of 0-001a failed with error -5
[9.462554] uart-pl011 fe201000.serial: no DMA platform data
[9.552987] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[9.584054] imx519 10-001a: Device found is imx519
[9.584791] imx519 10-001a: Consider updating driver imx519 to match on endpoints

Next I’m going to test the focus drivers.

Good that all four work when connected. The two-camera timing problem is usually because both cameras are sitting in the same port group. The HAT ports are grouped as RX0/RX1 and RX2/RX3.

When you only use two cameras, connect one to RX0 or RX1 and the other to RX2 or RX3. That keeps the cameras split across the two groups and avoids the timing issue.

So try:

  • Camera A → RX0 or RX1
  • Camera B → RX2 or RX3

And test again.

All 4 cameras are working and the Quad CamArray pictures look great. But I’m stuck on capture/composition:

  1. libcamera-hello --list-cameras only shows cam0:

0 : imx519 [4656x3496] (/base/soc/i2c0mux/i2c@1/imx519@1a)
Modes: ‘SRGGB10_CSI2P’ : 1280x720 [80.01 fps - (1048, 1042)/2560x1440 crop]
1920x1080 [60.05 fps - (408, 674)/3840x2160 crop]
2328x1748 [30.00 fps - (0, 0)/4656x3496 crop]
3840x2160 [18.00 fps - (408, 672)/3840x2160 crop]
4656x3496 [9.00 fps - (0, 0)/4656x3496 crop]

When I run libcamera-still -o test.jpg -camera 0 it seems to aggregate all 4 cameras, and I also get “ERROR: *** selected camera is not available ***”.

  1. Python/OpenCV capture fails: cap.read() returns ret=False. I already ran sudo apt-get install python3-opencv and nothing changed.

Code:

import cv2
cap = cv2.VideoCapture(0)
if not cap.isOpened():
print(“Could not open camera”)
else:
ret, frame = cap.read()

Two separate issues here.

For the camera selection/composition: using -camera 0 like that isn’t the correct way to switch modules on the Quad CamArray. Use the “Switch Composition Mode” procedure from the Multi-Camera CamArray quick start:

https://docs.arducam.com/Raspberry-Pi-Camera/Multi-Camera-CamArray/quick-start/#switch-composition-mode

That’s what controls which module/cam is active.

For OpenCV: raw cv2.VideoCapture(0) isn’t the right capture path for this setup. Use the picamera2 OpenCV example instead:

So in short: switch cameras via composition mode, and capture through picamera2 rather than cv2.VideoCapture directly. That should fix the selected-camera error and the ret=False problem.