64 MP camera driver not installing on RPI 3B+

I am trying to install the 64 MP camera using the manual instructions found here: https://www.arducam.com/downloads/arducam_64mp_pi_camera_manual.pdf. However, my RPI is giving the following error:

$ ./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver
=================================================
Hardware Revision: a020d3
Kernel Version: 5.15.84-v8+
OS Codename: bullseye
ARCH: aarch64
=================================================

kernel:5.15.84-v8+
--2023-02-07 13:52:45--  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%2F20230207%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230207T125245Z&X-Amz-Expires=300&X-Amz-Signature=dc6b2b5488e8a12a9bfe43e1efdae60693801281d508565bdb6458b30fc66276&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-02-07 13:52:45--  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%2F20230207%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230207T125245Z&X-Amz-Expires=300&X-Amz-Signature=dc6b2b5488e8a12a9bfe43e1efdae60693801281d508565bdb6458b30fc66276&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.110.133, 185.199.111.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.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_links.txt      100%[==============================================================================================>]  11.12K  --.-KB/s    in 0.002s  

2023-02-07 13:52:46 (5.90 MB/s) - ‘64mp_pi_hawk_eye_kernel_driver_links.txt’ saved [11382/11382]

--2023-02-07 13:52:46--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/Arducam_pivariety_v4l2_v1.0/arducam_64mp_kernel_driver_5.15.84.tar.gz
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/180355be-050a-4fb8-8ad1-eebe6ea36d27?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230207%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230207T125246Z&X-Amz-Expires=300&X-Amz-Signature=5d3adc01ff17d66036f3850750d83687af3ee03a2bf9e6b74125a95fb39b4e95&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Darducam_64mp_kernel_driver_5.15.84.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-02-07 13:52:46--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/180355be-050a-4fb8-8ad1-eebe6ea36d27?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230207%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230207T125246Z&X-Amz-Expires=300&X-Amz-Signature=5d3adc01ff17d66036f3850750d83687af3ee03a2bf9e6b74125a95fb39b4e95&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Darducam_64mp_kernel_driver_5.15.84.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 123597 (121K) [application/octet-stream]
Saving to: ‘arducam_64mp_kernel_driver_5.15.84.tar.gz’

arducam_64mp_kernel_driver_5.15.84.tar.gz     100%[==============================================================================================>] 120.70K   451KB/s    in 0.3s    

2023-02-07 13:52:47 (451 KB/s) - ‘arducam_64mp_kernel_driver_5.15.84.tar.gz’ saved [123597/123597]

is kernel driver
Release/
Release/arducam_camera_selector.sh
Release/bin/
Release/bin/5.15.84+/
Release/bin/5.15.84+/arducam_64mp.dtbo
Release/bin/5.15.84+/arducam_64mp.ko
Release/bin/5.15.84+/arducam_64mp.ko.xz
Release/bin/5.15.84+/dw9807-vcm.ko
Release/bin/5.15.84+/dw9807-vcm.ko.xz
Release/bin/5.15.84-v7+/
Release/bin/5.15.84-v7+/arducam_64mp.dtbo
Release/bin/5.15.84-v7+/arducam_64mp.ko
Release/bin/5.15.84-v7+/arducam_64mp.ko.xz
Release/bin/5.15.84-v7+/dw9807-vcm.ko
Release/bin/5.15.84-v7+/dw9807-vcm.ko.xz
Release/bin/5.15.84-v7l+/
Release/bin/5.15.84-v7l+/arducam_64mp.dtbo
Release/bin/5.15.84-v7l+/arducam_64mp.ko
Release/bin/5.15.84-v7l+/arducam_64mp.ko.xz
Release/bin/5.15.84-v7l+/dw9807-vcm.ko
Release/bin/5.15.84-v7l+/dw9807-vcm.ko.xz
Release/bin/5.15.84-v8+/
Release/bin/5.15.84-v8+/arducam_64mp.dtbo
Release/bin/5.15.84-v8+/arducam_64mp.ko
Release/bin/5.15.84-v8+/arducam_64mp.ko.xz
Release/bin/5.15.84-v8+/dw9807-vcm.ko
Release/bin/5.15.84-v8+/dw9807-vcm.ko.xz
Release/install_driver.sh
Release/uninstall_driver.sh
Installing DW9807 and ARDUCAM_64MP_EEPROM...
--------------------------------------
depmod: ERROR: failed to load symbols from /lib/modules/5.15.84-v8+/kernel/drivers/gpu/drm/drm_kms_helper.ko.xz: Invalid argument

I am currently using a RPI 3B+ with Glamor and GL (Full KMS) enabled.
My kernel version is : Linux C-L 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux

Any ideas on how to solve this?

Tag @Dion or @Edward
but in any case, It will be very difficult to capture with a RPI3, from my experience.

Would it be better to use an RPI4?

Of course, at least 4 gb if you want to run with xwindows

@mypitch_tca

drm_kms_helper.ko.xz is not the part we modified, did you do other operations on the kernel part.
The 64mp camera on the pi3 does have some limitations, but this is a limitation of the raspberry pi hardware. Suggest to try it on pi4 with a fresh system