Hi everyone, I’m running into a frustrating issue with two Arducam stereo cameras on a Raspberry Pi 5 (Bookworm Desktop, 64-bit, kernel from the 13-May-2025 release, PiSP variant BCM2712_D0).
B0266 stereoscopic camera kit: On the very first boot after power-up, libcamera-hello -t 0 fails with “Camera frontend has timed out!”. The weird part is that if I run the same command again immediately after, it works fine. Every subsequent attempt works until I reboot – then the first attempt fails again.
B0263 1MP stereo camera: Same timeout error, but this one fails every single time, not just the first attempt. Can’t get it to work at all.
libcamera-hello --list-cameras does detect both cameras and lists all the expected modes correctly.
I’ve already tried 3-4 different ribbon cables – no change. I also followed the Arducam configuration guide at docs.arducam.com for the Pivariety cameras. Anyone seen this before or have ideas?
That’s an odd pattern, especially the B0266 only failing on the first attempt. A couple of things to check:
Can you share the full terminal output from both a failed and successful run of libcamera-hello -t 0 with the B0266?
What does your /boot/firmware/config.txt look like? Specifically the camera-related overlays.
Have you tried bumping the frontend timeout? There’s an example pipeline config file at /usr/local/share/libcamera/pipeline/rpi/pisp/example.yaml – you can point libcamera at it with LIBCAMERA_RPI_CONFIG_FILE. Inside that YAML there’s a timeout value (default is usually 1000000 microseconds). Try setting it to something like 99999999 and see if that changes the behavior.
The timeout happening only on first attempt is suspicious – almost feels like a sensor initialization race condition.
$ libcamera-hello -t 0
[0:01:23.916596760] [1962] INFO Camera camera_manager.cpp:326 libcamera v0.5.0+84-79f583c3-dirty (2025-05-06T02:52:19BST)
[0:01:23.923566906] [1965] INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:13:50)
[0:01:23.949106648] [1965] ERROR IPAProxy ipa_proxy.cpp:171 Configuration file 'arducam-pivariety_mono.json' not found for IPA module 'rpi/pisp'
[0:01:24.125471742] [1965] INFO RPI pisp.cpp:1180 Registered camera /base/axi/pcie@1000120000/rp1/i2c@80000/arducam_pivariety@c to CFE device /dev/media0 and ISP device /dev/media2 using PiSP variant BCM2712_D0
Made X/EGL preview window
Mode selection for 1280:400:12:P
R8,1280x400/0 - Score: 2000
R8,2560x720/0 - Score: 2533.33
R8,2560x800/0 - Score: 2420
R10_CSI2P,640x200/0 - Score: 2680
R10_CSI2P,1280x400/0 - Score: 1000
R10_CSI2P,2560x720/0 - Score: 1533.33
R10_CSI2P,2560x800/0 - Score: 1420
Stream configuration adjusted
[0:01:24.353851007] [1962] INFO Camera camera.cpp:1205 configuring streams: (0) 1280x400-YUV420 (1) 1280x400-MONO_PISP_COMP1
[0:01:24.417815109] [1965] INFO RPI pisp.cpp:1484 Sensor: ... - Selected sensor format: 1280x400-Y10_1X10 - Selected CFE format: 1280x400-PC1M
[0:01:25.570693420] [1965] WARN V4L2 v4l2_videodevice.cpp:2150 /dev/video4[16:cap]: Dequeue timer of 1000000.00us has expired!
[0:01:25.570739399] [1965] ERROR RPI pipeline_base.cpp:1420 Camera frontend has timed out!
[0:01:25.570745289] [1965] ERROR RPI pipeline_base.cpp:1421 Please check that your camera sensor connector is attached securely.
[0:01:25.570750810] [1965] ERROR RPI pipeline_base.cpp:1422 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
B0266 – Second attempt (SUCCESS):
$ libcamera-hello -t 0
[0:03:02.110649312] [2016] INFO Camera camera_manager.cpp:326 libcamera v0.5.0+84-79f583c3-dirty (2025-05-06T02:52:19BST)
[0:03:02.117595506] [2019] INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:13:50)
[0:03:02.145472173] [2019] ERROR IPAProxy ipa_proxy.cpp:171 Configuration file 'arducam-pivariety_mono.json' not found for IPA module 'rpi/pisp'
[0:03:02.322062339] [2019] INFO RPI pisp.cpp:1180 Registered camera ...
Made X/EGL preview window
Mode selection for 1280:400:12:P
...
Stream configuration adjusted
[0:03:02.363504420] [2016] INFO Camera camera.cpp:1205 configuring streams: (0) 1280x400-YUV420 (1) 1280x400-MONO_PISP_COMP1
[0:03:02.430220748] [2019] INFO RPI pisp.cpp:1484 Sensor: ... - Selected sensor format: 1280x400-Y10_1X10 - Selected CFE format: 1280x400-PC1M
The successful run just proceeds straight to the preview without the V4L2 dequeue timer warning or the timeout error.
Also, I tried your suggestion with the example.yaml file. I pointed LIBCAMERA_RPI_CONFIG_FILE at /usr/local/share/libcamera/pipeline/rpi/pisp/example.yaml with the timeout cranked up to 99999999. That suppressed the actual “timed out” error message, but the preview still didn’t start on the first attempt – just hung silently. Second attempt onwards worked fine again.
I’ve attached my config.txt, dmesg output, installed packages list, and uname output for reference. Let me know if you need anything else.
Thanks for the detailed logs – that’s really helpful.
A couple of things I notice:
The arducam-pivariety_mono.json IPA config file missing error shows up on both failed AND successful runs, so that’s probably not the culprit – looks like a cosmetic issue where the IPA module doesn’t have a tuning file for this sensor variant, but it falls back gracefully.
The actual failure point is the V4L2 dequeue timeout on /dev/video4 after exactly 1 second (1000000.00us). The CFE (Camera Front End) is never receiving the first frame from the sensor on that initial stream start.
The mode selection and stream configuration completes fine – same exact mode scores and selections in both runs – so the pipeline negotiation isn’t the problem.
Given that the B0266 works on the second attempt (until you reboot), and the B0263 never works at all, this is pointing toward something at the sensor initialization or clock sync level. I’d like to take a closer look at your setup in real time. I’ve sent you a private message with remote session details – please check your messages and we can schedule something.
Just following up after the remote session we had earlier this week. For anyone else following this thread – support took a look at my setup remotely and confirmed the behavior I described.
Has there been any progress on reproducing this in the lab? Curious if this is a known issue with certain hardware revisions or if there’s a firmware angle here.
Quick update: we’ve been unable to reproduce this first-boot timeout in our lab so far with the units we have on hand. This makes it difficult to develop a targeted fix since we can’t observe the failure directly.
At this point, the leading theory is that this could be isolated to your specific unit. The best next step would be to test with a new B0266 kit – that would help us determine whether this is a one-off hardware issue with your original board or something broader. If a replacement kit works fine on the same Pi with the same SD card, then we know it’s the original hardware.
Could you try sourcing another B0266 and report back?
Alright, I managed to get a new B0266 kit. Just finished testing it on the exact same Raspberry Pi 5, same SD card, no image changes whatsoever.
The new unit works perfectly. First attempt after cold boot – preview comes right up. Multiple reboots, works every single time. No timeout, no hiccups.
Now here’s the interesting part – the hardware revision is different:
Original (faulty): UC-512 Rev.D1 on the Camarray HAT
New (working): UC-512 Rev.D2
So it looks like a Rev.D1-specific issue. The Rev.D2 unit is solid.
One thing I did notice on the working Rev.D2 – dmesg shows these warnings that weren’t present before:
[ 439.343812] v4l2_get_link_freq: Link frequency estimated using pixel rate: result might be inaccurate
[ 439.343822] v4l2_get_link_freq: Consider implementing support for V4L2_CID_LINK_FREQ in the transmitter driver
[ 439.343825] rp1-cfe 1f00128000.csi: Using a link rate of 960 Mbps
These are just warnings though, and the camera works fine. Figured I’d mention them in case they’re relevant.
Great, that confirms the issue is specific to the UC-512 Rev.D1 hardware revision. The Rev.D2 working without issues on the same setup rules out your Pi, cables, OS image, and configuration.
Those dmesg link frequency warnings on the Rev.D2 are benign – they’re expected with this bundle kit and can be safely ignored. The driver is just estimating the link frequency from the pixel rate rather than reading a dedicated V4L2 control from the sensor driver.
Our engineering team is now working on a firmware update targeted specifically at UC-512 Rev.D (aiming to address whatever is causing the Rev.D1 initialization race). To help with that development, could you run the following on the Rev.D1 unit and paste the output?
dmesg | grep arducam
I’m specifically looking for the firmware version line from the sensor driver.
Thanks for the firmware version – that’s exactly what I needed. The dependency cycle messages are actually normal for this setup on the Pi 5; they’re device tree fixup messages where the kernel resolves circular dependencies in the device tree during boot. Nothing to worry about there.
So to summarize where we are:
The first-boot timeout issue is confirmed to be specific to UC-512 Rev.D1 hardware. Rev.D2 units work correctly on identical software and hardware setups.
The Rev.D1 sensor reports firmware version 0x10003.
Our engineering team is currently developing a firmware update for the UC-512 Rev.D series, specifically targeting the initialization race condition seen on Rev.D1.
I’ll update this thread once the firmware update tool is ready for testing. In the meantime, if you need to keep working, the workaround for the Rev.D1 is to simply run libcamera-hello twice – the second attempt will succeed since the sensor initializes properly after that first failed probe. Not ideal, but usable while we work on the proper fix.