Linux Media Controller development
 help / color / mirror / Atom feed
* omap4 v4l media-ctl usage
@ 2012-02-18 15:29 Ryan
  2012-02-19  8:57 ` Laurent Pinchart
  0 siblings, 1 reply; 7+ messages in thread
From: Ryan @ 2012-02-18 15:29 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart

hello,
I am using media-ctl on the panda board. The sensor gets detected. But
media-ctl doesnt print anything.
The kernel is cloned from omap4 v4l git tree: commit id:
3bc023462a68f78bb0273848f5ab08a01b434ffa

what could be wrong in here?

~ # ./media-ctl -p
Opening media device /dev/media0
Enumerating entities
Found 0 entities
Enumerating pads and links
Device topology

What steps i need to follow get output from sensor in terms of
arguments to media-ctl and yavta.

Regards,
ryan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: omap4 v4l media-ctl usage
  2012-02-18 15:29 omap4 v4l media-ctl usage Ryan
@ 2012-02-19  8:57 ` Laurent Pinchart
  2012-02-19 14:17   ` Ryan
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2012-02-19  8:57 UTC (permalink / raw)
  To: Ryan; +Cc: linux-media

Hi Ryan,

On Saturday 18 February 2012 20:59:57 Ryan wrote:
> hello,
> I am using media-ctl on the panda board. The sensor gets detected. But
> media-ctl doesnt print anything.
> The kernel is cloned from omap4 v4l git tree: commit id:
> 3bc023462a68f78bb0273848f5ab08a01b434ffa
> 
> what could be wrong in here?
> 
> ~ # ./media-ctl -p
> Opening media device /dev/media0
> Enumerating entities
> Found 0 entities
> Enumerating pads and links
> Device topology
> 
> What steps i need to follow get output from sensor in terms of
> arguments to media-ctl and yavta.

Could you please first make sure that media-ctl has be compiled against header 
files from the kernel running on your board ?

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: omap4 v4l media-ctl usage
  2012-02-19  8:57 ` Laurent Pinchart
@ 2012-02-19 14:17   ` Ryan
  2012-02-19 16:04     ` Ryan
  0 siblings, 1 reply; 7+ messages in thread
From: Ryan @ 2012-02-19 14:17 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linux-media

Hi Laurent,

On Sun, Feb 19, 2012 at 2:27 PM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> Hi Ryan,
>
> On Saturday 18 February 2012 20:59:57 Ryan wrote:
>> hello,
>> I am using media-ctl on the panda board. The sensor gets detected. But
>> media-ctl doesnt print anything.
>> The kernel is cloned from omap4 v4l git tree: commit id:
>> 3bc023462a68f78bb0273848f5ab08a01b434ffa
>>
>> what could be wrong in here?
>>
>> ~ # ./media-ctl -p
>> Opening media device /dev/media0
>> Enumerating entities
>> Found 0 entities
>> Enumerating pads and links
>> Device topology
>>
>> What steps i need to follow get output from sensor in terms of
>> arguments to media-ctl and yavta.
>
> Could you please first make sure that media-ctl has be compiled against header
> files from the kernel running on your board ?
>

Thank you, That did the trick, Now i am able to run media-ctl. I am
trying to capture YUV422.
When i run yavta, It blocks infinitely at STREAM ON, I see that the
ISS interrupts keeps incrementing.
Am i missing something?

#yavta /dev/video0  -n1 -c5 -s640x480 -fUYVY -Ftest.yuv
Device /dev/video0 opened: OMAP4 ISS CSI2a output (media).
Video format set: width: 640 height: 480 buffer size: 614400
Video format: UYVY (59565955) 640x480
1 buffers requested.
length: 614400 offset: 0
Buffer 0 mapped at address 0x4028e000.
[  577.605590] Enable STREAM ON>..


After configuring using the media-ctl, This is how my device topology
looks like:
Is this okay?

