Dear 6by9-san
By creating cam_helper_imx258.cpp from cam_helper_imx219.cpp, I can operate IMX258 module on RPi5 now.
Thank you very much.
--list-cameras shows 4208x3120 30fps by dtoverlay=imx258,4lane in config.txt but I'm not sure it is really in 4lane mode.
(How to check it?)
By creating cam_helper_imx258.cpp from cam_helper_imx219.cpp, I can operate IMX258 module on RPi5 now.
Thank you very much.
--list-cameras shows 4208x3120 30fps by dtoverlay=imx258,4lane in config.txt but I'm not sure it is really in 4lane mode.
(How to check it?)
I think the only reason we haven't upstreamed the imx258 cam_helper is that we haven't done a tuning for the sensor.
Yes the driver supports both 2 and 4 lane modes. Those patches have actually just been merged into the mainline linux-media tree, so should all be the 6.11 kernel. That sensor is used on the PinePhone Pro, so they were after getting full support into the kernel.
We have got one further tweak to produce a cropped mode at 4k, rather than the 4:3 4208x3120 that the driver normally uses. Doing that avoids the issue of RP1 just exceeding the max throughput of the front end.
"'imx258 6-0010': Unable to get format on pad 1: Invalid argument" is odd. I suspect by copying imx477 you've told libcamera to expect to get metadata from the sensor, when the imx258 driver doesn't support that.
Ensure "sensorEmbeddedDataPresent" in the cam_helper returns false or is omitted.
Statistics: Posted by sohonomura2020 — Mon Jun 10, 2024 2:16 am