Libcamera Error V4L2

  1. Where did you get the camera module(s)?
    Arducam site

  2. Model number of the product(s)?
    64MP Autofocus Camera

  3. What hardware/platform were you working on?
    raspberry pi 4 8GB

  4. Instructions you have followed. (link/manual/etc.)

  5. Problems you were having?
    kernel version not supported

  6. The dmesg log from your hardware?

here is my “dmesg | grep 64mp” output:

[ 0.059366] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/arducam_64mp@1a
[ 7.395975] arducam_64mp 10-001a: Device found Arducam 64MP.
[ 7.397141] arducam_64mp 10-001a: Consider updating driver arducam_64mp to match on endpoints

Here is my output for “libcamera-hello”:

Preview window unavailable
[0:04:47.506868754] [9601] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9
[0:04:47.509757290] [9615] ERROR V4L2 v4l2_device.cpp:91 ‘dw9807 10-000c’: Failed to open V4L2 device: Invalid argument
[0:04:47.509835419] [9615] ERROR RPI raspberrypi.cpp:1254 Failed to open the lens device.
[0:04:47.511078474] [9615] WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for ‘arducam_64mp’
[0:04:47.511128919] [9615] WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:04:47.511199418] [9615] ERROR V4L2 v4l2_device.cpp:91 ‘dw9807 10-000c’: Failed to open V4L2 device: Invalid argument
[0:04:47.511239474] [9615] ERROR CameraSensor camera_sensor.cpp:469 ‘arducam_64mp 10-001a’: CameraLens initialisation failed
[0:04:47.511384678] [9615] ERROR RPI raspberrypi.cpp:1190 Failed to register camera arducam_64mp 10-001a: -22
ERROR: *** no cameras available ***

My camera was working before running “sudo apt update && sudo apt upgrade”

I also installed “libcamera-dev” and “libcamera-apps” from source since the install script is giviung me the following errors:

pi@raspberrypi:~ $ ./install_pivariety_pkgs.sh -p libcamera_apps

Hardware Revision: c03115
Kernel Version: 6.1.19-v8+
OS Codename: bullseye
ARCH: aarch64

kernel:6.1.19-v8+
Unsupported package.

Supported packages:
imx519_kernel_driver_low_speed
64mp_pi_hawk_eye_kernel_driver
libcamera_apps
libcamera_dev
imx519_kernel_driver
kernel_driver

@triple3567

The script has been updated, can you re-download the script and try again?

rm -rf install_pivariety_pkgs.sh
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
./install_pivariety_pkgs -l
./install_pivariety_pkgs -p libcamera
./install_pivariety_pkgs -p libcamera_apps

if Edwards script doesent work then u need to revert back to old kernel version. The version that definately works with 64mp is the 01/28/2022 bullseye OS image u can get it from archive, following this guide

Please let me know if edwards script worked or not then i know if i can safely make the upgrade to 6+ or not.

I was able to run “./install_pivariety_pkgs.sh -p libcamera” successfully

However “./install_pivariety_pkgs.sh -p libcamera_apps” gave the following error:

The following packages have unmet dependencies:
libcamera-apps : Depends: libcamera0 (>= 0~git20230310+f664da96) but 0~git20230302+923f5d70-1 is to be installed

@triple3567

That’s really weird, I’m on the same system as you and I’ve tried it many times and it works.

I can take a look remotely for you. You can send me an email ([email protected])

@henri

Please don’t worry, if there is a problem with the installation, I will help you solve it as soon as possible, this is my responsibility.

@triple3567

I just solved a user with a similar problem to yours.

temporary solution:

wget https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/libcamera-v0.0.5/libcamera0_0.git20230310+f664da96-1_arm64.deb
sudo dpkg -i libcamera-v0.0.5/libcamera0_0.git20230310+f664da96-1_arm64.deb
./install_pivariety_pkgs -p libcamera_apps

Hi, I upgraded to 6.1 kernel and eveyrthing is broken, please help me.

pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs.sh -p libcamera_apps

Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bookworm
ARCH: aarch64

kernel:6.1.19-v8+
–2023-03-28 17:56:17-- https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_apps_links_new.txt
Resolving github.com (github.com)… 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/49056771-967e-4ba1-8574-2f1a93924d7f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230328%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230328T145618Z&X-Amz-Expires=300&X-Amz-Signature=242180b1491ee28e83625037e0173f81ac010deb3574c5980362f9e57f07afc5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_apps_links_new.txt&response-content-type=application%2Foctet-stream [following]
–2023-03-28 17:56:18-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/49056771-967e-4ba1-8574-2f1a93924d7f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230328%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230328T145618Z&X-Amz-Expires=300&X-Amz-Signature=242180b1491ee28e83625037e0173f81ac010deb3574c5980362f9e57f07afc5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_apps_links_new.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.110.133, 185.199.108.133, 185.199.111.133, …
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1633 (1.6K) [application/octet-stream]
Saving to: ‘libcamera_apps_links.txt’

libcamera_apps_links.txt 100%[===========================================>] 1.59K --.-KB/s in 0s

2023-03-28 17:56:18 (6.58 MB/s) - ‘libcamera_apps_links.txt’ saved [1633/1633]

Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: libcamera_apps_new – bookworm-arm64-v5

Thank you for your help Edward I really appreciate it. I was able to install libcamera and libcamera apps with your temporary method, however I still fail to launch the camera properly. At this point I think i might have to re install the entire OS.

output of “libcamera-hello”:

pi@raspberrypi:~ $ libcamera-hello
Preview window unavailable
[0:02:28.622033903] [4684] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4223-f664da96
[0:02:28.644087847] [4690] WARN CameraSensorProperties camera_sensor_properties.cpp:243 No static properties available for ‘arducam_64mp’
[0:02:28.644154439] [4690] WARN CameraSensorProperties camera_sensor_properties.cpp:245 Please consider updating the camera sensor properties database
[0:02:28.644273753] [4690] ERROR V4L2 v4l2_device.cpp:92 ‘dw9807 10-000c’: Failed to open V4L2 device ‘/dev/v4l-subdev1’: Invalid argument
[0:02:28.644314271] [4690] ERROR CameraSensor camera_sensor.cpp:517 ‘arducam_64mp 10-001a’: Lens initialisation failed, lens disabled
[0:02:28.661437878] [4690] WARN RPI raspberrypi.cpp:1357 Mismatch between Unicam and CamHelper for embedded data usage!
[0:02:28.662542352] [4690] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:02:28.663432272] [4684] INFO Camera camera.cpp:1028 configuring streams: (0) 4624x3472-YUV420
[0:02:28.663801325] [4690] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 4624x3472-SBGGR10_1X10 - Selected unicam format: 4624x3472-pBAA
[0:02:28.691176566] [4690] ERROR V4L2 v4l2_videodevice.cpp:1248 /dev/video14[15:cap]: Not enough buffers provided by V4L2VideoDevice
ERROR: *** failed to allocate capture buffers ***

@triple3567

You need to add some configuration.

image

@henri

This problem has been fixed, please try again.

I still get the same bookworm error:

Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: libcamera – bookworm-arm64-v5

Full log:

C:\Users\henri>ssh [email protected]
[email protected]'s password:
Linux raspberrypi 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Mar 28 19:17:06 2023
pi@raspberrypi:~ $ cd Desktop
pi@raspberrypi:~/Desktop $ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root        7177816 6211936    617152  91% /
devtmpfs          682568       0    682568   0% /dev
tmpfs             946792       0    946792   0% /dev/shm
tmpfs             378720     900    377820   1% /run
tmpfs               5120      12      5108   1% /run/lock
/dev/mmcblk0p1    258095   31159    226937  13% /boot
tmpfs             189356      28    189328   1% /run/user/1000
pi@raspberrypi:~/Desktop $ rm -rf install_pivariety_pkgs.sh
pi@raspberrypi:~/Desktop $ wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
--2023-03-29 07:47:28--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/3fa64fd0-35ce-4c71-acc5-98fcc0a50766?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044728Z&X-Amz-Expires=300&X-Amz-Signature=661319fac65062bb42feb533973a0648c1fa61ec9b39f66921ec903b0c07e114&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dinstall_pivariety_pkgs.sh&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:47:28--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/3fa64fd0-35ce-4c71-acc5-98fcc0a50766?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044728Z&X-Amz-Expires=300&X-Amz-Signature=661319fac65062bb42feb533973a0648c1fa61ec9b39f66921ec903b0c07e114&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dinstall_pivariety_pkgs.sh&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11813 (12K) [application/octet-stream]
Saving to: ‘install_pivariety_pkgs.sh’

install_pivariety_pkgs.sh     100%[=================================================>]  11.54K  --.-KB/s    in 0.002s

2023-03-29 07:47:29 (7.03 MB/s) - ‘install_pivariety_pkgs.sh’ saved [11813/11813]

pi@raspberrypi:~/Desktop $ wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
--2023-03-29 07:47:30--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/3fa64fd0-35ce-4c71-acc5-98fcc0a50766?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044728Z&X-Amz-Expires=300&X-Amz-Signature=661319fac65062bb42feb533973a0648c1fa61ec9b39f66921ec903b0c07e114&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dinstall_pivariety_pkgs.sh&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:47:30--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/3fa64fd0-35ce-4c71-acc5-98fcc0a50766?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044728Z&X-Amz-Expires=300&X-Amz-Signature=661319fac65062bb42feb533973a0648c1fa61ec9b39f66921ec903b0c07e114&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dinstall_pivariety_pkgs.sh&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11813 (12K) [application/octet-stream]
Saving to: ‘install_pivariety_pkgs.sh’

install_pivariety_pkgs.sh     100%[=================================================>]  11.54K  --.-KB/s    in 0.002s

2023-03-29 07:47:30 (6.87 MB/s) - ‘install_pivariety_pkgs.sh’ saved [11813/11813]

pi@raspberrypi:~/Desktop $ chmod +x ./install_pivariety_pkgs.sh
pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs -l
-bash: ./install_pivariety_pkgs: No such file or directory
pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs.sh -l
=================================================
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bookworm
ARCH: aarch64
=================================================

--2023-03-29 07:47:57--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/packages.txt
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/7f94e1f0-3e12-48f7-8f30-b7bd8cfc8efd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044757Z&X-Amz-Expires=300&X-Amz-Signature=bb96e207f6522dfcc67932def25043ee25559f3dc4f6c8631f51ace62ac789c0&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dpackages.txt&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:47:57--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/7f94e1f0-3e12-48f7-8f30-b7bd8cfc8efd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044757Z&X-Amz-Expires=300&X-Amz-Signature=bb96e207f6522dfcc67932def25043ee25559f3dc4f6c8631f51ace62ac789c0&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dpackages.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1892 (1.8K) [application/octet-stream]
Saving to: ‘packages.txt’

packages.txt                  100%[=================================================>]   1.85K  --.-KB/s    in 0s

2023-03-29 07:47:57 (4.46 MB/s) - ‘packages.txt’ saved [1892/1892]

Supported packages:
        imx519_kernel_driver_low_speed
        imx708_kernel_driver
        libcamera
        64mp_pi_hawk_eye_kernel_driver
        libcamera_apps
        libcamera_dev
        imx519_kernel_driver
        kernel_driver

pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs -p libcamera
-bash: ./install_pivariety_pkgs: No such file or directory
pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs.sh -p libcamera
=================================================
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bookworm
ARCH: aarch64
=================================================

