-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OV7251 support #189
Comments
Could you begin by showing us what changes you made to libcamera for OV7251 support? At the very least, you will need to add a basic camera tuning file and camera helper library for basic support. Also, what issues did you encounter? |
I have patches that get it working. I'll throw them at a PR in a mo. I was just looking at the couple of kernel patches we have downstream and whether they can be upstreamed easily. The main one is swapping from V4L2_CID_GAIN to V4L2_CID_ANALOGUE_GAIN which could be counted as a regression if you just drop the old one. |
PR created #191. |
I'll post patch 1 now. We can do patch 2 after pisp is merged. |
https://github.com/szym1998/libcamera-ov7251.git Issues where basicly not working not detecting the camera but given my lack of skill in anything that is not python this might be me.... |
Thanks Kieran - I just don't have things set up for libcamera submissions. Kernel patches are: I can't work out why I created raspberrypi/linux@51b342e as The driver does look a bit odd in having tables for different fixed frame rates (intervals), but also supporting VBLANK. Time for a quick diff of the tables and possibly some tidying up. |
Hrm - I see my colleague @djrscally has also been working on OV7251 before. Might be worth roping Dan in here! |
Oh hello. I have the OV7251 working through the IPU3 pipeline handler, but I've never tried it on a raspberry pi (I have the sensor working on a Pi Zero but I think that it was through v4l2 alone rather than libcamera, and not with the upstream driver). So, not totally related work but happy to offer help if needed. |
This comment was marked as outdated.
This comment was marked as outdated.
Going slightly off topic for this issue, but worth logging. Looking at the kernel drivers, I think I'm right that raspberrypi/linux@51b342e is redundant. It got fixed in v2 of the patchset. Diffs between the 30/60/90 fps tables are in registers
So I think all of that can be stripped out. @djrscally View on that? Also does IPU3 use V4L2_CID_GAIN or V4L2_CID_ANALOGUE_GAIN. We obviously don't want to break existing users of _GAIN, but slaving the two together is a little ugly if not necessary. I'll see if I can find a few hours to tart those patches up and submit them. |
Thanks for the updates and your work on OV7251 support. If there's anything I can do to help with testing, please let me know. Looking forward to the integration. I'm not very familiar with automatic build systems—once the merge happens, will the support appear in the apt install? |
The only bit you need is the libcamera update. Kieran has submitted the patch for me (https://lists.libcamera.org/pipermail/libcamera-devel/2024-October/045749.html), so that should get reviewed in the next few days. |
This has now been merged |
Request for OV7251 Sensor Support in Raspberry Pi
Hi,
I've searched extensively for information regarding OV7251 sensor support on Raspberry Pi, but the available resources seem sparse and unclear. I came across the repository by 6by9, which reportedly worked for some users on older Raspberry Pi OS versions, but I haven’t had any success adapting this to the current libcamera versions.
I attempted to modify libcamera to support the OV7251 sensor but encountered issues that I couldn't resolve. I'm wondering if there’s any possibility of adding support for the OV7251 sensor—even without full calibration would be fine at this point.
Are there any current plans for implementing this sensor, or can you provide any guidance or workarounds that may help me get this sensor up and running with libcamera?
Thanks in advance for any insights or suggestions!
Best,
Szymon
The text was updated successfully, but these errors were encountered: