[meta-freescale] USB Video webcam on wandboard dual

John Weber rjohnweber at gmail.com
Mon Apr 8 12:50:53 PDT 2013


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 at 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 at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>



More information about the meta-freescale mailing list