Arducam camera capture fails on Raspberry Pi after clean Raspbian Bullseye install

Hi, I got an Arducam PiVariety camera for my Raspberry Pi and I can’t get it to work at all. I did a clean install of Raspbian bullseye and followed the paper instructions that came in the box, but capturing just fails. Hoping someone can help me figure out what’s going on.

Here’s what I ran and what came back:

cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/”
SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”

dmesg | grep arducam
[ 12.837816] arducam: loading out-of-tree module taints kernel.
[ 12.861686] arducam-pivariety 10-000c: firmware version: 0x10001
[ 13.589788] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints

ls /dev/video* -l
crw-rw----+ 1 root video 81, 13 Jun 23 12:04 /dev/video0
crw-rw----+ 1 root video 81, 14 Jun 23 12:04 /dev/video1
crw-rw----+ 1 root video 81, 4 Jun 23 12:04 /dev/video10
crw-rw----+ 1 root video 81, 7 Jun 23 12:04 /dev/video11
crw-rw----+ 1 root video 81, 10 Jun 23 12:04 /dev/video12
crw-rw----+ 1 root video 81, 0 Jun 23 12:04 /dev/video13
crw-rw----+ 1 root video 81, 1 Jun 23 12:04 /dev/video14
crw-rw----+ 1 root video 81, 2 Jun 23 12:04 /dev/video15
crw-rw----+ 1 root video 81, 3 Jun 23 12:04 /dev/video16
crw-rw----+ 1 root video 81, 11 Jun 23 12:04 /dev/video18
crw-rw----+ 1 root video 81, 5 Jun 23 12:04 /dev/video20
crw-rw----+ 1 root video 81, 6 Jun 23 12:04 /dev/video21
crw-rw----+ 1 root video 81, 8 Jun 23 12:04 /dev/video22
crw-rw----+ 1 root video 81, 9 Jun 23 12:04 /dev/video23
crw-rw----+ 1 root video 81, 12 Jun 23 12:04 /dev/video31

libcamera-still -t 5000 -o test.jpg
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:02:33.724619925] [1529] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[0:02:33.748006153] [1543] WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for ‘arducam-pivariety’
[0:02:33.748130531] [1543] WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:02:33.748207512] [1543] ERROR CameraSensor camera_sensor.cpp:591 ‘arducam-pivariety 10-000c’: Camera sensor does not support test pattern modes.
[0:02:33.801612923] [1543] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file ‘arducam-pivariety.json’ not found for IPA module ‘raspberrypi’
[0:02:34.177531995] [1543] WARN RPI raspberrypi.cpp:1263 Mismatch between Unicam and CamHelper for embedded data usage!
[0:02:34.178808011] [1543] INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/i2c@1/arducam@0c to Unicam device /dev/media3 and ISP device /dev/media0
[0:02:34.179875326] [1529] INFO Camera camera.cpp:1029 configuring streams: (0) 2328x1748-YUV420
[0:02:34.212080493] [1543] INFO RPI raspberrypi.cpp:764 Sensor: /base/soc/i2c0mux/i2c@1/arducam@0c - Selected sensor format: 2320x1732-SBGGR10_1X10 - Selected unicam format: 2320x1732-pBAA
terminate called after throwing an instance of ‘std::runtime_error’
what(): failed to import fd 19
Aborted

Any ideas? I’m completely stuck.

Thanks for the detailed logs, that helps a lot. This looks like the driver didn’t install successfully.

Quick question - were you following the paper instructions that came in the box? Those can be out of date. Please stop following the paper version and use the updated online guide instead:

https://www.arducam.com/docs/cameras-for-raspberry-pi/pivariety/unboxing-video-pivariety-camera/#ftoc-heading-7

If the camera still doesn’t work after that, please gather the info described in this post so we can actually diagnose it:

Give the online guide a try and let us know how it goes.

I went through the online guide this time instead of the paper one, and it’s still not working - the camera won’t capture at all. I even tried moving to a different OS (buster) to rule things out, but no luck, the driver still seems broken to me. What info do you need from me to dig into this?

No problem, let’s get some diagnostics so we can see why the driver/camera isn’t functioning. Can you send me these two things:

  1. The contents of your boot config: cat /boot/config.txt
  2. The list of video devices, so we can check whether /dev/video0 exists: ls /dev/video*

Once I have those I can tell you where things are breaking.

OK, here’s everything. Note this is now on Raspbian buster (I switched OS) and the camera is still broken.