Device topology
- entity 1: OMAP4 ISS CSI2a (2 pads, 2 links)
            type V4L2 subdev subtype Unknown
            device node name /dev/v4l-subdev0
        pad0: Sink [UYVY 640x480]
                <- "ov5640 3-0036":0 [ENABLED,IMMUTABLE]
        pad1: Source [UYVY 640x480]
                -> "OMAP4 ISS CSI2a output":0 [ENABLED]

- entity 2: OMAP4 ISS CSI2a output (1 pad, 1 link)
            type Node subtype V4L
            device node name /dev/video0
        pad0: Sink
                <- "OMAP4 ISS CSI2a":1 [ENABLED]

- entity 3: ov5640 3-0036 (1 pad, 1 link)
            type V4L2 subdev subtype Unknown
            device node name /dev/v4l-subdev1
        pad0: Source [UYVY 640x480]
                -> "OMAP4 ISS CSI2a":0 [ENABLED,IMMUTABLE]



Thank you,

Regards,
Ryan


> --
> Regards,
>
> Laurent Pinchart

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: omap4 v4l media-ctl usage
  2012-02-19 14:17   ` Ryan
@ 2012-02-19 16:04     ` Ryan
  2012-02-20  3:44       ` Sakari Ailus
  2012-02-20  5:03       ` Aguirre, Sergio
  0 siblings, 2 replies; 7+ messages in thread
From: Ryan @ 2012-02-19 16:04 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linux-media

Hi Laurent,

It actually blocks at VIDIOC_DQBUF ioctl and not in STREAMON ioctl.
Looks like the data is not available.

Any way of verifying if OMAP is receiving data. Wonder why i keep
interrupts though?
Is my media-ctl setting up things correctly?

Thank you.

Regards,
Ryan


