Hi all, I’m trying to run two 12MP IMX708 B0311 Arducam camera modules through a camera adapter module on a Raspberry Pi 4B. When I run sudo ./init_camera.sh I get a camera timeout and the script restarts over and over.
Environment:
Raspberry Pi 4B
2x 12MP IMX708 B0311 Arducam camera modules
Camera adapter module
Relevant log output:
[0:12:13.068198135] [1799] INFO Camera camera_manager.cpp:297 libcamera v0.0.0+4367-ad9428b4
[0:12:13.224141228] [1800] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx708@10 to Unicam device /dev/media2 and ISP device /dev/media0
[0:12:13.224236950] [1800] INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:12:13.225552635] [1799] INFO Camera camera.cpp:1033 configuring streams: (0) 2304x1296-YUV420
[0:12:13.226075246] [1800] INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/imx708@10 - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAA
[0:12:18.097628791] [1800] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[18:cap]: Dequeue timer of 1000000.00us has expired!
[0:12:18.097727753] [1800] ERROR RPI pipeline_base.cpp:1356 Camera frontend has timed out!
[0:12:18.097750232] [1800] ERROR RPI pipeline_base.cpp:1357 Please check that your camera sensor connector is attached securely.
[0:12:18.097771878] [1800] ERROR RPI pipeline_base.cpp:1358 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
I’ve already tried reordering the cameras, rebooting, and using different ports on the adapter. There was one time it did work, but I hadn’t changed any setup for that run.
Thanks for the detailed log. That timeout usually means the sensor isn’t being read properly over the MIPI path. For the Raspberry Pi Multi-Camera Adapter Module V2.2, can you check the official Quick Start Guide for the Multi-Adapter Board (quad camera adapter board B012001)?
I followed the guide and changed config.txt. I modified the dtoverlay line and changed camera_auto_detect from 1 to 0. My config.txt didn’t originally have a camera_auto_detect line, so I added it.
Now I get a ‘camera not detected/found’ error. It happens with the multi camera adapter and also with just a single camera connected.
Thanks, got the report. One thing I want to rule out first: delete the line dtoverlay=imx708-b0311 from config.txt, then reboot and test again. Also, can you post pictures of the camera board (front and back)?
I deleted that line and rebooted but I’m still getting ‘no cameras found’. I’ve attached a new arducam bug report text file and pictures of the front and back of the board.
Thanks, those help. I’ve put together a modified device-tree overlay file for the Multi-Camera Adapter Module V2.2 + B0311 Rev B combination and sent it to you via private message.
Transfer the file to the Pi, extract it, then run:
cd imx708_b0311_dtoverlay_camera_mux/6.1.21
./build_and_install.sh
cp: cannot stat 'imx708-b0311.dtbo': No such file or directory
The extracted directory has imx708.dtbo but not imx708-b0311.dtbo. Should I just rename imx708.dtbo to imx708-b0311.dtbo? I’m also considering reinstalling a fresh copy of Raspberry Pi OS and starting over.
A fresh OS image would actually be a good idea here. If you do: flash a new image, run the overlay file I provided first, then add this line to config.txt:
I’ve flashed Raspberry Pi OS Legacy 64-bit. Quick question — should I run the first file you sent or the second modified version? And should I follow the quick start guide instructions for the imx708-b0311 boards and/or the multi camera adapter, or just start with the file for now?
I’m still getting the same missing dtbo error when I run the file:
cp: cannot stat 'imx708-b0311.dtbo': No such file or directory
The script is looking for imx708-b0311.dtbo, but that file doesn’t exist. The extracted directory only has imx708.dtbo. Should I rename imx708.dtbo to imx708-b0311.dtbo to match what it expects?
That file worked! Now I’m stuck on config.txt and channel usage. I need to add dtoverlay=camera-mux-4port,cam0-imx708,cam1-imx708 under the [all] line, but my config.txt has two [all] sections:
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
[all]
Which [all] should I use? Also, I’m physically using camera channels A and C and skipping B — will that cause camera indexing issues?
Either [all] section is fine, just put it under one of them and reboot. But about the channels: if you’re physically on A and C and skipping B, you should NOT use cam0-imx708,cam1-imx708. The camera on channel C won’t be detected that way. Use this instead: