All of lore.kernel.org
 help / color / mirror / Atom feed
* USB Video webcam on wandboard dual
@ 2013-04-08 19:30 Steven Grunza
  2013-04-08 19:42 ` Otavio Salvador
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Steven Grunza @ 2013-04-08 19:30 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

Are the necessary drivers to use a UVC USB webcam already setup to be 
built or do I need to enable them?  If I need to enable them, can 
someone point me to the correct place to do the enabling?

I'm not sure if the following gives enough information about my 
configuration but here it is:

grunzasr@stm32dbg:/home/yocto/wandboard/fsl-community-bsp/build$ bitbake 
fsl-image-gui
Parsing recipes: 100% 
|###########################################################################| 
Time: 00:01:43
Parsing of 1276 .bb files complete (0 cached, 1276 parsed). 1639 
targets, 63 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.10"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "wandboard-dual"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130408"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta
meta-yocto        = "(nobranch):caa56bfb763e9f30822633359056be0e3f5078e1"
meta-oe           = "(nobranch):cbe69cab46335b48de85001f7dd07da765ba8b7b"
meta-fsl-arm      = "(nobranch):0a9469a14c593d7fb2c2b17fa6c91e0e49e29158"
meta-fsl-arm-extra = "(nobranch):29ab3a55d7eebf699bcb98c0cb6cafdabce35c2f"
meta-fsl-demos    = "(nobranch):4036190439b3051c9e6adae7ee372ad36a380884"


[-- Attachment #2: Type: text/html, Size: 2460 bytes --]

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

* Re: USB Video webcam on wandboard dual
  2013-04-08 19:30 USB Video webcam on wandboard dual Steven Grunza
@ 2013-04-08 19:42 ` Otavio Salvador
  2013-04-08 19:42 ` Eric Bénard
  2013-04-08 19:50 ` John Weber
  2 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-04-08 19:42 UTC (permalink / raw)
  To: Steven Grunza, John Weber; +Cc: meta-freescale@yoctoproject.org

On Mon, Apr 8, 2013 at 4:30 PM, Steven Grunza <steven.grunza@gmail.com> wrote:
> Are the necessary drivers to use a UVC USB webcam already setup to be built
> or do I need to enable them?  If I need to enable them, can someone point me
> to the correct place to do the enabling?
>
> I'm not sure if the following gives enough information about my
> configuration but here it is:

John, I think you were playing with the UVC webcam, didn't you?

--
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] 4+ messages in thread

* Re: USB Video webcam on wandboard dual
  2013-04-08 19:30 USB Video webcam on wandboard dual Steven Grunza
  2013-04-08 19:42 ` Otavio Salvador
@ 2013-04-08 19:42 ` Eric Bénard
  2013-04-08 19:50 ` John Weber
  2 siblings, 0 replies; 4+ messages in thread
From: Eric Bénard @ 2013-04-08 19:42 UTC (permalink / raw)
  To: Steven Grunza; +Cc: meta-freescale

Hi Steven,

Le Mon, 08 Apr 2013 15:30:49 -0400,
Steven Grunza <steven.grunza@gmail.com> a écrit :
> Are the necessary drivers to use a UVC USB webcam already setup to be 
> built or do I need to enable them?  If I need to enable them, can 
> someone point me to the correct place to do the enabling?
> 
you may try to add 
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y

to 
meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard-3.0.35/wandboard-dual/defconfig
and rebuild the kernel.

Or you can use bitbake to configure your kernel before building it
with something like :
bitbake -c cleansstate virtual/kernel
bitbake -c menuconfig virtual/kernel
bitbake virtual/kernel
(and bitbake your_image if you want to include the modules inside it)

Eric


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

* Re: USB Video webcam on wandboard dual
  2013-04-08 19:30 USB Video webcam on wandboard dual Steven Grunza
  2013-04-08 19:42 ` Otavio Salvador
  2013-04-08 19:42 ` Eric Bénard
@ 2013-04-08 19:50 ` John Weber
  2 siblings, 0 replies; 4+ messages in thread