On Sun, Feb 19, 2012 at 7:47 PM, Ryan <ryanphilips19@googlemail.com> wrote:
> Hi Laurent,
>
> On Sun, Feb 19, 2012 at 2:27 PM, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
>> Hi Ryan,
>>
>> On Saturday 18 February 2012 20:59:57 Ryan wrote:
>>> hello,
>>> I am using media-ctl on the panda board. The sensor gets detected. But
>>> media-ctl doesnt print anything.
>>> The kernel is cloned from omap4 v4l git tree: commit id:
>>> 3bc023462a68f78bb0273848f5ab08a01b434ffa
>>>
>>> what could be wrong in here?
>>>
>>> ~ # ./media-ctl -p
>>> Opening media device /dev/media0
>>> Enumerating entities
>>> Found 0 entities
>>> Enumerating pads and links
>>> Device topology
>>>
>>> What steps i need to follow get output from sensor in terms of
>>> arguments to media-ctl and yavta.
>>
>> Could you please first make sure that media-ctl has be compiled against header
>> files from the kernel running on your board ?
>>
>
> Thank you, That did the trick, Now i am able to run media-ctl. I am
> trying to capture YUV422.
> When i run yavta, It blocks infinitely at STREAM ON, I see that the
> ISS interrupts keeps incrementing.
> Am i missing something?
>
> #yavta /dev/video0  -n1 -c5 -s640x480 -fUYVY -Ftest.yuv
> Device /dev/video0 opened: OMAP4 ISS CSI2a output (media).
> Video format set: width: 640 height: 480 buffer size: 614400
> Video format: UYVY (59565955) 640x480
> 1 buffers requested.
> length: 614400 offset: 0
> Buffer 0 mapped at address 0x4028e000.
> [  577.605590] Enable STREAM ON>..
>
>
> After configuring using the media-ctl, This is how my device topology
> looks like:
> Is this okay?
>
> Device topology
> - entity 1: OMAP4 ISS CSI2a (2 pads, 2 links)
>            type V4L2 subdev subtype Unknown
>            device node name /dev/v4l-subdev0
>        pad0: Sink [UYVY 640x480]
>                <- "ov5640 3-0036":0 [ENABLED,IMMUTABLE]
>        pad1: Source [UYVY 640x480]
>                -> "OMAP4 ISS CSI2a output":0 [ENABLED]
>
> - entity 2: OMAP4 ISS CSI2a output (1 pad, 1 link)
>            type Node subtype V4L
>            device node name /dev/video0
>        pad0: Sink
>                <- "OMAP4 ISS CSI2a":1 [ENABLED]
>
> - entity 3: ov5640 3-0036 (1 pad, 1 link)
>            type V4L2 subdev subtype Unknown
>            device node name /dev/v4l-subdev1
>        pad0: Source [UYVY 640x480]
>                -> "OMAP4 ISS CSI2a":0 [ENABLED,IMMUTABLE]
>
>
>
> Thank you,
>
> Regards,
> Ryan
>
>
>> --
>> Regards,
>>
>> Laurent Pinchart

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: omap4 v4l media-ctl usage
  2012-02-19 16:04     ` Ryan
@ 2012-02-20  3:44       ` Sakari Ailus
  2012-02-20  5:03       ` Aguirre, Sergio
  1 sibling, 0 replies; 7+ messages in thread
From: Sakari Ailus @ 2012-02-20  3:44 UTC (permalink / raw)
  To: Ryan; +Cc: Laurent Pinchart, linux-media, saaguirre

Hi Ryan,

On Sun, Feb 19, 2012 at 09:34:24PM +0530, Ryan wrote:
> It actually blocks at VIDIOC_DQBUF ioctl and not in STREAMON ioctl.
> Looks like the data is not available.
> 
> Any way of verifying if OMAP is receiving data. Wonder why i keep
> interrupts though?

You do get or do not get interrupts?

> Is my media-ctl setting up things correctly?

In principle at least, yes. Streamon should fail if there's something wrong
in the configuration.

Cc Sergio.

> On Sun, Feb 19, 2012 at 7:47 PM, Ryan <ryanphilips19@googlemail.com> wrote:
> > Hi Laurent,
> >
> > On Sun, Feb 19, 2012 at 2:27 PM, Laurent Pinchart
> > <laurent.pinchart@ideasonboard.com> wrote:
> >> Hi Ryan,
> >>
> >> On Saturday 18 February 2012 20:59:57 Ryan wrote:
> >>> hello,
> >>> I am using media-ctl on the panda board. The sensor gets detected. But
> >>> media-ctl doesnt print anything.
> >>> The kernel is cloned from omap4 v4l git tree: commit id:
> >>> 3bc023462a68f78bb0273848f5ab08a01b434ffa
> >>>
> >>> what could be wrong in here?
> >>>
> >>> ~ # ./media-ctl -p
> >>> Opening media device /dev/media0
> >>> Enumerating entities
> >>> Found 0 entities
> >>> Enumerating pads and links
> >>> Device topology
> >>>
> >>> What steps i need to follow get output from sensor in terms of
> >>> arguments to media-ctl and yavta.
> >>
> >> Could you please first make sure that media-ctl has be compiled against header
> >> files from the kernel running on your board ?
> >>
> >
> > Thank you, That did the trick, Now i am able to run media-ctl. I am
> > trying to capture YUV422.
> > When i run yavta, It blocks infinitely at STREAM ON, I see that the
> > ISS interrupts keeps incrementing.
> > Am i missing something?
> >
> > #yavta /dev/video0  -n1 -c5 -s640x480 -fUYVY -Ftest.yuv
> > Device /dev/video0 opened: OMAP4 ISS CSI2a output (media).
> > Video format set: width: 640 height: 480 buffer size: 614400
> > Video format: UYVY (59565955) 640x480
> > 1 buffers requested.
> > length: 614400 offset: 0
> > Buffer 0 mapped at address 0x4028e000.
> > [  577.605590] Enable STREAM ON>..
> >
> >
> > After configuring using the media-ctl, This is how my device topology
> > looks like:
> > Is this okay?
> >
> > Device topology
> > - entity 1: OMAP4 ISS CSI2a (2 pads, 2 links)
> >            type V4L2 subdev subtype Unknown
> >            device node name /dev/v4l-subdev0
> >        pad0: Sink [UYVY 640x480]
> >                <- "ov5640 3-0036":0 [ENABLED,IMMUTABLE]
> >        pad1: Source [UYVY 640x480]
> >                -> "OMAP4 ISS CSI2a output":0 [ENABLED]
> >
> > - entity 2: OMAP4 ISS CSI2a output (1 pad, 1 link)
> >            type Node subtype V4L
> >            device node name /dev/video0
> >        pad0: Sink
> >                <- "OMAP4 ISS CSI2a":1 [ENABLED]
> >
> > - entity 3: ov5640 3-0036 (1 pad, 1 link)
> >            type V4L2 subdev subtype Unknown
> >            device node name /dev/v4l-subdev1
> >        pad0: Source [UYVY 640x480]
> >                -> "OMAP4 ISS CSI2a":0 [ENABLED,IMMUTABLE]
> >
> >
> >
> > Thank you,
> >
> > Regards,
> > Ryan
> >
> >
> >> --
> >> Regards,
> >>
> >> Laurent Pinchart
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Sakari Ailus
e-mail: sakari.ailus@iki.fi	jabber/XMPP/Gmail: sailus@retiisi.org.uk

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: omap4 v4l media-ctl usage
  2012-02-19 16:04     ` Ryan
  2012-02-20  3:44       ` Sakari Ailus
@ 2012-02-20  5:03       ` Aguirre, Sergio
  2012-02-20 15:15         ` Ryan
  1 sibling, 1 reply; 7+ messages in thread
From: Aguirre, Sergio @ 2012-02-20  5:03 UTC (permalink / raw)
  To: Ryan; +Cc: Laurent Pinchart, linux-media

H Ryan,

On Sun, Feb 19, 2012 at 10:04 AM, Ryan <ryanphilips19@googlemail.com> wrote:
> Hi Laurent,
>
> It actually blocks at VIDIOC_DQBUF ioctl and not in STREAMON ioctl.
> Looks like the data is not available.
>
> Any way of verifying if OMAP is receiving data. Wonder why i keep
> interrupts though?

Can you try again after cherry-picking these 3 commits?:

7ea3af1 ov5640: Move initial config to registering callback
dbe85fd ov5640: Fix s_fmt behaviour
522e30a panda: camera: Fix ddr_freq for OV5640 selection

I'll suggest you to try keeping on latest "devel" branch head, since
there's many fixes and cleanups I have been pushing in the tree.

Regards,
Sergio

> Is my media-ctl setting up things correctly?
>
> Thank you.
>
> Regards,
> Ryan
>
>
> On Sun, Feb 19, 2012 at 7:47 PM, Ryan <ryanphilips19@googlemail.com> wrote:
>> Hi Laurent,
>>
>> On Sun, Feb 19, 2012 at 2:27 PM, Laurent Pinchart
>> <laurent.pinchart@ideasonboard.com> wrote:
>>> Hi Ryan,
>>>
>>> On Saturday 18 February 2012 20:59:57 Ryan wrote:
>>>> hello,
>>>> I am using media-ctl on the panda board. The sensor gets detected. But
>>>> media-ctl doesnt print anything.
>>>> The kernel is cloned from omap4 v4l git tree: commit id:
>>>> 3bc023462a68f78bb0273848f5ab08a01b434ffa
>>>>
>>>> what could be wrong in here?
>>>>
>>>> ~ # ./media-ctl -p
>>>> Opening media device /dev/media0
>>>> Enumerating entities
>>>> Found 0 entities
>>>> Enumerating pads and links
>>>> Device topology
>>>>
>>>> What steps i need to follow get output from sensor in terms of
>>>> arguments to media-ctl and yavta.
>>>
>>> Could you please first make sure that media-ctl has be compiled against header
>>> files from the kernel running on your board ?
>>>
>>
>> Thank you, That did the trick, Now i am able to run media-ctl. I am
>> trying to capture YUV422.
>> When i run yavta, It blocks infinitely at STREAM ON, I see that the
>> ISS interrupts keeps incrementing.
>> Am i missing something?
>>
>> #yavta /dev/video0  -n1 -c5 -s640x480 -fUYVY -Ftest.yuv
>> Device /dev/video0 opened: OMAP4 ISS CSI2a output (media).
>> Video format set: width: 640 height: 480 buffer size: 614400
>> Video format: UYVY (59565955) 640x480
>> 1 buffers requested.
>> length: 614400 offset: 0
>> Buffer 0 mapped at address 0x4028e000.
>> [  577.605590] Enable STREAM ON>..
>>
>>
>> After configuring using the media-ctl, This is how my device topology
>> looks like:
>> Is this okay?
>>
>> Device topology
>> - entity 1: OMAP4 ISS CSI2a (2 pads, 2 links)
>>            type V4L2 subdev subtype Unknown
>>            device node name /dev/v4l-subdev0
>>        pad0: Sink [UYVY 640x480]
>>                <- "ov5640 3-0036":0 [ENABLED,IMMUTABLE]
>>        pad1: Source [UYVY 640x480]
>>                -> "OMAP4 ISS CSI2a output":0 [ENABLED]
>>
>> - entity 2: OMAP4 ISS CSI2a output (1 pad, 1 link)
>>            type Node subtype V4L
>>            device node name /dev/video0
>>        pad0: Sink
>>                <- "OMAP4 ISS CSI2a":1 [ENABLED]
>>
>> - entity 3: ov5640 3-0036 (1 pad, 1 link)
>>            type V4L2 subdev subtype Unknown
>>            device node name /dev/v4l-subdev1
>>        pad0: Source [UYVY 640x480]
>>                -> "OMAP4 ISS CSI2a":0 [ENABLED,IMMUTABLE]
>>
>>
>>
>> Thank you,
>>
>> Regards,
>> Ryan
>>
>>
>>> --
>>> Regards,
>>>
>>> Laurent Pinchart
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: omap4 v4l media-ctl usage
  2012-02-20  5:03       ` Aguirre, Sergio
