Hi,
Currently, the Raspberry Pi has released kernel version 6.1.73 , which already includes the built-in support for the OV64A40 camera module. Therefore, there is no need for separate driver installation and libcamera.
We have update our doc, please check it: https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/64MP-OV64A40/#software
With all respect - that just is not true right now.
The Pull Request is still open and yet to be merged.
Until it is merged, your statement that it has built-in support is not true.
I managed to get the camera to work by using the ArduCam version of libcamera. The default Raspberry Pi libcamera (raspi-cam or whatever they call it) does not support the OV64A40.
The upstream libcamera library (0.2.0) does support the OV64A40 camera, but that is not supported by Raspberry Pi 5 yet.
You may need to put some pressure on Raspberry Pi foundation / company / code maintainers to get the software support ArduCam deserves.
Can I also say that it is not upstreamed for Raspberry Pi 4 either. I tried both devices and the camera does not work ‘out of the box’ for either.
I have left this message on the Pull Request as a comment so that hopefully someone can speed up the process of getting the code working.
The Pull Request has been idle since November 2023 (nearly 6 months). I do not believe this is a problem with the ArduCam team, but with the Raspberry Pi maintainers. I am here to help get this moving along (and have been trying).
I will try and test again with a blank SD Card later tonight. It appears something has changed since I posted on the forum here. Your release is dated 15 Feb 2024 which is after I created this question.
I tried that and it still didn’t work. I have been getting a lot of assistance on the Rpi forum. Just yesterday I was finally able to take a 64MP image using a “rpi-still…” command at terminal. Here’s what I did to get it to work on my RPi 4 8Gb.
get latest version of bookworm
sudo apt-get update
sudo apt full-upgrade
sudo reboot
sudo nano /boot/firmware/config.txt
(add “dtoverlay=ov64a40, link-frequency=360000000” in the config.txt file at the bottom under the [all] header)
I found that I had the latest kernel of 6.1.73, but for some reason “vcgencmd version” would return a date of “Oct 17, 2023” the “SKIP_KERNEL=1…” command mentioned above was able to update the version successfully. Now I can take 64MP photos and I actually get an image, not just a green screen.
The current struggle is how to write a python script to take a photo. I haven’t be able to successfully implement code to take a 64MP photo, I receive a “Failed to start camera: Cannot allocate memory” error. I’m unsure what library works best with the OV64A40 camera: picam2, libcam, or rpicam. I know picamera2 is based on libcamera, and rpicamera is supposed to replace libcamera. But honestly that’s all way over my head, and I have been reading the documentation without finding a clear answer.
I am able to capture a 64mp image using a python script with Picamera2. I can also get it to work with a streaming preview, but you have to use a command that pauses the video stream, takes a photo, then resumes the stream. I believe that has solved the memory buffer problems.
from picamera2 import Picamera2
import time
from libcamera import controls
picam2 = Picamera2()
capture_config = picam2.create_still_configuration()
picam2.start(show_preview=True)
picam2.set_controls({"AfMode": controls.AfModeEnum.Continuous})
time.sleep(5)
picam2.switch_mode_and_capture_file(capture_config, "image.jpg")
Hi,
Thank you very much for your feedback. We are tryting to make our DOC and support more simple and effective. However, the Englist is not our native language. SO there is a dilemma that we know the solution but I can not express it more precise in English :-(( For example, in terms of ov64A40, we have updated the doc last week and received expected comments like unclear quick start guide https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/64MP-OV64A40/#hardware-connection
Anyway, we value every customer’s suggestions and feedback and try our best to perfect our expressiono from native speaker’s view in the DOC or somewhere.
Hi,
Whatever tuning on/off the camera auto-detect, the camera module is able to stream with libcamera command. However, in case of other unexpected effects, I suggest that adding ‘‘turn off the camera auto-detect’’ is evitable. We will update the doc in two days.
Thank you for your notice.