16MP IMX519 not detected on Raspberry PI

Hi guys, I tried to set up my 16MP IMX519 camera on Raspberry PI 4 board with this OS:

  • System: 32-bit
  • Kernel version: 6.1
  • Debian version: 11 (bullseye)

I followed this set up manual: libcamera and libcamera-apps - Arducam Wiki

First problem I had was with downloading bash scripts:

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh 
chmod +x install_pivariety_pkgs.sh
bash: wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh: No such file or directory
bash: chmod +x install_pivariety_pkgs.sh: command not found

I downloaded this .sh file from github and executed it… also installed libcamera and libcamera-apps…
When I tried to use libcamera-hello command it didn’t work because camera is not detected

libcamera-hello
Made X/EGL preview window
[0:48:30.794884433] [2272]  INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4225-74d023d8
ERROR: *** no cameras available ***

Its connected properly, I enabled interfaces and legacy camera support.
Also tried this:

./install_pivariety_pkgs.sh -p imx519_kernel_driver
=================================================
Hardware Revision: c03114
Kernel Version: 6.1.28-v8+
OS Codename: bullseye
ARCH: aarch64
=================================================

kernel:6.1.28-v8+
--2023-05-12 12:04:00--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/imx519_kernel_driver_links.txt
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/6a6bdd5e-36d5-45bb-b44f-cb78d6f0b5f9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230512%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230512T100401Z&X-Amz-Expires=300&X-Amz-Signature=fb4deed14a4d74c97314f8a85da7002133a5995f770767b123656295a488b513&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dimx519_kernel_driver_links.txt&response-content-type=application%2Foctet-stream [following]
--2023-05-12 12:04:01--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/6a6bdd5e-36d5-45bb-b44f-cb78d6f0b5f9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230512%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230512T100401Z&X-Amz-Expires=300&X-Amz-Signature=fb4deed14a4d74c97314f8a85da7002133a5995f770767b123656295a488b513&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dimx519_kernel_driver_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11834 (12K) [application/octet-stream]
Saving to: ‘imx519_kernel_driver_links.txt’

imx519_kernel_driver_links.tx 100%[===============================================>]  11.56K  --.-KB/s    in 0.001s  

2023-05-12 12:04:01 (9.90 MB/s) - ‘imx519_kernel_driver_links.txt’ saved [11834/11834]


Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: c03114
Kernel Version: 6.1.28-v8+
Package: imx519_kernel_driver -- bullseye-v5
You are using an unsupported kernel version, please install the official SD Card image(do not execute rpi-update):
https://www.raspberrypi.com/software/operating-systems/

Every time I power on PI board it displays : Fail to load overlay Arducam.

I am completely new with this and I would really appreciate your advice.

@Richard

Could you please go through the tutorial again? Thank you.
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/#software-guide-for-imx519-camera