Libcamera & IMX519 FAQ

Question 1:
I get an error similar to the following when installing the kernel driver:

Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03111
Kernel Version: 5.4.83-v7l+

Solution:
Need to install the latest Raspberry Pi system, and do not execute rpi-update
https://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2021-11-08/
https://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2022-01-28/

Question 2:
I get the following error when running libcamera:

....
[0:01:46.295273858] [631] INFO Camera camera.cpp:1028 configuring streams: (0) 4656x3496-YUV420 (1) 4656x3496-SRGGB10_CSI2P 
[0:01:46.296042453] [632] INFO RPI raspberrypi.cpp:751 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 4656x3496-SRGGB10_1X10 - Selected unicam format: 4656x3496-pRAA
 [0:01:46.351230171] [632] ERROR V4L2 v4l2_videodevice.cpp:1179 /dev/video0[12:cap]: Unable to request 1 buffers: Cannot allocate memory 
ERROR: *** failed to allocate capture buffers ***

Solution:
Modify /boot/config.txt to add dtoverlay=vc4-kms-v3d,cma-<size>
1e2e4414-8f29-43f0-a603-382072320c40

Example:
333938a4-1166-47fe-b9a0-c7102bf2bd2c

Note: It is recommended to set to cma-128 or cma-96 on devices with smaller memory such as Pi Zero / Zero 2 W