From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f174.google.com (mail-qc0-f174.google.com [209.85.216.174]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 68D53E006D6 for ; Tue, 19 Mar 2013 16:55:26 -0700 (PDT) Received: by mail-qc0-f174.google.com with SMTP id z24so526945qcq.5 for ; Tue, 19 Mar 2013 16:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=0MOdOBFK57iy3IOMxaYOMqq1/sRs/G2XaYI0WLQpxgc=; b=n0dFKNA/4DfXll6eYeiMT6iCSEAQy/IJdueAmKJbObqQp6c++bR9OurLPqy5JUpqdG I2SfC+hYWG4rqw9HYFIaqz40io4uFoBAHiTSr3Gpz3GamakyXnapvy1W52E2Ofni3zII x3khzwpxqZsV1MMNfNy7xqFEHRVCPMkd9GaGtIPu+AhFi1Dj1VetLDiJfDuSjpXmglP5 FjBejUSUlJfN7MP/kQQEz8UgVSBoRxqaogQoclZ9BZQikJ/SJ2+Hh7697vrRu2x2nqR4 LLjCD8h0s4ATytI2L/5wXIJpAXBukenDvZ9V1qcZNcDMDZ/pUbSx6CL6uZECWqoY6psw 6arw== X-Received: by 10.224.61.72 with SMTP id s8mr4297725qah.12.1363737325533; Tue, 19 Mar 2013 16:55:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.14.162 with HTTP; Tue, 19 Mar 2013 16:55:05 -0700 (PDT) From: Ashwin Kirpalani Date: Tue, 19 Mar 2013 19:55:05 -0400 Message-ID: To: meta-freescale@yoctoproject.org Subject: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 23:55:26 -0000 Content-Type: multipart/alternative; boundary=047d7bdc8f5cdaff6e04d84fd67d --047d7bdc8f5cdaff6e04d84fd67d Content-Type: text/plain; charset=ISO-8859-1 I am attempting to use the Aptina MT9T111 CMOS sensor driver with the sabrelite board The linux-imx kernel has the driver for the MT9T112, which needs to be patched for the MT9T111, or so I thought. The patch that I was attempting to apply is here: https://patchwork.kernel.org/patch/2067231/ However, I cannot use the MT9T112.c file that is in the current linux-imx tree. Turns out my starting point should be the MT9T112.c file in a repository called linux-media : https://github.com/hvaibhav/linux-media/. So I tried to copy over into my linux-imx working directory just the MT9T112.c that is in the linux-media repo and tried to build the kernel but as you can imagine it led to a whole bunch of errors in soc_camera and v4l2_mediabus modules. How would I go about solving this issue? Is there a systematic way (like a series of patches) that I can use to get me to a working starting point after which I can apply the above patch. --047d7bdc8f5cdaff6e04d84fd67d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am attempting to use the Aptina MT9T111 CMOS sensor driver with the sabre= lite board=A0

The linux-imx kernel has the driver for th= e MT9T112, which needs to be patched for the MT9T111, or so I thought. The = patch that I was attempting to apply is here:

However, I canno= t use the MT9T112.c file that is in the current linux-imx tree. Turns out m= y starting point should be the MT9T112.c file in a repository called=A0linu= x-media :=A0https://gi= thub.com/hvaibhav/linux-media/.

So I tried to copy over into my linux-imx working direc= tory just the MT9T112.c that is in the linux-media repo and tried to build = the kernel but as you can imagine it led to a whole bunch of errors in soc_= camera and v4l2_mediabus modules.=A0

How would I go about solving this issue? Is there a sys= tematic way (like a series of patches) that I can use to get me to a workin= g starting point after which I can apply the above patch.
--047d7bdc8f5cdaff6e04d84fd67d-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9492EE01493 for ; Wed, 20 Mar 2013 05:08:38 -0700 (PDT) Received: by mail-ob0-f178.google.com with SMTP id wd20so1525381obb.9 for ; Wed, 20 Mar 2013 05:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Wy+NmDS3Et+b+Cc+9xOAOZTex0K1g6Lyv+TfrfcdXLw=; b=Tgwdraaz54CwdcSVqfpWINtm6v5+7lT/PAnePGvkPWRzvFojdrFhtri784tbVrZJpO LJMqV8ZKKRRlszoGVCSKfu9rBHu6XUy7GPJbUEpeL8xfH4kMlzKhX8oer3U4wKEtCtn1 J8CYzuXd0RulRcvBN8vZM9Bcb+DOKjZRH9F8hGe5pSvnerAQfsIVwhGcZzR3lRVbEEjj 92qYUm7OmM+VX/cvpN+JSfZdV928+A4xjNKOsP76kI0vgOoH30h5ual2nsjIroQ7s66C jDdeZo7S33QL18dNe08I93HrS2SZnhaoRR2JosGFEBugz+TZtUslsckbvPtmFMGtH0ED +FNA== MIME-Version: 1.0 X-Received: by 10.182.157.104 with SMTP id wl8mr3894118obb.79.1363781317702; Wed, 20 Mar 2013 05:08:37 -0700 (PDT) Sender: otavio.salvador@gmail.com Received: by 10.182.80.198 with HTTP; Wed, 20 Mar 2013 05:08:37 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Mar 2013 09:08:37 -0300 X-Google-Sender-Auth: tRCYoz3m3dLrKhQoNzRwRStZlKA Message-ID: From: Otavio Salvador To: Ashwin Kirpalani Cc: "meta-freescale@yoctoproject.org" Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 12:08:38 -0000 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Mar 19, 2013 at 8:55 PM, Ashwin Kirpalani wrote: > I am attempting to use the Aptina MT9T111 CMOS sensor driver with the > sabrelite board > > The linux-imx kernel has the driver for the MT9T112, which needs to be > patched for the MT9T111, or so I thought. The patch that I was attempting to > apply is here: > https://patchwork.kernel.org/patch/2067231/ > > However, I cannot use the MT9T112.c file that is in the current linux-imx > tree. Turns out my starting point should be the MT9T112.c file in a > repository called linux-media : https://github.com/hvaibhav/linux-media/. > > So I tried to copy over into my linux-imx working directory just the > MT9T112.c that is in the linux-media repo and tried to build the kernel but > as you can imagine it led to a whole bunch of errors in soc_camera and > v4l2_mediabus modules. > > How would I go about solving this issue? Is there a systematic way (like a > series of patches) that I can use to get me to a working starting point > after which I can apply the above patch. Unfortunately no; this is a porting process and there's no 'always work' recipe for it. Each time you need to port a driver like this, it is a different process as it depends on the difference you will need to port for the target kernel. So you'll need to hack the kernel to get it working and try to isolate the parts you need to to port for it. -- Otavio Salvador O.S. Systems E-mail: otavio@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8D48DE01469 for ; Wed, 20 Mar 2013 06:24:53 -0700 (PDT) Received: by mail-qa0-f49.google.com with SMTP id o13so976415qaj.8 for ; Wed, 20 Mar 2013 06:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=KpYVOv2gYIKMEX5ElGpG/NIxECETD2NUIQu1Eo3gT2Y=; b=04lIcDK859V/jzATLVVZAOjJ4ZqKF3c8oIf801TUsa3DNrEcZ28QxS3n5zvQlieP9J yT26EPqCy6diuU+Gyv8DyqB4LDQcpavKi3SWfZwQC9jgwVzWTLFzSahMyxEX0957Ts1h WUKnIE9Iqkskhs5kPWXxjjvLWaSyS3SzDPd2LWp6TVebFx3+1G/LTcBs+WRO7sIfB6Ky Fk6+vm2b2pa2d/Y63Hn+adEKBIlVgtEXyU8GAXQYNeMW098CZd9DDtjCHLc8QYDWvs2+ IbfiGWrlJEvSjGOMAeQBY9nC0it1JDEKYDgNbk9O783IncJ+RgLhLkl13LS6fHxD/a9X dPeA== X-Received: by 10.49.84.6 with SMTP id u6mr6740183qey.35.1363785892756; Wed, 20 Mar 2013 06:24:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.14.162 with HTTP; Wed, 20 Mar 2013 06:24:32 -0700 (PDT) From: Ashwin Kirpalani Date: Wed, 20 Mar 2013 09:24:32 -0400 Message-ID: To: meta-freescale@yoctoproject.org Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 13:24:53 -0000 Content-Type: multipart/alternative; boundary=047d7bdc0934b0245404d85b257a --047d7bdc0934b0245404d85b257a Content-Type: text/plain; charset=ISO-8859-1 Ok. So what is the starting point of the linux-imx kernel code base. I believe the kernel is 3.0.35. Was this branched off the mainline linux kernel at this revision? If I know what this branch point is, then I could try to port over the changes to make the MT9T111/MT9T112 aptina camera driver work and in doing so, update the platform-agnostic camera driver along the way? Thanks --047d7bdc0934b0245404d85b257a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok. So what is the starting point of the linux-imx kernel code base. I beli= eve the kernel is 3.0.35. Was this branched off the mainline linux kernel a= t this revision? If I know what this branch point is, then I could try to p= ort over the changes to make the=A0 MT9T111/MT9T112 aptina camera driver wo= rk and in doing so, update the platform-agnostic camera driver along the wa= y? Thanks
--047d7bdc0934b0245404d85b257a-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6DE54E012F1 for ; Wed, 20 Mar 2013 06:35:49 -0700 (PDT) Received: by mail-oa0-f52.google.com with SMTP id k14so1773105oag.11 for ; Wed, 20 Mar 2013 06:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2a8QyKtrX6xsv6wP3Oife9vQDoNKRkPH5/KPWLtmdqg=; b=q/cQ+JUm+pyyTMwv6EvGEhgaX/TXs4asONo8Lqj+a9gXj/cZanTYVVt7IYi0b24hs2 RgHa4nL0MF+WU/YLh2zymOC5hH3onzrxQ69HlYQyvRCbvk7/z5LdrH9qazY/QjrYxo4N GThJp2sDHASzgvnzbOiGOqwL12YspTUg9s/3ef99umIQ3GENUq+3Gy8gyo64+ZWbeyuN +J3CZjhrVsqwOUqhplmHTBKa3sD2+34fS/5GazT5oBtN0kG5tVVzq4Fi8SJS690+p1UX 1q2RqIOPlyCuF3SvLxoAauE576F7BOP2UVmo+1l2cltpb4YEbwhLdvqzXutL/8bITadn kuMw== X-Received: by 10.60.29.161 with SMTP id l1mr4150218oeh.111.1363786548654; Wed, 20 Mar 2013 06:35:48 -0700 (PDT) Received: from goober.local ([75.76.228.60]) by mx.google.com with ESMTPS id v3sm1865932oev.5.2013.03.20.06.35.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 06:35:48 -0700 (PDT) Message-ID: <5149BB33.6060601@gmail.com> Date: Wed, 20 Mar 2013 08:35:47 -0500 From: John Weber User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: In-Reply-To: Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 13:35:49 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Ashwin, Please consider including the original text in your replies. It helps keep the conversation in context. If someone else on the list is looking at this message for the first time, they won't know the original question. I recently did a diff of the stock 3.0.35 kernel and Freescale latest revision of their kernel, which is based on 3.0.35. The diff was huge - around 47 MB, and the modifications to the source don't seem to be isolated to the typical directories. They are all over the place. I think that Freescale definitely went their own way when it comes to developing capture drivers. As far as I can tell, they don't make use of soc camera or media controller (the linuxtv stuff). You might want to start with one of the drivers in drivers/media/video/mxc/capture and see if you can use that as a basis for your mt9t112 driver. John On 3/20/13 8:24 AM, Ashwin Kirpalani wrote: > Ok. So what is the starting point of the linux-imx kernel code base. I believe > the kernel is 3.0.35. Was this branched off the mainline linux kernel at this > revision? If I know what this branch point is, then I could try to port over the > changes to make the MT9T111/MT9T112 aptina camera driver work and in doing so, > update the platform-agnostic camera driver along the way? Thanks From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qe0-f54.google.com (mail-qe0-f54.google.com [209.85.128.54]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 90F00E012F1 for ; Wed, 20 Mar 2013 07:54:03 -0700 (PDT) Received: by mail-qe0-f54.google.com with SMTP id i11so1131399qej.27 for ; Wed, 20 Mar 2013 07:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=dzC5JRwqOirkN8th49Y7cgftGWe5pBpEqZZs1EyfWFA=; b=v8MEGh366sSHfxlDbRNRzwbFDCu/rRmPegHOAnwRlVTWPWNnmh/IsjuhB2KCclLIY/ eimATgXN0wiLddr4DYyq4ZZmMKtPk9bdxBRfSXC12vGZlm5hvk6yGtQBKZYArwfnlEtd ePrSoP8dlZkR255uxmKDyLzIziEedm+Ft+Y4x/IwYjN8yI9jYFR3Ftg5TUYvNy9AFGva /M6YFD6FUQ0RP3UI2Efevqjd/xXv+sB9GmXgxUWFh5j0SrncFuxaamKzH5CyOKgzIOKM Y+8J/MNxnHHcHA7Z0RaC6I7vFze4yIsolEO+RLY6J5hep3nI1nI/zAidVVOmGYLhxKOz 9+AA== X-Received: by 10.229.77.35 with SMTP id e35mr1514855qck.80.1363791242057; Wed, 20 Mar 2013 07:54:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.14.162 with HTTP; Wed, 20 Mar 2013 07:53:41 -0700 (PDT) In-Reply-To: References: From: Ashwin Kirpalani Date: Wed, 20 Mar 2013 10:53:41 -0400 Message-ID: To: meta-freescale@yoctoproject.org Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 14:54:03 -0000 Content-Type: multipart/alternative; boundary=00032555c35e88084f04d85c647b --00032555c35e88084f04d85c647b Content-Type: text/plain; charset=ISO-8859-1 Browsing around freescale's linux-imx sources, I noticed that the correct version of the driver that I want (mt9t112.c) is indeed in the linux-imx sources from freescale. It is here: https://github.com/Freescale/linux-imx/tree/master/drivers/media/video. So why is it not the same in yocto's linux-imx-3-0-35 version? Could someone please explain how yocto's version diverges from freescale's kernel version and why? Thanks On Wed, Mar 20, 2013 at 9:24 AM, Ashwin Kirpalani wrote: > Ok. So what is the starting point of the linux-imx kernel code base. I > believe the kernel is 3.0.35. Was this branched off the mainline linux > kernel at this revision? If I know what this branch point is, then I could > try to port over the changes to make the MT9T111/MT9T112 aptina camera > driver work and in doing so, update the platform-agnostic camera driver > along the way? Thanks > --00032555c35e88084f04d85c647b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Browsing around freescale's linux-imx sources, I noticed that the corre= ct version of the driver that I want (mt9t112.c) is indeed in the linux-imx= sources from freescale. It is here: https://github.com/Freescale/l= inux-imx/tree/master/drivers/media/video. So why is it not the same in = yocto's linux-imx-3-0-35 version? Could someone please explain how yoct= o's version diverges from freescale's kernel version and why? Thank= s

On Wed, Mar 20, 2013 at 9:24 AM, Ashwin Kirp= alani <akcooper8@gmail.com> wrote:
Ok. So what is the starting point of the linux-imx kernel code base. I beli= eve the kernel is 3.0.35. Was this branched off the mainline linux kernel a= t this revision? If I know what this branch point is, then I could try to p= ort over the changes to make the=A0 MT9T111/MT9T112 aptina camera driver wo= rk and in doing so, update the platform-agnostic camera driver along the wa= y? Thanks

--00032555c35e88084f04d85c647b-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ED4F2E012F1 for ; Wed, 20 Mar 2013 08:17:18 -0700 (PDT) Received: by mail-ob0-f174.google.com with SMTP id 16so1738839obc.33 for ; Wed, 20 Mar 2013 08:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=x6MfLJesLbmu+sWSJ4PFJ8Ld8LNCvdnO7vB5FDBAoqg=; b=S+C57CWRmfaGBmeoNVuCpWDCoceTdAE5gDbos3Vh2oN4y9y+mdWXjrOtOECJ62fEFr hi7TJWO0YJpxAXH9urxFg3mbAVffsz/QpygqutqAVta3HjhpBwz3x/XMXEhinvh3qgRh L5RUva4VJAMdCUe9pOeO5ca3DIioWqNZPSiLGK3y2+pQwq8vfarrYF+e79HcOwYgkVZS JVoBZHeMzhUtG1whThHbSzKCowAngmu7f8ruQW4nppErEeabaycLVGeQQ7ARu2/cc57w r7Xfn8gUStCYSyMBfErdquIlylaL523KP/ep+9K8byqkrkjC60nj1a/zyonJ/xF6gbtH USZQ== X-Received: by 10.182.119.72 with SMTP id ks8mr4406319obb.23.1363792638287; Wed, 20 Mar 2013 08:17:18 -0700 (PDT) Received: from goober.local ([75.76.228.60]) by mx.google.com with ESMTPS id qk4sm2239280obc.5.2013.03.20.08.17.17 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 08:17:17 -0700 (PDT) Message-ID: <5149D2FC.7050006@gmail.com> Date: Wed, 20 Mar 2013 10:17:16 -0500 From: John Weber User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: In-Reply-To: Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 15:17:19 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit That is not the right repository. If you look at the recipes in meta-fsl-arm for the kernel, you'll see that the SRC_URI for linux-imx points to Freescale's git repo, not github. I'm actually not really sure what that repository is on github. It looks like a fork from a v3.5 mainline kernel with no commits from Freescale. This is basically the one we're using now in meta-fsl-arm master (not danny). You'll need to check the commit that is checked out: http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.0.35_1.1.0 On 3/20/13 9:53 AM, Ashwin Kirpalani wrote: > Browsing around freescale's linux-imx sources, I noticed that the correct > version of the driver that I want (mt9t112.c) is indeed in the linux-imx sources > from freescale. It is here: > https://github.com/Freescale/linux-imx/tree/master/drivers/media/video. So why > is it not the same in yocto's linux-imx-3-0-35 version? Could someone please > explain how yocto's version diverges from freescale's kernel version and why? Thanks > > On Wed, Mar 20, 2013 at 9:24 AM, Ashwin Kirpalani > wrote: > > Ok. So what is the starting point of the linux-imx kernel code base. I > believe the kernel is 3.0.35. Was this branched off the mainline linux > kernel at this revision? If I know what this branch point is, then I could > try to port over the changes to make the MT9T111/MT9T112 aptina camera > driver work and in doing so, update the platform-agnostic camera driver > along the way? Thanks > > > > > _______________________________________________ > meta-freescale mailing list > meta-freescale@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-freescale > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 89B7EE012F1 for ; Wed, 20 Mar 2013 08:24:15 -0700 (PDT) Received: from e6520eb (pac33-2-82-240-38-71.fbx.proxad.net [82.240.38.71]) (Authenticated sender: eukrea) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 482974B00F5; Wed, 20 Mar 2013 16:24:08 +0100 (CET) Date: Wed, 20 Mar 2013 16:24:06 +0100 From: Eric =?UTF-8?B?QsOpbmFyZA==?= To: Ashwin Kirpalani Message-ID: <20130320162406.6a21974e@e6520eb> In-Reply-To: References: Organization: =?UTF-8?B?RXVrcsOpYQ==?= Electromatique X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.13; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Cc: meta-freescale@yoctoproject.org Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 15:24:18 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ashwin, Le Wed, 20 Mar 2013 10:53:41 -0400, Ashwin Kirpalani a =C3=A9crit : > Browsing around freescale's linux-imx sources, I noticed that the correct > version of the driver that I want (mt9t112.c) is indeed in the linux-imx > sources from freescale. It is here: > https://github.com/Freescale/linux-imx/tree/master/drivers/media/video. So > why is it not the same in yocto's linux-imx-3-0-35 version? Could someone > please explain how yocto's version diverges from freescale's kernel versi= on > and why? Thanks >=20 at least 2 reasons : - this tree is not an officiel Freescale one despite the Freescale name of the github account, - you are looking at the master branch which is mainline, when the patch collection branches for Freescale's kernels are in branch patches-imx-2.6.35_10.12.01 and patches-imx-2.6.35_11.09.01 If you want the kernels from Freescale you can have a look here (especially the imx_ branches) : http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/ Best regards Eric From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qe0-f51.google.com (mail-qe0-f51.google.com [209.85.128.51]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6D1FEE0136C for ; Wed, 20 Mar 2013 09:36:40 -0700 (PDT) Received: by mail-qe0-f51.google.com with SMTP id nd7so1195746qeb.38 for ; Wed, 20 Mar 2013 09:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=dSPSI3HSy9cgTOB4jX13s7stt+0WFncRZtXhwMqvl1g=; b=mkQItZ15S9PpCe1LlJ368dyBKV+RStpxZrssde7hu/iQG5oN5h7d1GA4chtZSUxECs WnzvJARZq7db5QOfrNuasTXF2oWeYTgm9+c1nuVLn/UMLRlhscRo4T+uP13Y/FOAXy8K QTemJ/Pkm00iqQDuS66LG9j5AgewG8wO2XGbd+O4/XLgGbnqoEdkmVbkmOZjpMTpN571 N8HfV+aOOSUWD4Px2HL1smTAfp1185rK2LyBwyfBrKdKq5LFIeSf5gKySQLk5NHYKm3d nQUpRM2GOSsby9z5/uMx5gQYmBzyyG3Vr0GaqwmFQL6p58vJ5CzwXWVphEPGM3Hwn2Vc 09wg== X-Received: by 10.49.84.6 with SMTP id u6mr7538615qey.35.1363797399699; Wed, 20 Mar 2013 09:36:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.14.162 with HTTP; Wed, 20 Mar 2013 09:36:19 -0700 (PDT) In-Reply-To: <20130320162406.6a21974e@e6520eb> References: <20130320162406.6a21974e@e6520eb> From: Ashwin Kirpalani Date: Wed, 20 Mar 2013 12:36:19 -0400 Message-ID: To: eric@eukrea.com Cc: meta-freescale@yoctoproject.org Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 16:36:40 -0000 Content-Type: multipart/alternative; boundary=047d7bdc09348e2f6804d85dd3e7 --047d7bdc09348e2f6804d85dd3e7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ahhh...ok so I think I will have to port the mt9t112 driver to freescale's way of doing things, namely in the drivers/media/video/mxc/capture since freescale is not using soc_camera. On a somewhat related question, what is this "imx-devel" branch about?: https://github.com/RobertCNelson/imx-devel/branches I see all kinds of references to imx-devel and v3.x.y.imx-devel here. How come this is all the way up to 3.8 while Freescale is still on 3.0.35. Something doesn't seem right! Thanks On Wed, Mar 20, 2013 at 11:24 AM, Eric B=E9nard wrote: > Hi Ashwin, > > Le Wed, 20 Mar 2013 10:53:41 -0400, > Ashwin Kirpalani a =E9crit : > > Browsing around freescale's linux-imx sources, I noticed that the corre= ct > > version of the driver that I want (mt9t112.c) is indeed in the linux-im= x > > sources from freescale. It is here: > > https://github.com/Freescale/linux-imx/tree/master/drivers/media/video. > So > > why is it not the same in yocto's linux-imx-3-0-35 version? Could someo= ne > > please explain how yocto's version diverges from freescale's kernel > version > > and why? Thanks > > > at least 2 reasons : > - this tree is not an officiel Freescale one despite the Freescale name > of the github account, > - you are looking at the master branch which is mainline, when the > patch collection branches for Freescale's kernels are in branch > patches-imx-2.6.35_10.12.01 and patches-imx-2.6.35_11.09.01 > > If you want the kernels from Freescale you can have a look here > (especially the imx_ branches) : > http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/ > > Best regards > Eric > --047d7bdc09348e2f6804d85dd3e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ahhh...ok so I think I will have to port the mt9t112 driver to freescale= 9;s way of doing things, namely in the drivers/media/video/mxc/capture sinc= e freescale is not using soc_camera.

On a somewhat related question,= what is this "imx-devel" branch about?:
https://git= hub.com/RobertCNelson/imx-devel/branches
I see all kinds of referenc= es to imx-devel and v3.x.y.imx-devel here. How come this is all the way up = to 3.8 while Freescale is still on 3.0.35. Something doesn't seem right= !

Thanks
On Wed, Mar 20, 2013 at 11:24 AM, = Eric B=E9nard <eric@eukrea.com> wrote:
Hi Ashwin,

Le Wed, 20 Mar 2013 10:53:41 -0400,
Ashwin Kirpalani <akcooper8@gmail= .com> a =E9crit :
> Browsing around freescale's linux-imx sources, I= noticed that the correct
> version of the driver that I want (mt9t112.c) is indeed in the linux-i= mx
> sources from freescale. It is here:
> https://github.com/Freescale/linux-imx/tree/= master/drivers/media/video. So
> why is it not the same in yocto's linux-imx-3-0-35 version? Could = someone
> please explain how yocto's version diverges from freescale's k= ernel version
> and why? Thanks
>
at least 2 reasons :
- this tree is not an officiel Freescale one despite the Freescale name
=A0 of the github account,
- you are looking at the master branch which is mainline, when the
=A0 patch collection branches for Freescale's kernels are in branch
=A0 patches-imx-2.6.35_10.12.01 and patches-imx-2.6.35_11.09.01

If you want the kernels from Freescale you can have a look here
(especially the imx_ branches) :
http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git= /

Best regards
Eric

--047d7bdc09348e2f6804d85dd3e7-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 80EC8E0136C for ; Wed, 20 Mar 2013 09:43:42 -0700 (PDT) Received: from e6520eb (pac33-2-82-240-38-71.fbx.proxad.net [82.240.38.71]) (Authenticated sender: eukrea) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 6543F4B02A7; Wed, 20 Mar 2013 17:43:36 +0100 (CET) Date: Wed, 20 Mar 2013 17:43:34 +0100 From: Eric =?UTF-8?B?QsOpbmFyZA==?= To: Ashwin Kirpalani Message-ID: <20130320174334.26f90b46@e6520eb> In-Reply-To: References: <20130320162406.6a21974e@e6520eb> Organization: =?UTF-8?B?RXVrcsOpYQ==?= Electromatique X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.13; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Cc: meta-freescale@yoctoproject.org Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 16:43:44 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ashwin, Le Wed, 20 Mar 2013 12:36:19 -0400, Ashwin Kirpalani a =C3=A9crit : > ahhh...ok so I think I will have to port the mt9t112 driver to freescale's > way of doing things, namely in the drivers/media/video/mxc/capture since > freescale is not using soc_camera. >=20 True. > On a somewhat related question, what is this "imx-devel" branch about?: > https://github.com/RobertCNelson/imx-devel/branches > I see all kinds of references to imx-devel and v3.x.y.imx-devel here. How > come this is all the way up to 3.8 while Freescale is still on 3.0.35. > Something doesn't seem right! >=20 Freescale's official kernel is based on 3.0.35 (and oyu are lucky, i.MX53 is stuck at 2.6.35 ;-( , but community and Linaro's people are working on mainline (which doesn't have all the drivers the official kernel has), so depending on the peripherals you need, you could run a mainline kernel on your i.MX CPU. Eric From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 66D9BE0136C for ; Wed, 20 Mar 2013 09:46:14 -0700 (PDT) Received: by mail-vb0-f44.google.com with SMTP id fr13so1239035vbb.31 for ; Wed, 20 Mar 2013 09:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/lIABKXtlyi6DY7+w/uSnouGtCeTfoXrEIIYOQAZRUQ=; b=KL39jyZohf8PKcLYW2ooJM1DpqzDGQ6YTZi1Q5gl0Vd520hFmJRAET5OLUZUPLT60w 2EHK7DwzdpXhvSdJ7cjj8d7lqrAIzoOcaXfSlh0jwErd0vCoco6w40EshX8nxziTIAoM /ejLI5UoVLAS9iQGn8qbHOfiAPtT9l7uv12n23WSsAKnGTz4sPfWUwRZMLRdnWViKwPg yX6vGk1g8OiKsUMU73xowqHQhZXQZyzIULakVYxkGHfj9yaNP6Ff6ewgSAZ1643GY8br 73JZzkuXFAh+CKqOLXUHgNEOIuUHTTjTpzKgN+/1wdBwpEYuEVEs0o/6ABc7Mw/eSdyZ PqUQ== MIME-Version: 1.0 X-Received: by 10.58.29.49 with SMTP id g17mr8918340veh.35.1363797973573; Wed, 20 Mar 2013 09:46:13 -0700 (PDT) Received: by 10.59.5.201 with HTTP; Wed, 20 Mar 2013 09:46:13 -0700 (PDT) In-Reply-To: References: <20130320162406.6a21974e@e6520eb> Date: Wed, 20 Mar 2013 13:46:13 -0300 Message-ID: From: Fabio Estevam To: Ashwin Kirpalani Cc: meta-freescale@yoctoproject.org Subject: Re: MT9T111/MT9T112 aptina camera driver in linux-imx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 16:46:14 -0000 Content-Type: text/plain; charset=UTF-8 On Wed, Mar 20, 2013 at 1:36 PM, Ashwin Kirpalani wrote: > ahhh...ok so I think I will have to port the mt9t112 driver to freescale's > way of doing things, namely in the drivers/media/video/mxc/capture since > freescale is not using soc_camera. > > On a somewhat related question, what is this "imx-devel" branch about?: > https://github.com/RobertCNelson/imx-devel/branches > I see all kinds of references to imx-devel and v3.x.y.imx-devel here. How > come this is all the way up to 3.8 while Freescale is still on 3.0.35. > Something doesn't seem right! It is possible to run 3.8 kernel on many Freescale devices. For mx6 the kernel that Freescale provides is based on 3.0.35.