libcamera-still -t 5000 -o test.jpg
libEGL warning: DRI2: failed to authenticate
[0:01:25.923918040] [1350] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3139-5baab39e
[0:01:25.931709083] [1361] WARN CameraSensor camera_sensor.cpp:197 ‘arducam-pivariety 10-000c’: Recommended V4L2 control 0x009a0922 not supported
[0:01:25.946409420] [1361] WARN CameraSensor camera_sensor.cpp:249 ‘arducam-pivariety 10-000c’: The sensor kernel driver needs to be fixed
[0:01:25.946561300] [1361] WARN CameraSensor camera_sensor.cpp:251 ‘arducam-pivariety 10-000c’: See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:01:25.948702778] [1361] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for ‘arducam-pivariety’
[0:01:25.948844606] [1361] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:01:25.948907525] [1361] WARN CameraSensor camera_sensor.cpp:414 ‘arducam-pivariety 10-000c’: Failed to retrieve the camera location
[0:01:25.990909924] [1361] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file ‘arducam-pivariety.json’ not found for IPA module ‘raspberrypi’
[0:01:26.367585898] [1350] INFO Camera camera.cpp:937 configuring streams: (0) 2328x1748-YUV420
[0:01:26.367882002] [1361] INFO RPI raspberrypi.cpp:122 Mode: 4640x3472 fmt RG10 Score: 2510.72 (best 2510.72)
[0:01:26.368002110] [1361] INFO RPI raspberrypi.cpp:122 Mode: 2320x1732 fmt RG10 Score: 1550.88 (best 1550.88)
[0:01:26.368069873] [1361] INFO RPI raspberrypi.cpp:122 Mode: 3264x2464 fmt RG10 Score: 1934.4 (best 1550.88)
[0:01:26.368134458] [1361] INFO RPI raspberrypi.cpp:122 Mode: 3840x2160 fmt RG10 Score: 2148.24 (best 1550.88)
[0:01:26.368197950] [1361] INFO RPI raspberrypi.cpp:122 Mode: 2592x1944 fmt RG10 Score: 1615.57 (best 1550.88)
[0:01:26.368261911] [1361] INFO RPI raspberrypi.cpp:122 Mode: 1920x1080 fmt RG10 Score: 3819.24 (best 1550.88)
[0:01:26.368329777] [1361] INFO RPI raspberrypi.cpp:122 Mode: 1280x800 fmt RG10 Score: 5592.57 (best 1550.88)
[0:01:26.368396186] [1361] INFO RPI raspberrypi.cpp:122 Mode: 1280x720 fmt RG10 Score: 5819.24 (best 1550.88)
[0:01:26.368461240] [1361] INFO RPI raspberrypi.cpp:122 Mode: 4640x3472 fmt pRAA Score: 2010.72 (best 1550.88)
[0:01:26.368526399] [1361] INFO RPI raspberrypi.cpp:122 Mode: 2320x1732 fmt pRAA Score: 1050.88 (best 1050.88)
[0:01:26.368589578] [1361] INFO RPI raspberrypi.cpp:122 Mode: 3264x2464 fmt pRAA Score: 1434.4 (best 1050.88)
[0:01:26.368653226] [1361] INFO RPI raspberrypi.cpp:122 Mode: 3840x2160 fmt pRAA Score: 1648.24 (best 1050.88)
[0:01:26.368715572] [1361] INFO RPI raspberrypi.cpp:122 Mode: 2592x1944 fmt pRAA Score: 1115.57 (best 1050.88)
[0:01:26.368778647] [1361] INFO RPI raspberrypi.cpp:122 Mode: 1920x1080 fmt pRAA Score: 3319.24 (best 1050.88)
[0:01:26.368841461] [1361] INFO RPI raspberrypi.cpp:122 Mode: 1280x800 fmt pRAA Score: 5092.57 (best 1050.88)
[0:01:26.368905057] [1361] INFO RPI raspberrypi.cpp:122 Mode: 1280x720 fmt pRAA Score: 5319.24 (best 1050.88)
[0:01:26.424092482] [1361] INFO RPI raspberrypi.cpp:624 Sensor: /base/soc/i2c0mux/i2c@1/arducam@0c - Selected mode: 2320x1732-pRAA
[0:01:28.529404292] [1361] ERROR V4L2 v4l2_videodevice.cpp:1165 /dev/video14[15:cap]: Not enough buffers provided by V4L2VideoDevice
[0:01:28.536573814] [1361] ERROR RPI raspberrypi.cpp:821 Failed to allocate buffers
terminate called without an active exception
Aborted

cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/”
SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”

dmesg | grep arducam
[ 9.512452] arducam: loading out-of-tree module taints kernel.
[ 9.528738] arducam-pivariety 10-000c: firmware version: 0x10001
[ 33.754528] arducam_vddl: disabling
[ 33.754547] arducam_vdig: disabling
[ 33.754559] arducam_vana: disabling

