-
Notifications
You must be signed in to change notification settings - Fork 129
Kernel 6.12 Compatibility #243
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
Comments
Is the corruption present in the RAW/Bayer data for the 12-bit case? If so I would suggest looking at the sensor driver register set as a start. |
Yes, the RAW is affected. I'm very confused why there are 2 modes that work without issue, and more so confused that the driver is otherwise artifact free and functional in kernel Is there anywhere specific I should look first within the driver? |
One obvious thing to check is the CSI-2 link frequency is calculated correctly. The code for that can be found here: There is a handy log message that displays the calculated link frequency in the above function. |
The 12-bit 1392x736 corruption looks like some FIFO overflows, or the sensor stops early and you're getting uninitialised memory. Link frequency is the most likely candidate. What does |
This appears to be in an issue of RP1 clock speed. To achieve 4K60 capability we have to run a mild overclock of RP1 ( bump it to Doesn't look like
|
It's been a while since I looked at overclocking RP1. What runes are you using to set the clock speed to 300MHz? |
Found here: https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm64/boot/dts/broadcom/rp1.dtsi Changing both So this method still works in The same method in |
Do you have a log from the clock driver when setting up clk_sys for the 6.12 tree by any chance? |
I don't currently, but as I recall scanning through |
I'll take a look and see what I can find. Unfortunately I'm a bit swamped with other things, so it may a while before I get to this. |
I've jumped back to |
for me 6.12 works just fine.. |
Certainly jumping the gun on this one, I'm attempting to get rpicam-apps/libcamera working with the IMX294 on kernel
6.12
I've had to make some minor adjustments to the driver to account for some v4l2 api changes, specifically:
v4l2_subdev_get_try_crop
->v4l2_subdev_state_get_crop
v4l2_subdev_get_try_format
->v4l2_subdev_state_get_format
and:
#include <asm/unaligned.h>
->#include <linux/unaligned.h>
With that I can get the driver to successfully compile. However there are new issues to contend with. I have image artifacts for nearly all the sensor modes.
I say nearly because there are 2 odd sensor modes that seem to not be affected...for whatever reason.
12-bit 1392x248:

14-bit 3792x2840: ( this one is using the software 14-bit unpacking patch, which does work. )

All the other modes exhibit some kind of garbled image output:
12-bit 1392x736

12-bit 4144x2184

Certainly something not right...but I'm not sure where specifically that is ( PiSP, CFE, Libcamera, elsewhere? )
The text was updated successfully, but these errors were encountered: