We are trying to bring up GMSL2 in IMX8MP board.
We have written the driver for this, and the platform is able detect the video node while the driver is loaded.
While checking the camera preview with the below command, I am not seeing any preview in the display. But there are no error messages.
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=1920,height=1080,pixelformat=YUYV ! videoconvert ! autovideosink
Also tried checking the frames with the command,
v4l2-ctl -d /dev/video1 --stream-mmap and no frames are seen.
I have already validated the mipi data from sensor,serializer and deserializer and it is as expected.
Below is the output of media-ctl command (video1 is the camera),
root@imx8mp-var-dart:/unit_tests/V4L2# media-ctl -p
Media controller API version 5.10.52
Media device information
------------------------
driver mxc-md
model FSL Capture Media Device
serial
bus info
hw revision 0x0
driver version 5.10.52
Device topology
- entity 1: mxc_isi.0 (16 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
pad0: Sink
<- "mxc-mipi-csi2.0":4 [ENABLED]
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Sink
pad5: Sink
pad6: Sink
pad7: Sink
pad8: Sink
pad9: Sink
pad10: Sink
pad11: Sink
pad12: Source
-> "mxc_isi.0.capture":0 [ENABLED]
pad13: Source
pad14: Source
pad15: Sink
- entity 18: mxc_isi.0.capture (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "mxc_isi.0":12 [ENABLED]
- entity 22: mxc-mipi-csi2.0 (8 pads, 2 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "ar1335 2-0042":0 [ENABLED,IMMUTABLE]
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Source
-> "mxc_isi.0":0 [ENABLED]
pad5: Source
pad6: Source
pad7: Source
- entity 31: ar1335 2-0042 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev1
pad0: Source
[fmt:UYVY8_1X16/1920x1080 field:none colorspace:srgb]
-> "mxc-mipi-csi2.0":0 [ENABLED,IMMUTABLE]
Kindly, advice on this.
Hi @sudarkb,
Thank you for contacting NXP Support.
Since you are implementing your own driver and using a different board instead of our EVK. It is difficult for us to try to replicate the problem and give you feedback about the issue.
Could you please provide more information about your hardware setup and your camera model?
Have a great day!
Thanks @brian14 for the reply.
We were able to fix this issue. But we are facing corruption in the preview for which another query has been raised,
https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/td-p/1829180.
Can you let us know how proceed with the corruption?