@ 2012-02-20 15:15         ` Ryan
  0 siblings, 0 replies; 7+ messages in thread
From: Ryan @ 2012-02-20 15:15 UTC (permalink / raw)
  To: Aguirre, Sergio; +Cc: Laurent Pinchart, linux-media

Hi Sergio,

On Mon, Feb 20, 2012 at 10:33 AM, Aguirre, Sergio <saaguirre@ti.com> wrote:
> H Ryan,
>
> On Sun, Feb 19, 2012 at 10:04 AM, Ryan <ryanphilips19@googlemail.com> wrote:
>> Hi Laurent,
>>
>> It actually blocks at VIDIOC_DQBUF ioctl and not in STREAMON ioctl.
>> Looks like the data is not available.
>>
>> Any way of verifying if OMAP is receiving data. Wonder why i keep
>> interrupts though?
>
> Can you try again after cherry-picking these 3 commits?:
>
> 7ea3af1 ov5640: Move initial config to registering callback
> dbe85fd ov5640: Fix s_fmt behaviour
> 522e30a panda: camera: Fix ddr_freq for OV5640 selection
>
> I'll suggest you to try keeping on latest "devel" branch head, since
> there's many fixes and cleanups I have been pushing in the tree.
>

 I moved to the devel branch, commit id:
c3653975bcc89b80a66e463c0adfcd957a1f0c5b
 On this yavta gets blocked in the DQBUF. I am getting interrupts for OMAP4 ISS.
 Can you tell me how to make sure if omap is getting data.
 what register will indicate valid frame received? can you share a
register dump.
 Could you please share the media-ctl command for ov5640 yuv422 data.


Regards,
Ryan.


> Regards,
> Sergio
>
>> Is my media-ctl setting up things correctly?
>>
>> Thank you.
>>
>> Regards,
>> Ryan
>>
>>
>> On Sun, Feb 19, 2012 at 7:47 PM, Ryan <ryanphilips19@googlemail.com> wrote:
>>> Hi Laurent,
>>>
>>> On Sun, Feb 19, 2012 at 2:27 PM, Laurent Pinchart
>>> <laurent.pinchart@ideasonboard.com> wrote:
>>>> Hi Ryan,
>>>>
>>>> On Saturday 18 February 2012 20:59:57 Ryan wrote:
>>>>> hello,
>>>>> I am using media-ctl on the panda board. The sensor gets detected. But
>>>>> media-ctl doesnt print anything.
>>>>> The kernel is cloned from omap4 v4l git tree: commit id:
>>>>> 3bc023462a68f78bb0273848f5ab08a01b434ffa
>>>>>
>>>>> what could be wrong in here?
>>>>>
>>>>> ~ # ./media-ctl -p
>>>>> Opening media device /dev/media0
>>>>> Enumerating entities
>>>>> Found 0 entities
>>>>> Enumerating pads and links
>>>>> Device topology
>>>>>
>>>>> What steps i need to follow get output from sensor in terms of
>>>>> arguments to media-ctl and yavta.
>>>>
>>>> Could you please first make sure that media-ctl has be compiled against header
>>>> files from the kernel running on your board ?
>>>>
>>>
>>> Thank you, That did the trick, Now i am able to run media-ctl. I am
>>> trying to capture YUV422.
>>> When i run yavta, It blocks infinitely at STREAM ON, I see that the
>>> ISS interrupts keeps incrementing.
>>> Am i missing something?
>>>
>>> #yavta /dev/video0  -n1 -c5 -s640x480 -fUYVY -Ftest.yuv
>>> Device /dev/video0 opened: OMAP4 ISS CSI2a output (media).
>>> Video format set: width: 640 height: 480 buffer size: 614400
>>> Video format: UYVY (59565955) 640x480
>>> 1 buffers requested.
>>> length: 614400 offset: 0
>>> Buffer 0 mapped at address 0x4028e000.
>>> [  577.605590] Enable STREAM ON>..
>>>
>>>
>>> After configuring using the media-ctl, This is how my device topology
>>> looks like:
>>> Is this okay?
>>>
>>> Device topology
>>> - entity 1: OMAP4 ISS CSI2a (2 pads, 2 links)
>>>            type V4L2 subdev subtype Unknown
>>>            device node name /dev/v4l-subdev0
>>>        pad0: Sink [UYVY 640x480]
>>>                <- "ov5640 3-0036":0 [ENABLED,IMMUTABLE]
>>>        pad1: Source [UYVY 640x480]
>>>                -> "OMAP4 ISS CSI2a output":0 [ENABLED]
>>>
>>> - entity 2: OMAP4 ISS CSI2a output (1 pad, 1 link)
>>>            type Node subtype V4L
>>>            device node name /dev/video0
>>>        pad0: Sink
>>>                <- "OMAP4 ISS CSI2a":1 [ENABLED]
>>>
>>> - entity 3: ov5640 3-0036 (1 pad, 1 link)
>>>            type V4L2 subdev subtype Unknown
>>>            device node name /dev/v4l-subdev1
>>>        pad0: Source [UYVY 640x480]
>>>                -> "OMAP4 ISS CSI2a":0 [ENABLED,IMMUTABLE]
>>>
>>>
>>>
>>> Thank you,
>>>
>>> Regards,
>>> Ryan
>>>
>>>
>>>> --
>>>> Regards,
>>>>
>>>> Laurent Pinchart
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-20 15:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-18 15:29 omap4 v4l media-ctl usage Ryan
2012-02-19  8:57 ` Laurent Pinchart
2012-02-19 14:17   ` Ryan
2012-02-19 16:04     ` Ryan
2012-02-20  3:44       ` Sakari Ailus
2012-02-20  5:03       ` Aguirre, Sergio
2012-02-20 15:15         ` Ryan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox