Here’s the detailed environment info, and I’ve attached the bug report file.
Product: Arducam 16MP Autofocus
Platform: Raspberry Pi 4B 1GB, Raspbian GNU/Linux 12 (bookworm)
Kernel: 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
libcamera v0.3.2+51-28bff115-dirty (2024-10-08T07:32:37BST)
From libcamera-still -t 3000 --autofocus-range normal --autofocus-mode continuous -n -o test.jpg:
Could not open any dmaHeap device
[0:00:36.661966458] [1515] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+51-28bff115-dirty (2024-10-08T07:32:37BST)
[0:00:36.682443273] [1540] ERROR V4L2 v4l2_device.cpp:91 ‘ak7375 10-000c’: Failed to open V4L2 device ‘/dev/v4l-subdev1’: Invalid argument
[0:00:36.682839458] [1540] ERROR CameraSensor camera_sensor.cpp:554 ‘imx519 10-001a’: Lens initialisation failed, lens disabled
[0:00:36.713308902] [1540] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:00:36.716583143] [1540] INFO RPI vc4.cpp:455 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media0
[0:00:36.717538606] [1540] INFO RPI pipeline_base.cpp:1151 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
Mode selection for 2328:1748:12:P
SRGGB10_CSI2P,1280x720/0 - Score: 5319.24
SRGGB10_CSI2P,1920x1080/0 - Score: 3319.24
SRGGB10_CSI2P,2328x1748/0 - Score: 1000
SRGGB10_CSI2P,3840x2160/0 - Score: 1648.24
SRGGB10_CSI2P,4656x3496/0 - Score: 2019
Stream configuration adjusted
[0:00:36.723411810] [1515] INFO Camera camera.cpp:1197 configuring streams: (0) 2328x1748-YUV420 (1) 2328x1748-SRGGB10_CSI2P
[0:00:36.723998976] [1540] INFO RPI vc4.cpp:630 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
dmaHeap allocation failure for rpicam-apps0
ERROR: *** failed to allocate capture buffers for stream ***
From libcamera-still -t 0:
[0:09:11.984494610] [3368] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+51-28bff115-dirty (2024-10-08T07:32:37BST)
[0:09:12.005886037] [3374] ERROR V4L2 v4l2_device.cpp:91 ‘ak7375 10-000c’: Failed to open V4L2 device ‘/dev/v4l-subdev1’: Invalid argument
[0:09:12.005996518] [3374] ERROR CameraSensor camera_sensor.cpp:554 ‘imx519 10-001a’: Lens initialisation failed, lens disabled
Preview window unavailable
[0:09:12.329509724] [3374] ERROR V4L2 v4l2_videodevice.cpp:1266 /dev/video0[13:cap]: Unable to request 2 buffers: Cannot allocate memory
[0:09:12.329905221] [3374] ERROR RPI pipeline_base.cpp:700 Failed to allocate buffers
ERROR: *** failed to start camera ***
dmesg | grep -E “imx477|imx519|arducam”:
[0.047262] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx519@1a
[2.609263] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx519@1a
[7.692154] imx519 10-001a: Device found is imx519
vcgencmd get_camera → supported=1 detected=0, libcamera interfaces=1
ls /dev/video0 → /dev/video0
vcgencmd get_mem arm && vcgencmd get_mem gpu → arm=896M, gpu=128M
config.txt key lines:
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
start_x=1
display_auto_detect=1
auto_initramfs=1
#dtoverlay=vc4-kms-v3d,cma-512
max_framebuffers=2
disable_overscan=1
arm_boost=1
[all]
dtoverlay=imx519
gpu_mem=128
otg_mode=1
/proc/meminfo key values:
MemTotal: 877792 kB
MemFree: 165224 kB
MemAvailable: 561680 kB
SwapTotal: 204796 kB
SwapFree: 204796 kB
CommitLimit: 643692 kB
Committed_AS: 863192 kB
CmaTotal: 409600 kB
CmaFree: 108348 kB
As mentioned, I already tried cma=400M and cma=512M in cmdline.txt and still got the same errors. Bug report is attached.