From: John Weber @ 2013-04-08 19:50 UTC (permalink / raw)
  To: meta-freescale

Steven,

This should be a kernel configuration setting.  Check out the defconfig for the 
kernel, which is located in the kernel recipe for wandboard-dual.  If you have 
CONFIG_USB_VIDEO_CLASS declared as m or y then you should have UVC installed.

Something else that I discovered is that the default fsl images (fsl-image-test 
is one) do not include the required v4l elements to support capture from the UVC 
device.

I think you can alter the fsl-image-test.bb file to include some more Gstreamer 
packages:

GSTREAMER_EXTRA_INSTALL = " \
     gst-plugins-good-video4linux2 \
     gst-plugins-good-rtp \
     gst-plugins-good-rtpmanager \
     gst-plugins-good-udp \
"

IMAGE_INSTALL += " \
     packagegroup-fsl-gstreamer \
     packagegroup-fsl-tools-testapps \
     packagegroup-fsl-tools-benchmark \
     ${GSTREAMER_EXTRA_INSTALL} \
"

Note - I don't think rtp, rtpmanager, or udp are required if all you want to do 
is capture data.  But, if you want to capture AND stream, then they are pretty 
helpful.  :-)

Or, you can create your own image recipe to do it rather than alter the 
fsl-image-test recipe:
https://github.com/johnweber/meta-fsl-arm-extra/commit/aead76df47f6ce3f658366e768a65f045ddb01b8

I was able to capture, encode, and stream from a USB webcam using the recipe.  I 
did notice that the performance wasn't very good.  For me, this was just a test 
to see if I could create the pipeline and get it running on Wandboard.  I think 
there is some optimization to be done, but I'm off to other things now.

John


On 4/8/13 2:30 PM, Steven Grunza wrote:
> Are the necessary drivers to use a UVC USB webcam already setup to be built or
> do I need to enable them?  If I need to enable them, can someone point me to the
> correct place to do the enabling?
>
> I'm not sure if the following gives enough information about my configuration
> but here it is:
>
> grunzasr@stm32dbg:/home/yocto/wandboard/fsl-community-bsp/build$ bitbake
> fsl-image-gui
> Parsing recipes: 100%
> |###########################################################################|
> Time: 00:01:43
> Parsing of 1276 .bb files complete (0 cached, 1276 parsed). 1639 targets, 63
> skipped, 0 masked, 0 errors.
>
> Build Configuration:
> BB_VERSION        = "1.17.1"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "Ubuntu-12.10"
> TARGET_SYS        = "arm-poky-linux-gnueabi"
> MACHINE           = "wandboard-dual"
> DISTRO            = "poky"
> DISTRO_VERSION    = "1.3+snapshot-20130408"
> TUNE_FEATURES     = "armv7a vfp neon"
> TARGET_FPU        = "vfp-neon"
> meta
> meta-yocto        = "(nobranch):caa56bfb763e9f30822633359056be0e3f5078e1"
> meta-oe           = "(nobranch):cbe69cab46335b48de85001f7dd07da765ba8b7b"
> meta-fsl-arm      = "(nobranch):0a9469a14c593d7fb2c2b17fa6c91e0e49e29158"
> meta-fsl-arm-extra = "(nobranch):29ab3a55d7eebf699bcb98c0cb6cafdabce35c2f"
> meta-fsl-demos    = "(nobranch):4036190439b3051c9e6adae7ee372ad36a380884"
>
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>


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

end of thread, other threads:[~2013-04-08 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-08 19:30 USB Video webcam on wandboard dual Steven Grunza
2013-04-08 19:42 ` Otavio Salvador
2013-04-08 19:42 ` Eric Bénard
2013-04-08 19:50 ` John Weber

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.