Hi everyone, I’m stuck with my Arducam ToF Camera on a Raspberry Pi. The system detects the camera fine and all the dependencies/code seem to be in place, but I can’t capture any image. Every preview program just produces nothing and loops forever. I found GitHub issue 66 which looks like the exact same thing: Compilation error could not open device node /dev/video0 · Issue #66 · ArduCAM/Arducam_tof_camera · GitHub
Thanks for the report. Can you post your OS/kernel details and architecture? Also, could you run a raw streaming test and check the kernel log for the camera driver? Try:
v4l2-ctl -d0 --set-fmt-video=width=240,height=180,pixelformat='Y12 ’ --stream-mmap --stream-count=-1
and then:
sudo dmesg | grep arducam
Sure. I’m on Raspbian GNU/Linux 11 (bullseye), kernel Linux 6.1.21-v8+, arm64.
The v4l2-ctl command produces no output at all — I have to Ctrl+C to stop it.
dmesg gives this:
[ 0.071816] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/arducam_pivariety@c
[ 8.882341] arducam-pivariety 10-000c: firmware version: 0x10002
[ 9.247502] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints
I also made sure the software is up to date and tested with several other cables and cameras — the cable and port work fine. I suspect it’s a driver problem, but I can’t find any official driver update info online.
Thanks, that’s useful. Can you attach the output of v4l2-ctl --all (camera info) and your /boot/config.txt? If you have the full dmesg log, please attach that as well.
Here you go:
Thanks. From the dmesg output, the camera is on the arducam-pivariety driver at i2c@1, address 0c, and the firmware reports version 0x10002. The line ‘Consider updating driver arducam-pivariety to match on endpoints’ is a strong hint that the driver and firmware versions don’t match, which would explain why the camera is detected but no frames come through. We’re checking what driver/firmware combination is correct for this camera on kernel 6.1.21-v8+. I’ll post back once I have an update or a workaround.