* MT9T111/MT9T112 aptina camera driver in linux-imx
@ 2013-03-19 23:55 Ashwin Kirpalani
2013-03-20 12:08 ` Otavio Salvador
0 siblings, 1 reply; 10+ messages in thread
From: Ashwin Kirpalani @ 2013-03-19 23:55 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1174 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-19 23:55 Ashwin Kirpalani
@ 2013-03-20 12:08 ` Otavio Salvador
0 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2013-03-20 12:08 UTC (permalink / raw)
To: Ashwin Kirpalani; +Cc: meta-freescale@yoctoproject.org
On Tue, Mar 19, 2013 at 8:55 PM, Ashwin Kirpalani <akcooper8@gmail.com> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
@ 2013-03-20 13:24 Ashwin Kirpalani
2013-03-20 13:35 ` John Weber
2013-03-20 14:53 ` Ashwin Kirpalani
0 siblings, 2 replies; 10+ messages in thread
From: Ashwin Kirpalani @ 2013-03-20 13:24 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 390 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 13:24 MT9T111/MT9T112 aptina camera driver in linux-imx Ashwin Kirpalani
@ 2013-03-20 13:35 ` John Weber
2013-03-20 14:53 ` Ashwin Kirpalani
1 sibling, 0 replies; 10+ messages in thread
From: John Weber @ 2013-03-20 13:35 UTC (permalink / raw)
To: meta-freescale
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 13:24 MT9T111/MT9T112 aptina camera driver in linux-imx Ashwin Kirpalani
2013-03-20 13:35 ` John Weber
@ 2013-03-20 14:53 ` Ashwin Kirpalani
2013-03-20 15:17 ` John Weber
2013-03-20 15:24 ` Eric Bénard
1 sibling, 2 replies; 10+ messages in thread
From: Ashwin Kirpalani @ 2013-03-20 14:53 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
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 <akcooper8@gmail.com>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
>
[-- Attachment #2: Type: text/html, Size: 1252 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 14:53 ` Ashwin Kirpalani
@ 2013-03-20 15:17 ` John Weber
2013-03-20 15:24 ` Eric Bénard
1 sibling, 0 replies; 10+ messages in thread
From: John Weber @ 2013-03-20 15:17 UTC (permalink / raw)
To: meta-freescale
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 <akcooper8@gmail.com
> <mailto:akcooper8@gmail.com>> 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
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 14:53 ` Ashwin Kirpalani
2013-03-20 15:17 ` John Weber
@ 2013-03-20 15:24 ` Eric Bénard
2013-03-20 16:36 ` Ashwin Kirpalani
1 sibling, 1 reply; 10+ messages in thread
From: Eric Bénard @ 2013-03-20 15:24 UTC (permalink / raw)
To: Ashwin Kirpalani; +Cc: meta-freescale
Hi Ashwin,
Le Wed, 20 Mar 2013 10:53:41 -0400,
Ashwin Kirpalani <akcooper8@gmail.com> a écrit :
> 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
>
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 15:24 ` Eric Bénard
@ 2013-03-20 16:36 ` Ashwin Kirpalani
2013-03-20 16:43 ` Eric Bénard
2013-03-20 16:46 ` Fabio Estevam
0 siblings, 2 replies; 10+ messages in thread
From: Ashwin Kirpalani @ 2013-03-20 16:36 UTC (permalink / raw)
To: eric; +Cc: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 1685 bytes --]
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énard <eric@eukrea.com> wrote:
> Hi Ashwin,
>
> Le Wed, 20 Mar 2013 10:53:41 -0400,
> Ashwin Kirpalani <akcooper8@gmail.com> a écrit :
> > 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
> >
> 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
>
[-- Attachment #2: Type: text/html, Size: 2431 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 16:36 ` Ashwin Kirpalani
@ 2013-03-20 16:43 ` Eric Bénard
2013-03-20 16:46 ` Fabio Estevam
1 sibling, 0 replies; 10+ messages in thread
From: Eric Bénard @ 2013-03-20 16:43 UTC (permalink / raw)
To: Ashwin Kirpalani; +Cc: meta-freescale
Hi Ashwin,
Le Wed, 20 Mar 2013 12:36:19 -0400,
Ashwin Kirpalani <akcooper8@gmail.com> a écrit :
> 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.
>
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!
>
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MT9T111/MT9T112 aptina camera driver in linux-imx
2013-03-20 16:36 ` Ashwin Kirpalani
2013-03-20 16:43 ` Eric Bénard
@ 2013-03-20 16:46 ` Fabio Estevam
1 sibling, 0 replies; 10+ messages in thread
From: Fabio Estevam @ 2013-03-20 16:46 UTC (permalink / raw)
To: Ashwin Kirpalani; +Cc: meta-freescale
On Wed, Mar 20, 2013 at 1:36 PM, Ashwin Kirpalani <akcooper8@gmail.com> 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.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-03-20 16:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-20 13:24 MT9T111/MT9T112 aptina camera driver in linux-imx Ashwin Kirpalani
2013-03-20 13:35 ` John Weber
2013-03-20 14:53 ` Ashwin Kirpalani
2013-03-20 15:17 ` John Weber
2013-03-20 15:24 ` Eric Bénard
2013-03-20 16:36 ` Ashwin Kirpalani
2013-03-20 16:43 ` Eric Bénard
2013-03-20 16:46 ` Fabio Estevam
-- strict thread matches above, loose matches on Subject: below --
2013-03-19 23:55 Ashwin Kirpalani
2013-03-20 12:08 ` Otavio Salvador
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.