ls /dev/video* -l
crw-rw----+ 1 root video 81, 7 Jun 24 14:10 /dev/video0
crw-rw----+ 1 root video 81, 8 Jun 24 14:10 /dev/video1
crw-rw----+ 1 root video 81, 4 Jun 24 14:10 /dev/video10
crw-rw----+ 1 root video 81, 5 Jun 24 14:10 /dev/video11
crw-rw----+ 1 root video 81, 6 Jun 24 14:10 /dev/video12
crw-rw----+ 1 root video 81, 0 Jun 24 14:10 /dev/video13
crw-rw----+ 1 root video 81, 1 Jun 24 14:10 /dev/video14
crw-rw----+ 1 root video 81, 2 Jun 24 14:10 /dev/video15
crw-rw----+ 1 root video 81, 3 Jun 24 14:10 /dev/video16

cat /proc/meminfo
MemTotal: 946392 kB
MemFree: 55800 kB
MemAvailable: 200956 kB
Buffers: 3580 kB
Cached: 336936 kB
SwapCached: 11212 kB
Active: 137320 kB
Inactive: 689792 kB
Active(anon): 14528 kB
Inactive(anon): 629016 kB
Active(file): 122792 kB
Inactive(file): 60776 kB
Unevictable: 16 kB
Mlocked: 16 kB
SwapTotal: 102396 kB
SwapFree: 18172 kB
Dirty: 2448 kB
Writeback: 0 kB
AnonPages: 475544 kB
Mapped: 294784 kB
Shmem: 156944 kB
KReclaimable: 13288 kB
Slab: 32008 kB
SReclaimable: 13288 kB
SUnreclaim: 18720 kB
KernelStack: 2832 kB
PageTables: 13892 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 575592 kB
Committed_AS: 3181568 kB
VmallocTotal: 1114112 kB
VmallocUsed: 4004 kB
VmallocChunk: 0 kB
Percpu: 464 kB
CmaTotal: 65536 kB
CmaFree: 21784 kB

cat /boot/config.txt

For more options and information see

http://rpf.io/configtxt

Some settings may impact device functionality. See link above for details

uncomment if you get no picture on HDMI for a default “safe” mode

#hdmi_safe=1

uncomment this if your display has a black border of unused pixels visible

and your display can output without overscan

#disable_overscan=1

uncomment the following to adjust overscan. Use positive numbers if console

goes off screen, and negative if there is too much border

#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

uncomment to force a console size. By default it will be display’s size minus

overscan.

#framebuffer_width=1280
#framebuffer_height=720

uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1

uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1
#hdmi_mode=1

uncomment to force a HDMI mode rather than DVI. This can make audio work in

DMT (computer monitor) modes

#hdmi_drive=2

uncomment to increase signal to HDMI, if you have interference, blanking, or

no display

#config_hdmi_boost=4

uncomment for composite PAL

#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

Uncomment some or all of these to enable the optional hardware interfaces

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

Additional overlays and parameters are documented /boot/overlays/README

Enable audio (loads snd_bcm2835)

dtparam=audio=on

[pi4]

Enable DRM VC4 V3D driver on top of the dispmanx display stack

dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=arducam

Still getting buffer errors and the camera never captures. Really stuck here.

Thanks, this is helpful. A few things stand out from the buster setup:

  • The driver does load and the sensor is detected: arducam-pivariety 10-000c: firmware version: 0x10001, and the camera registers on the Unicam/ISP devices.
  • But capture dies during buffer allocation:
    [0:01:28.529404292] [1361] ERROR V4L2 v4l2_videodevice.cpp:1165 /dev/video14[15:cap]: Not enough buffers provided by V4L2VideoDevice
    [0:01:28.536573814] [1361] ERROR RPI raspberrypi.cpp:821 Failed to allocate buffers
  • dmesg also shows the rails getting powered down: arducam_vddl / arducam_vdig / arducam_vana: disabling.
  • And libcamera still can’t find the IPA config: Configuration file ‘arducam-pivariety.json’ not found for IPA module ‘raspberrypi’.
  • Your config.txt has dtoverlay=arducam enabled under [all], and vc4-fkms-v3d commented out there, so the overlay side looks like it’s being applied.

So the pattern we’re seeing across both bullseye and buster is that the sensor shows up, but the libcamera side keeps failing (missing IPA config file, then buffer allocation failing). That still points back to the driver package not being installed/loaded correctly, which is why both OS attempts behave the same way.

Before we go further: can you confirm you ran the install from the online guide start to finish on a fresh image, and whether the arducam-pivariety.json IPA config file exists anywhere under /usr/share/libcamera/ipa/? That missing file is likely the key. I’ll also send you a diagnostic package privately so we can pull a full driver install log - check your messages. Hang in there, we’ll get this sorted.