Hi all,
I got the image from os02g10 camera sensor.
Settings are: RAW10, 1920x1080, pixelformat = BG10
hs-settle tested from 7 to 22
clk-settle tested for 0 , 1 ,2
mipic-csi frequency tested in range 333MHz - 480MHz
All time the image is the same like below, a colorspace is also the issue.
What can be wrong?
已解决! 转到解答。
We found solution for this and more issues, there is more details for RAW10 support on IMX8MM
We found solution for this and more issues, there is more details for RAW10 support on IMX8MM
Im going to use this command:
gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg
for now it is not working, comparison ov5640 vs os02g10 tells us that the API from the driver side is not sufficient.
ov5640 works.
But I can use additional conversion on the PC computer to convert data file from the os02g10.
I use it:
gst-launch-1.0 -v filesrc location=file_from_os02g10_sensor.raw blocksize=42923008 ! "video/x-bayer,format=bggr,width=1920,height=1080,framerate=1/1" ! bayer2rgb ! videoconvert ! avenc_mjpeg ! filesink location=oputput_file.jpeg
Thanks
I fixed image misalignment issue by this piece of patch:
@@ -471,7 +505,9 @@ static void csi_init_interface(struct mx6s_csi_dev *csi_dev)
val |= BIT_MCLKEN;
__raw_writel(val, csi_dev->regbase + CSI_CSICR1);
- imag_para = (640 << 16) | 960;
+ dev_info(csi_dev->dev,"in function: csi_init_interface\n");
+
+ imag_para = (1080 << 16) | 1920;
__raw_writel(imag_para, csi_dev->regbase + CSI_CSIIMAG_PARA);
But still there is format issue (color space) and double image issue