IMX519 PDAF Release

Well I am new to this forum. I am currently in a bit of trouble. I follow the sami camera guide for all kinds of camera guide can you tell me how correct and accurate it is?


I am very confused about your reference link. What camera do you use?

I’ve now got my arducam 16mp running properly in rpizero2 including autofocus. I ended up having a cable problem and I/O was not working properly.


What I have done:

sudo ./ -d
Hardware Revision: b03114
Kernel Version: 6.1.21-v8+
OS Codename: bullseye
ARCH: aarch64

Already add 'dtparam=i2c_vc=on' and 'dtparam=i2c_arm=on' in /boot/config.txt
You have installed our driver and it works.
If you want to redetect the camera, you need to modify the /boot/config.txt file and reboot.
Do you agree to modify the file?(y/n):
reboot now?(y/n):

sudo ./ -p libcamera
sudo ./ -p libcamera_apps

Issue n°1 when using command:

$ libcamera-still  --qt-preview
libEGL warning: DRI3: failed to query the version
Made QT preview window
[0:07:49.632962670] [1714]  INFO Camera camera_manager.cpp:297 libcamera v0.0.0+4367-ad9428b4
[0:07:49.717598353] [1732]  INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:07:49.717686057] [1732]  INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:07:49.718650110] [1714]  INFO Camera camera.cpp:1033 configuring streams: (0) 2328x1748-YUV420
[0:07:49.719206683] [1732]  INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:07:49.950677135] [1736] ERROR IPARPI cam_helper.cpp:257 Embedded data buffer parsing failed
[0:07:49.983973413] [1736] ERROR IPARPI cam_helper.cpp:257 Embedded data buffer parsing failed

The image is displayed but huge number of lines with “ERROR IPARPI cam_helper.cpp:257 Embedded data buffer parsing failed”

Issue n°2
$ dmesg|grep imx
[ 0.078143] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx519@1a
[ 8.420960] imx519 10-001a: Device found is imx519
[ 8.421746] imx519 10-001a: Consider updating driver imx519 to match on endpoints

How to update the driver as the command with -d has been already used?

Thank you

$ libcamera-jpeg --list-cameras
Available cameras
0 : imx519 [4656x3496 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx519@1a)
    Modes: 'SRGGB10_CSI2P' : 1280x720 [80.01 fps - (1048, 1042)/2560x1440 crop]
                             1920x1080 [60.05 fps - (408, 674)/3840x2160 crop]
                             2328x1748 [30.00 fps - (0, 0)/4656x3496 crop]
                             3840x2160 [18.00 fps - (408, 672)/3840x2160 crop]
                             4656x3496 [9.00 fps - (0, 0)/4656x3496 crop]

 dpkg -l | grep libcamera

ii  libcamera-apps                        1.2.1-1                           armhf        libcamera-apps
ii  libcamera-dev:armhf                   0~git20230724+ad9428b4-1          armhf        complex camera support library (development files)
ii  libcamera0:armhf                      0~git20230724+ad9428b4-1          armhf        complex camera support library
ii  python3-libcamera                     0~git20230720+bde9b04f-1          armhf        complex camera support library (Python 3 bindings)

Content of /boot/config.txt

1 Like

Please try the command below to close this error log:

Yes, the camera driver is installed on your Raspberry Pi.

Hi @Dion

The export command works like a charm: Thank you !

dmesg | grep imx always displays the message:
[ 8.898561] imx519 10-001a: Consider updating driver imx519 to match on endpoints
If my understanding is right, it asks to update the driver, may be the message is not the right one?

Thank you

1 Like

Nope, on the contrast, it shows that your camera is detected by the Raspberry Pi. If your camera is defective or something else, it will show “probe of 10-001a failed with error -5…”

ok, @Dion thank you for your answer. That’s crystal clear.

How can we get it properly setup on the Pi5 Bookworm? Thanks.

For now, support for PDAF of imx519 is not released. Please stay tuned.

1 Like

Hey, I want to get the RAW image of this PDAF sensor for another usage when previewing or capturing?. Is this possible?

Hello, I’m trying to get IMX519 autofocus to work on a Raspberry Pi 3:

PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)”
NAME=“Debian GNU/Linux”
VERSION=“12 (bookworm)”

My kernel version:


The camera is well recognized, however I do not have autofocus activated


libcamera-still -t 0

I get :

[0:26:42.580404324] [2479] WARN IPARPI ipa_base.cpp:725 Could not set AF_MODE - no AF algorithm
[0:26:42.580562241] [2479] WARN IPARPI ipa_base.cpp:1107 Could not set AF_SPEED - no focus algorithm
[0:26:42.580652918] [2479] WARN IPARPI ipa_base.cpp:1089 Could not set AF_RANGE - no focus algorithm

When I try to install the specific libraries (libcamera_dev and libcamera_apps), I get an error:

libcamera-dev: Depends: libcamera0.2 (= 0.2.0+rpt20240227-1) but 0.2.0+rpt20240418-1 is to be installed


What commands did you run to install the libcamera software?


I use official documentation :

Step 1. Download the bash scripts

wget -O
chmod +x

Step 2. Install libcamera

./ -p libcamera_dev

Step 3. Install libcamera-apps

./ -p libcamera_apps


We have just updated the Arducam custom libcamera to resolve this problem. Please run the commands below to install it again:

wget -O
chmod +x</strong>

./ -p libcamera_dev

./ -p libcamera_apps

1 Like

Thanks, it’s working.