Arducam 64MP Multi-Cam HAT device timeout on Raspberry Pi 5 libcamera-hello

Hi, I’m having trouble after moving my setup from a Raspberry Pi 4B to a Pi 5.

Hardware is an Arducam 64MP Multi-Cam HAT, UC-512 Rev D2. It worked on the Pi 4B, though I had to roll back some updates back then to get it going. I upgraded to a Pi 5 for more processing power, and I’m wondering if a similar rollback is needed on the Pi 5.

libcamera-still --list-camera does detect the camera, but libcamera-hello fails with a device timeout.

Environment:

I ran:

libcamera-still --list-camera
libcamera-hello
i2cset -y 10 0x24 0x24 0x02

The relevant log from libcamera-hello:

[0:02:32.369253909] [1989] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+124-e0a2304e-dirty (2024-12-09T06:48:46GMT)
[0:02:32.376965813] [1992] INFO RPI pisp.cpp:695 libpisp version v1.0.7 28196ed6edcf 29-08-2024 (16:33:32)
[0:02:32.377923551] [1992] WARN CameraSensorProperties camera_sensor_properties.cpp:305 No static properties available for 'arducam_64mp'
[0:02:32.377934017] [1992] WARN CameraSensorProperties camera_sensor_properties.cpp:307 Please consider updating the camera sensor properties database
[0:02:32.394797804] [1992] INFO RPI pisp.cpp:1155 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/arducam_64mp@1a to CFE device /dev/media0 and ISP device /dev/media2 using PiSP variant BCM2712_C0
Mode selection for 4096:3074:12:P (SRGGB10_CSI2P scores: 1280x720/0=11507, 1920x1080/0=9506.99, 2312x1736/0=7246.01, 3840x2160/0=3506.99, 4624x3472/0=1233.51, 8000x6000/0=2707.83, 9152x6944/0=3274.98)
[0:02:33.464185424] [1989] INFO Camera camera.cpp:1197 configuring streams: (0) 4096x3074-YUV420 (1) 4624x3472-RGGB_PISP_COMP1
[0:02:33.464418373] [1992] INFO RPI pisp.cpp:1451 Sensor: /base/axi/pcie@120000/rp1/i2c@80000/arducam_64mp@1a - Selected sensor format: 4624x3472-SRGGB10_1X10 - Selected CFE format: 4624x3472-PC1R
[0:02:34.818317120] [1992] WARN V4L2 v4l2_videodevice.cpp:2127 /dev/video4[17:cap]: Dequeue timer of 1000000.00us has expired!
[0:02:34.818357596] [1992] ERROR RPI pipeline_base.cpp:1414 Camera frontend has timed out!
[0:02:34.818362987] [1992] ERROR RPI pipeline_base.cpp:1415 Please check that your camera sensor connector is attached securely.
[0:02:34.818368470] [1992] ERROR RPI pipeline_base.cpp:1416 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[1]+ Stopped libcamera-hello
i2cset -y 10 0x24 0x24 0x02 -> Error: Could not open file `/dev/i2c-10' or `/dev/i2c/10': No such file or directory

The i2cset command fails with:

Error: Could not open file `/dev/i2c-10' or `/dev/i2c/10': No such file or directory

I suspect the Pi 5 CAM/DISP bus might now be 11, 13, or 14 instead of 10. Any ideas?

Thanks for the detailed log. A couple of things stand out.

On the Raspberry Pi 5 the 64MP Multi-Cam HAT needs to be connected to the CSI 1 port. I2C bus 10 doesn’t exist on the Pi 5 — CSI 1 uses I2C address 4, and CSI 0 uses I2C address 6. So the i2cset -y 10 ... failure is expected on a Pi 5.

The libcamera log shows the sensor is being registered (arducam_64mp@1a on /base/axi/pcie@120000/rp1/i2c@80000), but then the camera frontend times out. The No static properties available for 'arducam_64mp' warning is worth noting too.

Please double-check the HAT is on CSI 1, and use i2cset -y 4 ... (CSI 1) or i2cset -y 6 ... (CSI 0) instead of bus 10.

One more thing: if the same Bookworm SD card worked on the Pi 4B, it should generally work on the Pi 5. Can you confirm which OS you were using on the Pi 4 (Bullseye or Bookworm) and which updates you had to roll back?

Thanks for the reply.

On the Pi 4B I was using Raspberry Pi OS (64-bit) Debian Bookworm. The Pi 5 is using the same image, but the November 19, 2024 release instead of the June one. Kernel is 6.6.62+rpi-rp.

The Pi 4 setup worked earlier this year, then stopped after package updates. I rolled back some updates, but I honestly don’t remember which ones, and that SD card isn’t available anymore to check. When I first installed libcamera on the Pi 5 I also saw messages about certain packages needing to be downgraded.

I ran i2cdetect -l, but I don’t see buses 4 or 6 listed. Should I be running i2cset -y 04 0x24 0x24 0x02 instead of i2cset -y 10 0x24 0x24 0x02?

i2cdetect -l
i2cset -y 04 0x24 0x24 0x02
i2cset -y 10 0x24 0x24 0x02

Also, I found a forum post claiming kernel 6.6.62+rpi-rp doesn’t work and has to be downgraded to 6.1. Can you confirm whether that’s needed?

I’ve attached the CSI port 0/1 diagram so I can make sure I’m using the right port:

CSI port diagram

To be safe, let’s get a full picture of the current setup.

Can you post photos of the hardware connections at both the Raspberry Pi 5 and the camera ends? Also please generate a bug report so I can look at the loaded drivers and device state.

Steps:

  1. Reboot the Pi.
  2. Download the bug report tool:
wget -O arducam-camera-bug-report https://github.com/Dion4cen/arducam-camera-bug-report/releases/download/Tool/arducam-camera-bug-report
  1. Make it executable:
chmod +x ./arducam-camera-bug-report
  1. Run it:
./arducam-camera-bug-report
  1. That creates arducam-bug-report.txt in the current directory — send that file here.

And yes, i2cdetect -l is the right command to list available I2C buses. I want to see the bug report before confirming anything about downgrading the kernel.

Here are the photos and the bug report. I generated the report with 2 cameras connected. I’ve only been testing with 1 or 2 cameras so far, but I eventually need all 4 working — right now I’m just trying to get 1 camera stable first, then I’ll add the rest.

Attachments:
Image
Image1
Image2
arducam-bug-report.txt

While you’re looking at that, I have a few other questions:

  1. Exposure speed: can I take images faster than the default exposure? I’m fine with reducing exposure time or grabbing a frame from video, and I don’t need full resolution if that cuts the capture time.
  2. Individual capture: right now all four cameras produce one image where each quadrant is a different camera. Is there a way to get separate JPG files per camera instead?
  3. Staggered focus: can one camera capture an image while the other cameras are moving to their specified focus lengths?
  4. Qt + libcamera: is there guidance or an example for using the libcamera C++ API with Qt? I want to display live video feeds inside my own application.

Got the photos and the bug report — I’m still going through the report for the original timeout, so I’ll follow up on that separately.

For your other questions:

  1. Faster capture: yes, you can shorten capture time by reducing the exposure time. Cancelling the preview window also helps shorten the overall capture time.
  2. Per-camera files: with the multi-camera setup, the current implementation outputs a single combined image with four quadrants. That’s the default/intended behavior, and separate JPG files per camera aren’t supported out of the box. The autofocus trigger is also controlled as a whole rather than per camera.
  3. Staggered focus: related to the above — the system controls the multi-camera array as a whole, so per-camera staggered capture/focus isn’t supported by default.
  4. Qt integration: for the libcamera C++ API with Qt, you can use the qcam viewfinder example as a reference:
    libcamera/src/apps/qcam/viewfinder_qt.cpp at arducam · ArduCAM/libcamera · GitHub

For the timeout issue, keep the HAT on CSI 1 and use I2C address 4 (CSI 1) or 6 (CSI 0), not bus 10. I’ll get back to you once I’ve finished reviewing the bug report.