Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp4052289ima; Tue, 23 Oct 2018 16:12:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5cd+BoAG4SBYeRlYktXLr3Q447GdRWP44dC+YLvnTtM0SbCoZ3oJPKYFt/MJXbrXg3HWE8J X-Received: by 2002:a65:5147:: with SMTP id g7-v6mr254779pgq.252.1540336326977; Tue, 23 Oct 2018 16:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540336326; cv=none; d=google.com; s=arc-20160816; b=SGy/ArcUmL56JgEFmmDiifmVO0XHWmrJiEnmKRsfRv4qzyL9X9bB28M4rWPZq3r65g XfpPjY/8awmEGHhB5z4B+U4pcihc1zLLAVM6kL6w1f2bsqshqBt+qtplCURRGPp/M50U 6C38FD3bzEYD0pJ7kTQivIVu2py/jdFPpvyGcu/IonJ9VxQEmLqAmjB6fYlNRB/Mci26 m8304MowKIh41lf8DY/n9KPNWzlL05UMFhCNYoeUtz1yNnaDzp97tHo1i8PuYbIz1Ieq Kjq21fE7jsVoeMLEP6bYOf7zwtNzTuQ4WwEvcVz1dtqS8ls2T45V6EuIYn6ubf+FFvoz WHLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0eAifR8QoAEV4cvFhcqn5gFJY/btc9j9E5utp9Xz+Ao=; b=ydYjU9nwGN0dLJ8sfuA14aMQzUble2g1w9IlfhTpHQa4ULYMO7d62QrWC07oB5/Vjr JHtd8SMsorsLy6oYKGXKR4sm6L+Mnsfxlykly7r9urkFE4xAwNda3G4MPT2i5F2Nk0Yv mJ40zZFuhE42KM2s/YUgm3cf5ez/JFoGQ8U0zLDuxpUi0nWmcBOQxsx56MpIJha6Dy84 G95Oua3i4suSbwyTCwsPN7/W+Wf3wncAPrxUNqWbgKUYb1d7hAciyyYaj26l1cVGSzrU xM6lVQfGP+eoC8OBWavfqg2JGG2TcUwZoR++yyimzk1/5VV5GXci5tPATtYLPUpOSuPR Bzug== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u43-v6si2651975pgn.383.2018.10.23.16.11.49; Tue, 23 Oct 2018 16:12:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729043AbeJXH24 (ORCPT + 99 others); Wed, 24 Oct 2018 03:28:56 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38757 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbeJXH2z (ORCPT ); Wed, 24 Oct 2018 03:28:55 -0400 X-Originating-IP: 86.151.207.216 Received: from w540 (host86-151-207-216.range86-151.btcentralplus.com [86.151.207.216]) (Authenticated sender: jacopo@jmondi.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 5A834240006; Tue, 23 Oct 2018 23:03:20 +0000 (UTC) Date: Wed, 24 Oct 2018 01:03:09 +0200 From: jacopo mondi To: Adam Ford Cc: steve_longerbeam@mentor.com, Fabio Estevam , Jagan Teki , p.zabel@pengutronix.de, Fabio Estevam , gstreamer-devel@lists.freedesktop.org, linux-media@vger.kernel.org, Linux Kernel Mailing List Subject: Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux Message-ID: <20181023230259.GA3766@w540> References: <20181022113306.GB2867@w540> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Adam, On Tue, Oct 23, 2018 at 12:54:12PM -0500, Adam Ford wrote: > On Tue, Oct 23, 2018 at 12:39 PM Steve Longerbeam > wrote: > > > > > > On 10/23/18 10:34 AM, Adam Ford wrote: > > > 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 > > > > > > It's what I expected, you have a format mismatch between those pads. > > Is the mismatch something I am doing wrong with: > > media-ctl --set-v4l2 "'ov5640 2-0010':0[fmt:UYVY2X8/640x480 field:none]" > media-ctl --set-v4l2 "'imx6-mipi-csi2':2[fmt:UYVY2X8/640x480 field:none]" > Could you try to verify the actual format configured on the sensor? (media-ctl --get-v4l2 "'ov5640 2-0010':0"). Depending on the driver version you are running, you might be affected by different regressions. > or is there something else I need to do? I just used Jagan's suggestion. I suggest you to update the driver version to the last one available in the media-tree master, or at least try to backport the following commit: fb98e29 media: ov5640: fix mode change regression If it turns out the format and mode configured on the sensor do not match the one you want. Thanks j > adam > > > > Steve > > > > > > > > > > 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 > > >> --f2QGlHpHGjS2mn6Y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJbz6itAAoJEHI0Bo8WoVY87U4P/34uE8uXTUoSd9lXwWwTKoAC K6f/oRcuc8l9S5VyWUCVUikOzQMqcfixcfk/CnFp14fMJ9oznRv1+y3Q3aLlgBsM 3QkqxOxZ87Oy7EtcPk60OZlJ1QeJI/oXGpLgcYrQf79UdGRUwhpkOr8sU7TrLs6g j7vNlPDbkF5riiOFUunifJNF6C43he2iUWDc+DDzv24+3PdezN3lxrRydrA+j1nm jO6QUmCicJXO6Z4ezmmGuma0hiGoWMXTqolZT7vBWOBVAexWmSRNkhXmotOs3e45 jnwK2X3Nakga8z8nCWOnpQfUgbgHESNSalPUy6FuyqYnLNMIREH9kuwq+B4d2Phb 3+mAlBdPsHZp/Dm5vBum9+eHwykFF3YfbSYbi5hd7ji0+99w6XGFgjd7rzibmRJr uhC8jK9Iqlj99BnOPolcsIDuJ38AZUUlsu+po8YxgHXBafA3yVyjUNBbfFbHnS9r DN5X3MlVoXDMKoTinVkUgfWuqlqKFm0TsSpOl6hhyssommJsHwa/9B+spGyKgEiY oyulewcX+faQAcYRoZ2rPXgzk5MzouxWIWxBAPH/daTZnxCL18ADCz7QK5YEYDHb LRX1aA91CtMfgEaRY/lQhwsJtnqqCqRZ/pTPu37jTX2MWoJyWEllykbubta3Am1+ gt8bWtub7PdCRbhTZxVb =ECHR -----END PGP SIGNATURE----- --f2QGlHpHGjS2mn6Y--