Hi, hoping someone can help. I’m trying to get a 16MP Arducam (IMX519) working on my FluiddPi setup and I’m stuck. I followed the Arducam Raspberry Pi libcamera guide (Redirecting...), and the install looked like it went fine, but when I run libcamera-still --list-cameras I get a wall of errors and I can’t get to the part where you capture a test image. Not sure where I went wrong.
Happy to help. First, can you tell me a bit more about the environment? Which distro/kernel you’re running, the libcamera version, and the exact commands you ran? And please paste the full output of libcamera-still --list-cameras including all the warnings/errors you’re seeing.
Sure. It’s FluiddPi (GitHub - fluidd-core/FluiddPI: FluiddPi - A Pi image with Klipper, Moonraker, Fluidd and Web Camera support pre-installed. · GitHub) - basically OctoPrint but for Klipper 3D printers. Kernel is 5.15.32-v7l+, which I got by running:
sudo rpi-update 74b4d8722026cf1db5f8a3953bca2639dc548667
Then:
libcamera-still --list-cameras
Output:
[1:48:46.503449031] [4750] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[1:48:46.521953318] [4751] WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'imx519'
[1:48:46.521994929] [4751] WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[1:48:46.522326425] [4751] ERROR CameraSensor camera_sensor.cpp:591 'imx519 10-001a': Camera sensor does not support test pattern modes.
[1:48:46.539442100] [4751] WARN RPI raspberrypi.cpp:1263 Mismatch between Unicam and CamHelper for embedded data usage!
[1:48:46.539938167] [4751] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[1:48:46.540214942] [4751] INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media2 and ISP device /dev/media0
Available cameras
-----------------
0 : imx519 [4656x3496] (/base/soc/i2c0mux/i2c@1/imx519@1a)
Modes: 'SRGGB10_CSI2P' : 1280x720 1920x1080 2328x1748 3840x2160 4656x3496
[1:48:46.540861230] [4751] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[13:cap]: Unable to request 0 buffers: Device or resource busy
[1:48:46.541116579] [4751] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[13:cap]: Unable to request 0 buffers: Device or resource busy
The camera is detected (imx519 10-001a) and shows the modes, so it’s half working, but I just can’t get any further to actually grab a test image.
Thanks, that’s a good log. A couple of those lines are actually normal for third-party sensors:
- “No static properties available” and “does not support test pattern modes” are just warnings - the IMX519 isn’t in the default tuning/properties DB, so you can usually ignore those.
- The Unicam/CamHelper mismatch and the DelayedControls error are driver-side noise and usually not fatal by themselves.
The line that actually matters is the last one:
/dev/video0[13:cap]: Unable to request 0 buffers: Device or resource busy
That means something else already has the video device open when libcamera tries to use it.
Since you’re on FluiddPi, do you have a webcam configured (crowsnest / ustreamer / Moonraker webcam section)? Those services tend to grab the camera on boot. Try stopping the webcam service and re-running the command.
Good call, I didn’t even think about that. I found a webcam block in my Moonraker/crowsnest setup. I disabled crowsnest, rebooted, and re-ran libcamera-still --list-cameras. Still the same errors including the two “Device or resource busy” lines on /dev/video0. So it doesn’t look like it’s crowsnest holding it.
OK, so it’s not just a service grabbing the camera. Let’s narrow it down.
- What does
dmesg | grep -i imx519show? I want to see if the sensor and driver are probing cleanly. - What camera lines do you have in
/boot/config.txt(dtoverlay / camera_auto_detect etc.)? - After a fresh boot, before you run any camera command, can you check
sudo fuser /dev/video0to see if anything claims the device?
Here we go.
dmesg | grep -i imx519 mostly shows the sensor registering and being bound to the i2c on 10-001a, nothing obviously failing.
In /boot/config.txt I have the IMX519 overlay enabled as the guide instructs (camera_auto_detect off).
sudo fuser /dev/video0 returns nothing on a fresh boot, so nothing is holding it at boot. The “busy” only shows up when libcamera itself runs. So it’s a bit strange.
That’s useful - if nothing holds /dev/video0 at boot but libcamera reports busy when it enumerates, it can mean the driver/ISP pipeline isn’t being set up the way the installed libcamera expects (overlay vs. userspace mismatch), or you’ve got a mix of libcamera packages from different sources.
Can you confirm what libcamera stuff is installed? Please run:
dpkg -l | grep libcamera
Also, has anything else on the system (a python libcamera binding, another app) been installed or left running? And is the install on this image fresh, or did you update kernel with rpi-update after installing libcamera?
I installed libcamera first, then did the rpi-update to that specific commit afterward - I was following the guide in order but the kernel step came after. Not sure if that ordering matters.
As for packages, I’ll grab the dpkg -l | grep libcamera output for you. Nothing else that I know of is using the camera besides the Fluidd/crowsnest webcam which I already turned off.
The order can matter - if you swapped the kernel after installing the libcamera userspace stack, you can end up with an interface mismatch (that’s often what the “Mismatch between Unicam and CamHelper” line is hinting at).
To really pin this down I need two things from you:
- The output of
dpkg -l | grep libcameraso I can see exactly which version/packages are in play. - A full camera bug report. Please run:
camera-bug-report -t 5 -o bug.txt -c "libcamera-still -t 1000 -o test.jpg"
That will generate a bug.txt on the Pi with the driver/ISP details we need.
Once you have it, don’t paste the whole thing here - I’ll send you a private message with a way to share the file with us directly.
Alright, I ran both. The dpkg -l | grep libcamera output I can paste here. For the bug report, camera-bug-report created bug.txt on the Pi just like you said. I’ll get the file to you the way you described.
Perfect. I’ve sent you the details privately for getting bug.txt over to us. Once we have it plus the libcamera package list, we can dig into whether this is the kernel/userspace mismatch, a pipeline/overlay issue, or something specific to FluiddPi’s base image.
Quick recap of where we are so far, so anyone else following along has the context:
- Hardware: 16MP Arducam IMX519 on a Raspberry Pi running FluiddPi (Klipper-based, OctoPrint-like).
- Kernel 5.15.32-v7l+ via
sudo rpi-update 74b4d8722026cf1db5f8a3953bca2639dc548667, libcamera v0.0.0+3572-e13ccdd5. - Camera enumerates fine and shows the SRGGB10_CSI2P modes, but
libcamera-still --list-camerasthrowsUnable to request 0 buffers: Device or resource busyon /dev/video0. - Disabling the crowsnest/webcam service and rebooting did NOT fix it, and nothing holds /dev/video0 at boot.
- Remaining suspects: libcamera userspace vs. kernel/driver mismatch (Unicam/CamHelper embedded data mismatch), or a pipeline/overlay setup issue on this image.
Root cause isn’t confirmed yet - we need the diagnostic outputs to call it. Please share dpkg -l | grep libcamera and the bug.txt and we’ll take it from there.