kernel:6.1.19-v8+
--2023-03-29 07:48:13--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_links.txt
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/af002796-9434-4c40-afab-59d7967f2611?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044813Z&X-Amz-Expires=300&X-Amz-Signature=39d0290189db063a941510474bba5f5da18f479676248b86e9a73984f411d7f5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_links.txt&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:48:13--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/af002796-9434-4c40-afab-59d7967f2611?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044813Z&X-Amz-Expires=300&X-Amz-Signature=39d0290189db063a941510474bba5f5da18f479676248b86e9a73984f411d7f5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3155 (3.1K) [application/octet-stream]
Saving to: ‘libcamera_links.txt’

libcamera_links.txt           100%[=================================================>]   3.08K  --.-KB/s    in 0s

2023-03-29 07:48:13 (9.61 MB/s) - ‘libcamera_links.txt’ saved [3155/3155]


Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: libcamera -- bookworm-arm64-v5

pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs.sh -p libcamera_apps
=================================================
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bookworm
ARCH: aarch64
=================================================

kernel:6.1.19-v8+
--2023-03-29 07:48:28--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_apps_links_new.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/49056771-967e-4ba1-8574-2f1a93924d7f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044828Z&X-Amz-Expires=300&X-Amz-Signature=5c1d0d9b4a7fb132db9817ae5b39bcb7ca32bb03d4d764e93335e72825ea3eb1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_apps_links_new.txt&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:48:29--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/49056771-967e-4ba1-8574-2f1a93924d7f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044828Z&X-Amz-Expires=300&X-Amz-Signature=5c1d0d9b4a7fb132db9817ae5b39bcb7ca32bb03d4d764e93335e72825ea3eb1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_apps_links_new.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1633 (1.6K) [application/octet-stream]
Saving to: ‘libcamera_apps_links.txt’

libcamera_apps_links.txt      100%[=================================================>]   1.59K  --.-KB/s    in 0s

2023-03-29 07:48:29 (6.73 MB/s) - ‘libcamera_apps_links.txt’ saved [1633/1633]


Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: libcamera_apps_new -- bookworm-arm64-v5

pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs.sh -l
=================================================
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bookworm
ARCH: aarch64
=================================================

--2023-03-29 07:48:43--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/packages.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/7f94e1f0-3e12-48f7-8f30-b7bd8cfc8efd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044843Z&X-Amz-Expires=300&X-Amz-Signature=5e57b624c3b090fa595793ede55baedf01d635a880918c11a5c89ffa04053f00&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dpackages.txt&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:48:43--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/7f94e1f0-3e12-48f7-8f30-b7bd8cfc8efd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044843Z&X-Amz-Expires=300&X-Amz-Signature=5e57b624c3b090fa595793ede55baedf01d635a880918c11a5c89ffa04053f00&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dpackages.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1892 (1.8K) [application/octet-stream]
Saving to: ‘packages.txt’

packages.txt                  100%[=================================================>]   1.85K  --.-KB/s    in 0s

2023-03-29 07:48:43 (7.67 MB/s) - ‘packages.txt’ saved [1892/1892]

Supported packages:
        imx519_kernel_driver_low_speed
        imx708_kernel_driver
        libcamera
        64mp_pi_hawk_eye_kernel_driver
        libcamera_apps
        libcamera_dev
        imx519_kernel_driver
        kernel_driver

pi@raspberrypi:~/Desktop $ ./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver
=================================================
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bookworm
ARCH: aarch64
=================================================

kernel:6.1.19-v8+
--2023-03-29 07:49:25--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/64mp_pi_hawk_eye_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/a0487b40-ef2c-4923-b366-3e8d0b6f0c88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044926Z&X-Amz-Expires=300&X-Amz-Signature=dc00e42328e65c678bbb6d6c532f94a53d3aa97ffde5c39aa2d21643f6b0b505&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3D64mp_pi_hawk_eye_kernel_driver_links.txt&response-content-type=application%2Foctet-stream [following]
--2023-03-29 07:49:26--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/a0487b40-ef2c-4923-b366-3e8d0b6f0c88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230329%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230329T044926Z&X-Amz-Expires=300&X-Amz-Signature=dc00e42328e65c678bbb6d6c532f94a53d3aa97ffde5c39aa2d21643f6b0b505&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3D64mp_pi_hawk_eye_kernel_driver_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11382 (11K) [application/octet-stream]
Saving to: ‘64mp_pi_hawk_eye_kernel_driver_links.txt’

