I’ve received my IMX519 cameras and having problems using them.
First of all, I have 1Gb version of rpi3. I cannot find any info that 1GB is not enough to capture image greater than 1024x1024 px. This info should be told in compability charts.
I cannot get the camera module to focus at all. I always get this warning: “Could not set AF_MODE - no AF algorithm”.
No guide mentions the red lens cover. I removed it thinking that the focusing issues was caused by it.
I get the still image using this command, but the image is always out of focus:
libcamera-still -t 1 -o test.jpg --autofocus-mode auto --width 1024 --height 1024
I have also tried the manual focus option, but there is no change in focus with any value of lens position:
libcamera-still -t 1 --width 1024 --height 1024 -n -o test.jpg --autofocus-mode manual --lens-position 1024000000
I am unable to edit my post to include this info (getting 403):
More info:
mimyllyv@rpi:~ $ dpkg -l | grep libcamera
ii libcamera-dev:arm64 0.3.1+rpt20240906-1 arm64 complex camera support library (development files)
ii libcamera-ipa:arm64 0.3.1+rpt20240906-1 arm64 complex camera support library (IPA modules)
ii libcamera-tools 0.3.1+rpt20240906-1 arm64 complex camera support library (tools)
ii libcamera0.3:arm64 0.3.1+rpt20240906-1 arm64 complex camera support library
ii pipewire-libcamera:arm64 0.3.65-3+rpt8+deb12u1 arm64 PipeWire libcamera plugin
ii python3-libcamera:arm64 0.3.1+rpt20240906-1 arm64 complex camera support library (Python bindings)
mimyllyv@rpi:~ $ uname -a
Linux rpi 6.6.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux
Where did you get the camera module(s)?
Directly from arducam.
Model number of the product(s).
B0371
What hardware/platform were you working on?
Hardware name: Raspberry Pi 3 Model B Plus Rev 1.3 (DT)
The update works great! Now the focus is working. Thank you.
Could you help with the other problem? I am not able to capture photos in full 16M resolution. For what I have read, the problem lies to cma memory is low. For me it is 64M. I’ve was able to increase it to 128M, but now I cannot capture even 1024x1024 pixel image. What can I do to increase captured image size?
To increase cma, I alter /boot/firmware/cmdline.txt. At the end of first line I add cma=128M:
console=serial0,115200 console=tty1 root=PARTUUID=c5b9660b-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=FI cma=128M
If I try to change the size of cma memory (64M, 192M, 256M, 384M, 512M), I am not able to capture any image. The error message is always:
dmaHeap allocation failure for rpicam-apps0
ERROR: *** failed to allocate capture buffers for stream ***
Even if I set the cmdline.txt’s last parameter to be cma=64M, which is the default value, I cannot capture image.
If I remove the cma param from cmdline.txt alltogether, I am able to capture images, but not in full res.
Here is info from dmesg when I try to capture image without --width and --height parameters to libcamera-still (full resolution?). I have no cma parameter in cmdline.txt: