Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3747940ima; Tue, 23 Oct 2018 10:35:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV62LDMeUKPo4wKGm8Ucnbca0GeQ7XRXlZgOhki590GmbYn/3K8Ig3gT1MpwsrAeWMvFpthd3 X-Received: by 2002:a63:e116:: with SMTP id z22-v6mr46707850pgh.20.1540316159284; Tue, 23 Oct 2018 10:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540316159; cv=none; d=google.com; s=arc-20160816; b=QfDYr8u+A+5lwVun9H1+utpmSs5uR4Ux61UlBFXb6r5sGnv96wQfTrT8FEifPUlmPk fyl3UOt4uqsRJ7dAqUTYjnPnHhaQ7oBX0EfFQx0PW470NBh+8zlO6ltDf/3P/4VNQ2o+ c7e1nYUgz3Et0eSH1TioItpp7FpjDNPA+5kokAFQBk3/ORD89vP0Rj+ah4e5a8LHDPwo DWerB8iOUv+DjbA1ETFR+xYvlx1lyC84C+EbdQNzfcVucbeMiaf+Nw/gIKYGZunsO3Te T19iA6mXttECUd/gLIZJ9m+6zg+AFqX/+tZ0mfilslY1A0BiR3LPkY9vydpzi7mhsxea ru6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qZQ/betMQwwlwT9kqi3wj89N7Y5+ixDZtRHUXvc0Qg8=; b=qjw8048DaHOelD/VG7AwdNyTXg/8QvjscOrOp5OpOZqHdOG0wJG/YnwjeKlpEPFE71 pdEJq6fkDecHgk6ZvE/2MKwMYk56Jc+0VpYIBi1abtJp9rHGwPEGjA6QXuXXu+ebRAi3 ls30eW8mj94Fqd8zjiIYhyn+xo1o/zmLwehQ0Z6y+Ekg5zOZd1p71ZjQD+G0E+9KpuuI JTHKT8687QZUEJw/SmJ/zwbSk8CLZZ7hScus9wzimBvFQQ5efiy5DDx9g3JORo/ScOI0 4UD4UOKMMHx6zVTGM4kEc2/WR8/nQrBAQlmV7cxfa8NxoHtAFRnQyzdVQRQIY94Mz5i/ Pl0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A2LN5s1J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si1784232pll.233.2018.10.23.10.35.42; Tue, 23 Oct 2018 10:35:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A2LN5s1J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728518AbeJXB70 (ORCPT + 99 others); Tue, 23 Oct 2018 21:59:26 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36945 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbeJXB70 (ORCPT ); Tue, 23 Oct 2018 21:59:26 -0400 Received: by mail-ed1-f68.google.com with SMTP id c15-v6so2446363eds.4; Tue, 23 Oct 2018 10:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qZQ/betMQwwlwT9kqi3wj89N7Y5+ixDZtRHUXvc0Qg8=; b=A2LN5s1JUlGcuOt7Ehi9K86V3FrQxFNbC5853uPoOJjm0iovw03fJqnBz9eDM8RB59 xcU9nkfQh6mlx/HEBIm0TaP+hsNx2S2eZ9p9g1H0LnduRf1z3uUAszS3KwRgsfVoec9t RnLvRzmN8GuJGoV8NVUy1XMmQw+TnJNHLsVSQaMfn1kI0ZLMuF3tW9yui4eNb8DS6oyf autuylySKgQuO1winYcUxyMExLsx+HB5TrS3S4nq1nbRmLiCiSwLk0+3y+Zf988hcBS+ mclNY13waOROSkfnStKuIXeTgJ8LfzJh6Ys7FUyFQ+FI+7F+GITR2FtRq/yd1nLlVkoq zmYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qZQ/betMQwwlwT9kqi3wj89N7Y5+ixDZtRHUXvc0Qg8=; b=B2zai+q6pLghxlDs/UzjkH0U64COy0HCX92RApMQy/Gyx/V0YeZlznRljqYQL7+mZB cSsFPA3gIDDYuRyDxg0sDB/89fPqj7HkO8QBl1vaUSvRy2VvezpTqdyBEkROhP9x88A2 M7v9MeY4RcNoxflegzmVWwwwsDikqFZRjjzjRYQfaMJEI6F5Adh9B/iLpwCtD+wnfZwg WUE0L21abRciWZ5jwFl8wqg8anjf5i444v2wFkXR3zeQSKIepfexkEtMdNsl3bV4POJy h5Pyk1SuvSELTzLnnR3F0L1XyaoVjinNkWtGD0vsPeV3FB/oKWpznRd0OGrXBPP6NOUx xfeA== X-Gm-Message-State: ABuFfojVOCVyBiSmUUPBDFO7bUpc7JZNYiSUfPpinzLZ3rppeBCngOeC IJt8XYi1O4NDiblg8O5AWR2d72A8k5R8JCLPi8k= X-Received: by 2002:aa7:c998:: with SMTP id c24-v6mr17066840edt.165.1540316104936; Tue, 23 Oct 2018 10:35:04 -0700 (PDT) MIME-Version: 1.0 References: <20180920145658.GE16851@w540> <20181017080103.GD11703@w540> <20181022113306.GB2867@w540> In-Reply-To: From: Adam Ford Date: Tue, 23 Oct 2018 12:34:53 -0500 Message-ID: Subject: Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux To: steve_longerbeam@mentor.com Cc: Fabio Estevam , jacopo@jmondi.org, Jagan Teki , p.zabel@pengutronix.de, Fabio Estevam , gstreamer-devel@lists.freedesktop.org, linux-media@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 23, 2018 at 11:36 AM Steve Longerbeam wrote: > > Hi Adam, > > On 10/23/18 8:19 AM, Adam Ford wrote: > > On Mon, Oct 22, 2018 at 7:40 AM Fabio Estevam wrote: > >> Hi Adam, > >> > >> On Mon, Oct 22, 2018 at 9:37 AM Adam Ford wrote: > >> > >>> Thank you! This tutorial web site is exactly what I need. The > >>> documentation page in Linux touched on the media-ctl links, but it > >>> didn't explain the syntax or the mapping. This graphical > >>> interpretation really helps it make more sense. > >> Is capturing working well on your i.MX6 board now? > > Fabio, > > > > Unfortunately, no. I built the rootfs based on Jagan's instructions > > at https://openedev.amarulasolutions.com/display/ODWIKI/i.CoreM6+1.5 > > > > I tried building both the 4.15-RC6 kernel, a 4.19 kernel and a 4.14 LTS kernel. > > > > Using the suggested method of generating the graphical display of the > > pipeline options, I am able to enable various pipeline options > > connecting different /dev/videoX options tot he camera. I have tried > > both the suggested method above as well as the instructions found in > > Documentation/media/v4l-drivers/imx.rst for their respective kernels, > > and I have tried multiple options to capture through > > ipu1_csi1_capture, ipu2_csi1_capture, and ip1_ic_prepenc capture, and > > all yield a broken pipe. > > > > libv4l2: error turning on stream: Broken pipe > > ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could > > not read from resource. > > Additional debug info: > > gstv4l2bufferpool.c(1064): gst_v4l2_buffer_pool_poll (): > > /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: > > poll error 1: Broken pipe (32) > > > > I can hear the camera click when I start gstreamer and click again > > when it stops trying to stream. > > > > dmesg indicates a broken pipe as well.. > > > > [ 2419.851502] ipu2_csi1: pipeline start failed with -32 > > > > might you have any suggestions? > > > This -EPIPE error might mean you have a mis-match of resolution, pixel > format, or field type between one of the source->sink pad links. You can > find out which pads have a mis-match by enabling dynamic debug in the > kernel function __media_pipeline_start. Following Jagan's suggestion, I tried to make sure all the resolution and pixel formats were set the same between each source and sink. media-ctl --set-v4l2 "'ov5640 2-0010':0[fmt:UYVY2X8/640x480 field:none]" media-ctl --set-v4l2 "'imx6-mipi-csi2':1[fmt:UYVY2X8/640x480 field:none]" media-ctl --set-v4l2 "'ipu1_csi0_mux':2[fmt:UYVY2X8/640x480 field:none]" media-ctl --set-v4l2 "'ipu1_csi0':2[fmt:AYUV32/640x480 field:none]" > > Also make sure you are attempting to stream from the correct /dev/videoN. I have graphically plotted the pipeline using media-ctl --print-dot and I can see the proper video is routed, but your dynamic debug suggestion yielded something: imx-media capture-subsystem: link validation failed for 'ov5640 2-0010':0 -> 'imx6-mipi-csi2':0, error -32 I am assume this means the interface between the camera and the csi2 isn't working. I am going to double check the power rails and the clocks. i can hear it click when activated and deactivated, so something is happening. adam > > Steve >