64mp_pi_hawk_eye_kernel_drive 100%[=================================================>]  11.12K  --.-KB/s    in 0.003s

2023-03-29 07:49:26 (4.08 MB/s) - ‘64mp_pi_hawk_eye_kernel_driver_links.txt’ saved [11382/11382]


Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: 64mp_pi_hawk_eye_kernel_driver -- bookworm-arm64-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/

pi@raspberrypi:~/Desktop $

@henri

Are you using the official image?

I installed 01/28/2022 image(5.10 kernel) and then did sudo apt-get upgrade to 6.1.x kernel. I contacted [email protected] as described in the error message and they(Sales - Leekwi) fixed my problem:

It should be dtoverlay=arducam-64mp not dtoverlay=arducam_64mp.

In the /boot/config.txt This fixed the issue. I had previously:

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
dtoverlay=arducam_64mp
dtoverlay=arducam_64mp,cam1

[all]
dtoverlay=vc4-kms-v3d,cma-512

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=arducam_64mp

So I changed it to:

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
dtoverlay=arducam-64mp
dtoverlay=arducam-64mp,cam1

[all]
dtoverlay=vc4-kms-v3d,cma-512

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=arducam-64mp

And it works now!

@henri

Do you now have libcamera properly installed?

I saw your error that you can’t install libcamera, did you install it with the new version of the installation package?

I now managed to even build libcamera from source and install that custom build. But now i have another problem. I reflashed my Pi with 64-bit lite os and i cant get the 64mp driver installed to 6.1 kernel bookworm what did.

  1. flashed os
  2. installed the driver to 5.15.xx with
rm -rf install_pivariety_pkgs.sh
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
./install_pivariety_pkgs.sh  -p 64mp_pi_hawk_eye_kernel_driver

didnt even test the cameras after that

3. did sudo apt-get upgrade
got 6.1 os

4. built and installed gstreamer, libcamera and libcamera apps from source
5. put this to /boot/config.txt
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
dtoverlay=arducam-64mp
dtoverlay=arducam-64mp,cam1

[all]
dtoverlay=vc4-kms-v3d,cma-512

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=arducam-64mp

5. since cameras werent detected did again the:
pi@raspberrypi:~ $ ./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_ADDRESS = "et_EE.UTF-8",
	LC_NAME = "et_EE.UTF-8",
	LC_MONETARY = "et_EE.UTF-8",
	LC_PAPER = "et_EE.UTF-8",
	LC_IDENTIFICATION = "et_EE.UTF-8",
	LC_TELEPHONE = "et_EE.UTF-8",
	LC_MEASUREMENT = "et_EE.UTF-8",
	LC_TIME = "et_EE.UTF-8",
	LC_NUMERIC = "et_EE.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
=================================================
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
OS Codename: bullseye
ARCH: aarch64
=================================================

kernel:6.1.19-v8+
--2023-03-30 01:08:26--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/64mp_pi_hawk_eye_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/a0487b40-ef2c-4923-b366-3e8d0b6f0c88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230330T000826Z&X-Amz-Expires=300&X-Amz-Signature=34ecf63dfadf6c464af34360a86f6e83737bdd8699253645fe4b06f63d4b7949&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3D64mp_pi_hawk_eye_kernel_driver_links.txt&response-content-type=application%2Foctet-stream [following]
--2023-03-30 01:08:26--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/a0487b40-ef2c-4923-b366-3e8d0b6f0c88?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230330T000826Z&X-Amz-Expires=300&X-Amz-Signature=34ecf63dfadf6c464af34360a86f6e83737bdd8699253645fe4b06f63d4b7949&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3D64mp_pi_hawk_eye_kernel_driver_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11382 (11K) [application/octet-stream]
Saving to: '64mp_pi_hawk_eye_kernel_driver_links.txt'

