From: Gary Thomas <gary@mlbassoc.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] Adding YUV input support for OMAP3ISP driver
Date: Thu, 19 Jan 2012 10:39:33 -0700 [thread overview]
Message-ID: <4F185555.2030607@mlbassoc.com> (raw)
In-Reply-To: <4F185171.9080504@mlbassoc.com>
On 2012-01-19 10:22, Gary Thomas wrote:
> On 2012-01-19 10:08, Gary Thomas wrote:
>> On 2012-01-19 07:36, Gary Thomas wrote:
>>> On 2012-01-19 07:11, Javier Martinez Canillas wrote:
>>>> On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>>> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>>>>>
>>>>>> Hi Gary,
>>>>>>
>>>>>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>>>>>
>>>>>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>>>>>
>>>>>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>>>>>
>>>>>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>>>>>> <snip>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>>>>>> and pushed them to
>>>>>>>>>>
>>>>>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>>>>>> with your sensor ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I just tried this kernel with my board. The media control
>>>>>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>>>>>> access them.
>>>>>>>>>
>>>>>>>>> From the bootup log:
>>>>>>>>> Linux media interface: v0.10
>>>>>>>>> Linux video capture interface: v2.00
>>>>>>>>
>>>>>>>>
>>>>>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>>>>>
>>>>>>>
>>>>>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>>>>>> no messages). I'll check into this.
>>>>>>
>>>>>>
>>>>>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko
>>>>>> is
>>>>>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp'
>>>>>> is a
>>>>>>
>>>>>> quick way to test it.
>>>>>
>>>>>
>>>>> I have everything compiled in - no modules.
>>>>>
>>>>
>>>> At least for me, it only worked when compiled both the omap3-isp and
>>>> tvp5150 drivers as a module. If I compile them built-in, it fails.
>>>
>>> Can you share your board/sensor init code from your board-init.c
>>> so I can see how to manage this as a module?
>>>
>>> n.b. I really don't like messing with modules - it used to work
>>> fine, so IMO it should continue to do so.
>>
>> I figured out part of the problem - I had tried to reuse my 3.0 kernel
>> config. Sadly, this left out major chunks, in particular the OMAP3ISP
>> was left out because OMAP_IOVMMU is new. I got this configured and it's
>> starting to initialize, but now it fails during boot:
>> kernel BUG at /local/pinchartl-media/drivers/media/media-entity.c:348
>> [<c02416c4>] (media_entity_create_link+0x60/0x138) from [<c0251c0c>] (isp_probe+0x938/0xba4)
>> [<c0251c0c>] (isp_probe+0x938/0xba4) from [<c01e381c>] (platform_drv_probe+0x1c/0x24)
>> [<c01e381c>] (platform_drv_probe+0x1c/0x24) from [<c01e24f4>] (driver_probe_device+0xcc/0x1b4)
>> [<c01e24f4>] (driver_probe_device+0xcc/0x1b4) from [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c)
>> [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c) from [<c01e2750>] (device_attach+0x74/0xa0)
>> [<c01e2750>] (device_attach+0x74/0xa0) from [<c01e1838>] (bus_probe_device+0x28/0x50)
>> [<c01e1838>] (bus_probe_device+0x28/0x50) from [<c01e07f8>] (device_add+0x40c/0x590)
>> [<c01e07f8>] (device_add+0x40c/0x590) from [<c01e3e44>] (platform_device_add+0x108/0x168)
>> [<c01e3e44>] (platform_device_add+0x108/0x168) from [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188)
>> [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188) from [<c0008730>] (do_one_initcall+0x94/0x15c)
>> [<c0008730>] (do_one_initcall+0x94/0x15c) from [<c044d21c>] (kernel_init+0x78/0x120)
>> [<c044d21c>] (kernel_init+0x78/0x120) from [<c00146c8>] (kernel_thread_exit+0x0/0x8)
>>
>> Any ideas what else I might have missed? My kernel config is attached in case
>> that helps.
>
> It turns out that drivers/media/video/tvp5150.c is not the most
> recent one posted - it has no v4l2_subdev support in it at all :-(
>
> I copied the one I've been using from my 3.0+ kernel and it
> now builds. I can run media-ctl and configure the pipeline,
> etc, but sadly no data is captured at all :-(
>
It also looks like none of the BT656 support is in this driver
either.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
prev parent reply other threads:[~2012-01-19 17:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <EBE38CF866F2F94F95FA9A8CB3EF2284069CAE@singex1.aptina.com>
2012-01-17 15:33 ` [PATCH] Adding YUV input support for OMAP3ISP driver Laurent Pinchart
2012-01-19 12:41 ` Gary Thomas
2012-01-19 12:50 ` Laurent Pinchart
2012-01-19 13:13 ` Gary Thomas
2012-01-19 13:28 ` Laurent Pinchart
2012-01-19 13:35 ` Gary Thomas
2012-01-19 13:52 ` Gary Thomas
2012-01-19 14:17 ` Enrico
2012-01-20 12:19 ` Laurent Pinchart
2012-01-30 17:30 ` Gary Thomas
2012-02-04 11:48 ` Gary Thomas
2012-02-04 15:26 ` Enrico
2012-03-08 15:04 ` Enrico
2012-01-19 14:11 ` Javier Martinez Canillas
2012-01-19 14:36 ` Gary Thomas
2012-01-19 16:12 ` Javier Martinez Canillas
2012-01-19 17:08 ` Gary Thomas
2012-01-19 17:22 ` Gary Thomas
2012-01-19 17:39 ` Gary Thomas [this message]
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=4F185555.2030607@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
/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.