All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Longerbeam <slongerbeam@gmail.com>
To: Alex Mihaylov <minimumlaw@gmail.com>,
	Philipp Zabel <pza@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>
Cc: linux-media <linux-media@vger.kernel.org>
Subject: Re: IMX219 MIPI Sensor (meda-tree) with vaniila I.MX6Q media drivers
Date: Fri, 27 Mar 2020 14:18:08 -0700	[thread overview]
Message-ID: <17308e3e-3dd8-7c75-f890-398ffca730b9@gmail.com> (raw)
In-Reply-To: <a565cb1a-0c08-cd58-5e83-683b60055e90@gmail.com>

Hi Alex,

On 3/27/20 1:12 AM, Alex Mihaylov wrote:
> Hi!
>
> Ok. This time I try to check hardware and not need image processing. I 
> uncomment this line in script:
>
> [...]
> - entity 47: ipu1_csi1 (3 pads, 4 links)
>              type V4L2 subdev subtype Unknown flags 0
>              device node name /dev/v4l-subdev5
>         pad0: Sink
>                 [fmt:SRGGB10_1X10/1920x1080@1/30 field:none 
> colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
>                  crop.bounds:(0,0)/1920x1080
>                  crop:(0,0)/640x480
>                  compose.bounds:(0,0)/640x480
>                  compose:(0,0)/640x480]
>                 <- "imx6-mipi-csi2":2 [ENABLED]

This is virtual channel 1 output from the imx6-mipi-csi2 receiver. Make 
sure the imx219 is indeed transmitting on virtual channel 1.

> pad1: Source
>                 [fmt:SRGGB10_1X10/640x480@1/30 field:none 
> colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "ipu1_ic_prp":0 []
>                 -> "ipu1_vdic":0 []
>         pad2: Source
>                 [fmt:SRGGB10_1X10/640x480@1/30 field:none 
> colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "ipu1_csi1 capture":0 [ENABLED]
>
> - entity 51: ipu1_csi1 capture (1 pad, 1 link)
>              type Node subtype V4L flags 0
>              device node name /dev/video3
>         pad0: Sink
>                 <- "ipu1_csi1":2 [ENABLED]

What is the format on /dev/video3 ? Please provide output from 'v4l2-ctl 
-d3 -V'

> [...]
>
> - entity 121: imx6-mipi-csi2 (5 pads, 5 links)
>               type V4L2 subdev subtype Unknown flags 0
>               device node name /dev/v4l-subdev12
>         pad0: Sink
>                 [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb 
> xfer:srgb ycbcr:601 quantization:full-range]
>                 <- "imx219 9-0010":0 [ENABLED]
>         pad1: Source
>                 [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb 
> xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "ipu1_csi0_mux":0 []
>         pad2: Source
>                 [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb 
> xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "ipu1_csi1":0 [ENABLED]
>         pad3: Source
>                 [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb 
> xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "ipu2_csi0":0 []
>         pad4: Source
>                 [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb 
> xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "ipu2_csi1_mux":0 []
>
> - entity 135: imx219 9-0010 (1 pad, 1 link)
>               type V4L2 subdev subtype Sensor flags 0
>               device node name /dev/v4l-subdev15
>         pad0: Source
>                 [fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb 
> xfer:srgb ycbcr:601 quantization:full-range]
>                 -> "imx6-mipi-csi2":0 [ENABLED]
>
> [...]
> localhost ~ # gst-launch-1.0 v4l2src device=/dev/video3 ! fakesink
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: 
> Internal data stream error.
> Additional debug info:
> /var/tmp/portage/media-libs/gstreamer-1.14.5/work/gstreamer-1.14.5/libs/gst/base/gstbasesrc.c(3055): 
> gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> streaming stopped, reason not-negotiated (-4)
> Execution ended after 0:00:00.000606666
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> localhost ~ # dmesg -c
>
> Another error, but some result. I think fakesink must got Bayer format 
> (as specific /dev/null for v4l2).

Can you try simply:

localhost ~ # v4l2-ctl -d3 --stream-mmap

and let me know if you receive frames.

Steve

>
>
>>>> # media-ctl -l "'ipu1_csi1':2 -> 'ipu1_csi1 capture':0[1]" # 
>>>> /dev/video3
>>>> (unused, unprocessed)
>>        ^
>> The IPUv3 IC hardware does not support processing Bayer formats.
>> Those can only be written straight to RAM using this path.


  reply	other threads:[~2020-03-27 21:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26  8:28 IMX219 MIPI Sensor (meda-tree) with vaniila I.MX6Q media drivers Михайлов Алексей Анатольевич
2020-03-26 18:56 ` Fabio Estevam
2020-03-27  7:45   ` Philipp Zabel
2020-03-27  8:12     ` Alex Mihaylov
2020-03-27 21:18       ` Steve Longerbeam [this message]
2020-03-28  4:45         ` Михайлов Алексей Анатольевич
2020-03-26 19:17 ` Fabio Estevam
2020-03-27  7:49   ` Alex Mihaylov
2020-03-26 18:45 Alex Mihaylov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17308e3e-3dd8-7c75-f890-398ffca730b9@gmail.com \
    --to=slongerbeam@gmail.com \
    --cc=festevam@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=minimumlaw@gmail.com \
    --cc=pza@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.