64mp_pi_hawk_eye_kernel_driver_link 100%[================================================================>]  11.12K  --.-KB/s    in 0.002s  

2023-03-30 01:08:27 (6.56 MB/s) - '64mp_pi_hawk_eye_kernel_driver_links.txt' saved [11382/11382]


Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: 64mp_pi_hawk_eye_kernel_driver -- bullseye-arm64-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/


Now i have this error
Cannot find the corresponding package, please send the following information to [email protected]
Hardware Revision: b03140
Kernel Version: 6.1.19-v8+
Package: 64mp_pi_hawk_eye_kernel_driver – bullseye-arm64-v5
You are using an unsupported kernel version, please install the official SD Card image(do not execute rpi-update):
Operating system images – Raspberry Pi

when trying to install driver to 6.1 kernel

Can you help?

@henri

The 6.1.x version no longer needs to use the installation script to install the 64mp camera driver, you only need to configure the config.txt file.

i tried again and cameras are not detected.

  1. flashed with 64-bit LITE os 5.15kernel
  2. did sudo apt get update and sudo apt-get upgrade
  3. changed /boot/config.txt
  4. rebooted

Cameras are not even making sound at boot. This is my /boot/config.txt

dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
dtoverlay=arducam-64mp
dtoverlay=arducam-64mp,cam1

[all]
dtoverlay=vc4-kms-v3d,cma-512

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=arducam-64mp

it seems to me like its driver issue. the arducam64-mp.dtbo file exists under /boot/overalys

Before that I did that i did another experiment:

  1. flashed with 64-bit LITE os kernel 5.15 and didnt upgrade
  2. installed the 64mp hawkeye driver with script
  3. edited boot config
  4. rebooted
  5. cameras making sound at boot and after i installe libcamera i can see that cameras are detected

@henri

The sound you said should be the sound of the motor drive, in fact there is no sound is right. The sound driver may be old.

You should be judged by whether the camera can be found correctly and whether the focus function is working properly.

If you are not identified, I hope you can give some information.

uname -a
dmesg | grep 64mp
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux

pi@raspberrypi:~ $ dmesg | grep 64mp
[    0.084239] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/arducam_64mp@1a
[    8.297426] arducam_64mp 10-001a: Device found Arducam 64MP.
[    8.305581] arducam_64mp 10-001a: Consider updating driver arducam_64mp to match on endpoints
# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
dtoverlay=arducam-64mp
dtoverlay=arducam-64mp,cam1

[all]
dtoverlay=vc4-kms-v3d,cma-512

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=arducam-64mp

pi@raspberrypi:/boot/overlays $ ls -la | grep arducam
-rwxr-xr-x 1 root root   3492 Mar 30 06:31 arducam-64mp.dtbo
-rwxr-xr-x 1 root root   3026 Mar 30 06:31 arducam-pivariety.dtbo
-rwxr-xr-x 1 root root   3290 Jan 11 06:15 arducam_64mp.dtbo

yeah its the motor sound that i meant. when i would boot 5.15.x i would hear the motor sound, but now i upgraded to 6.1.xx and no more motor sound. I tried both with arducam_64mp and arducam-64mp.
sudo apt-get install libcamera-apps
libcamera-still --list-cameras
No Cameras!

I dont get it last time when upgraded from 5.10 kernel to 6.1.x i was able to detect cameras but something else was broken in the distro so i had to reflash.

Maybe the problem is with libcamera since i built it from source?

@henri
The motor drivers of 5.15.84 and 6.1.19 are different, but the names are the same. Did you use the installation script on 5.15.84, which will replace the original driver file, making it unusable on 6.1.x.