NSLU2-Linux
view · edit · print · history

HowTo.AddUvccaptureToPackages History

Hide minor edits - Show changes to markup

March 16, 2009, at 09:00 AM by RudolfReuter --
Changed lines 44-45 from:

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package.

to:

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package. Please note that in order to exclude/include a package in the distribution you have to edit list SLUGOS_PACKAGES in file slugos-packages.bb in path openembedded/packages/meta.

March 15, 2009, at 12:40 PM by RudolfReuter --
March 13, 2009, at 06:27 AM by RudolfReuter --
Changed line 67 from:

After about 19 hours later (1st time build only, because all packages are build, 2nd time much quicker) you have:

to:

After about 19 hours later (1st time build only, because all packages are build, 2nd time is much quicker) you have:

March 12, 2009, at 06:20 PM by RudolfReuter --
Changed line 67 from:

After about 19 hours later (depends on what was done before and PC power) you have:

to:

After about 19 hours later (1st time build only, because all packages are build, 2nd time much quicker) you have:

March 11, 2009, at 09:10 AM by RudolfReuter -- Created new page
March 11, 2009, at 09:06 AM by RudolfReuter --
Deleted line 25:

/Device Drivers/Multimedia Devices/

March 11, 2009, at 09:03 AM by RudolfReuter --
Changed line 75 from:

In order to build the package uvccapture you need a BitBake file:

to:

In order to build the package uvccapture you need a BitBake file uvccapture_0.5.bb:

March 11, 2009, at 09:02 AM by RudolfReuter --
Changed line 27 from:

Output of menuconfig = ".config"

to:
  Output of menuconfig = ".config"
Changed lines 35-37 from:

The file kernel-module-uvcvideo_2.6.27.8+svnr1085-r2_nslu2be.ipk is found in path: slug/slugos/tmp/deploy/ipk/nslu2be.

to:

The file kernel-module-uvcvideo_2.6.27.8+svnr1085-r2_nslu2be.ipk is found in path: slug/slugos/tmp/deploy/ipk/nslu2be.

March 11, 2009, at 09:00 AM by RudolfReuter --
Added line 13:
Changed lines 16-27 from:

For using an uvc device under Video4Linux you also need an uvc driver which is not yet included in the distribution. This is a kernel module and must be enabled in the kernel config list. That is a story for another HowTo.

uvccapture

The purpose of this software is to capture an image from a USB webcam at a specified interval, and save it to a JPEG file, no other formats are supported. For more details have a look at http://packages.debian.org/en/lenny/uvccapture.

HowTo build an openembedded package

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package.

To setup the environment do the following:

to:

Create uvc kernel module

For using this uvc (USB_VIDEO_CLASS) device under Video4Linux you also need an uvc driver which is not yet included in the distribution. This is a kernel module and must be enabled in the kernel config list with the letter "M" for Module.

Changed lines 21-30 from:

cd /home/*user*/slug/openembedded/packages mkdir uvccapture cd uvccapture mkdir files

  create/edit the file uvccapture_0.5.bb from the box below.

cd files

  create/edit the file Makefile.patch from the box below.
  edit file slugos-packages.bb in openembedded/packages/meta.
  add to SLUGOS_PACKAGES uvccapture \ (in alphabetic order).
  I added also gnuplot to SLUGOS_PACKAGES.
to:

type "make ARCH=arm menuconfig" to set uvc <M> flag in path: /home/*user*/slug/slugos/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1085-r2/linux-2.6.27 Title: Linux Kernel Configuration /Device Drivers/Multimedia Devices/Video capture adapters/V4L? USB devices/USB Video Class (UVC) <M> /Device Drivers/Multimedia Devices/Video for Linux <M> /Device Drivers/Multimedia Devices/ Output of menuconfig = ".config"

Changed lines 29-30 from:

Next step is to build your package uvccapture:

to:

Next step is to build your kernel module uvccapture:

Changed line 33 from:

make slugosbe-packages

to:

make slugosbe-image

Changed lines 35-47 from:

After about 19 hours later (depends on what was done before and PC power) you have:

to:

The file kernel-module-uvcvideo_2.6.27.8+svnr1085-r2_nslu2be.ipk is found in path: slug/slugos/tmp/deploy/ipk/nslu2be.

uvccapture

The purpose of this software is to capture an image from a USB webcam at a specified interval, and save it to a JPEG file, no other formats are supported. For more details have a look at http://packages.debian.org/en/lenny/uvccapture.

HowTo build an openembedded package

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package.

To setup the environment do the following:

Changed lines 50-59 from:

/home/*user*/slug/slugos/tmp/work/armv5teb-linux-gnueabi/uvccapture-0.5-r0

to:

cd /home/*user*/slug/openembedded/packages mkdir uvccapture cd uvccapture mkdir files

  create/edit the file uvccapture_0.5.bb from the box below.

cd files

  create/edit the file Makefile.patch from the box below.
  edit file slugos-packages.bb in openembedded/packages/meta.
  add to SLUGOS_PACKAGES uvccapture \ (in alphabetic order).
  I added also gnuplot to SLUGOS_PACKAGES.
Changed lines 61-63 from:

Make a cd to that folder and copy uvccapture-0.5/uvccapture to /usr/bin/uvccapture on your NSLU2 box.

In order to build the package uvccapture you need a BitBake file:

to:

Next step is to build your package uvccapture:

Added lines 65-77:

cd /home/*user*/slug make slugosbe-packages @] After about 19 hours later (depends on what was done before and PC power) you have:

/home/*user*/slug/slugos/tmp/work/armv5teb-linux-gnueabi/uvccapture-0.5-r0

Make a cd to that folder and copy uvccapture-0.5/uvccapture to /usr/bin/uvccapture on your NSLU2 box.

In order to build the package uvccapture you need a BitBake file: [@

March 11, 2009, at 08:50 AM by RudolfReuter --
Added lines 15-16:

For using an uvc device under Video4Linux you also need an uvc driver which is not yet included in the distribution. This is a kernel module and must be enabled in the kernel config list. That is a story for another HowTo.

March 11, 2009, at 08:45 AM by RudolfReuter --
Changed lines 13-14 from:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. The version from SlugOS 4.8 dit not work because of library problems. With the help of Jon Barber I got it to work.

to:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5. Because it was not included in the standard distribution I had to build it myself. The version from SlugOS 4.8 dit not work because of library problems. With the help of Jon Barber I got it to work.

March 11, 2009, at 08:45 AM by RudolfReuter --
Changed lines 13-14 from:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. The version from SlugOS 4.8 dit not work because of library problems. With the help of Jon Barber I got it to work.

to:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. The version from SlugOS 4.8 dit not work because of library problems. With the help of Jon Barber I got it to work.

March 11, 2009, at 08:44 AM by RudolfReuter --
Changed lines 22-23 from:

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile?. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package.

to:

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package.

March 11, 2009, at 08:41 AM by RudolfReuter --
Changed lines 13-14 from:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. With the help of Jon Barber I got it to work.

to:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. The version from SlugOS 4.8 dit not work because of library problems. With the help of Jon Barber I got it to work.

March 11, 2009, at 08:39 AM by RudolfReuter --
Changed lines 13-14 from:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. With the help of Jon Barber I got it to work.

to:

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. With the help of Jon Barber I got it to work.

March 11, 2009, at 08:35 AM by RudolfReuter --
Changed line 45 from:

After about 19 hours (depends on what was done before and PC power) you have:

to:

After about 19 hours later (depends on what was done before and PC power) you have:

Changed lines 50-51 from:

Make a cd to that folder and copy uvccapture-0.5/uvccaptureQQ to /usr/bin/uvccapture@@ on your NSLU2 box.

to:

Make a cd to that folder and copy uvccapture-0.5/uvccapture to /usr/bin/uvccapture on your NSLU2 box.

March 11, 2009, at 08:32 AM by RudolfReuter --
Added lines 12-14:

WebCam support

In order to use a Logitech E3500 WebCam I needed to have the file uvccapture also under SlugOS5?. Because it was not included in the standard distribution I had to build it myself. With the help of Jon Barber I got it to work.

Changed lines 27-28 from:

cd /home/*user*/slug/openembedded

to:

cd /home/*user*/slug/openembedded/packages mkdir uvccapture cd uvccapture mkdir files

  create/edit the file uvccapture_0.5.bb from the box below.

cd files

  create/edit the file Makefile.patch from the box below.
  edit file slugos-packages.bb in openembedded/packages/meta.
  add to SLUGOS_PACKAGES uvccapture \ (in alphabetic order).
  I added also gnuplot to SLUGOS_PACKAGES.
Changed line 39 from:

In order to build the package uvccapture you need a BitBake file:

to:

Next step is to build your package uvccapture:

Added lines 42-54:

cd /home/*user*/slug make slugosbe-packages @] After about 19 hours (depends on what was done before and PC power) you have:

/home/*user*/slug/slugos/tmp/work/armv5teb-linux-gnueabi/uvccapture-0.5-r0

Make a cd to that folder and copy uvccapture-0.5/uvccaptureQQ to /usr/bin/uvccapture@@ on your NSLU2 box.

In order to build the package uvccapture you need a BitBake file: [@

March 11, 2009, at 06:11 AM by RudolfReuter --
March 11, 2009, at 05:55 AM by RudolfReuter --
Changed lines 12-13 from:

uvccature

to:

uvccapture

Changed lines 15-19 from:

For more details have a look at http://packages.debian.org/en/lenny/uvccapture

In order to build the package uvccapture you need a BitBake file:

to:

For more details have a look at http://packages.debian.org/en/lenny/uvccapture.

HowTo build an openembedded package

Because uvccapture was not included in the openembedded packages, I had to build it myself. This can be done with the MasterMakefile?. Once you have setup the cross toolchain on a PC Linux system (I use Ubuntu 08.10) you can setup a BitBake file to build the package.

To setup the environment do the following:

Added lines 24-30:

cd /home/*user*/slug/openembedded

@]

In order to build the package uvccapture you need a BitBake file: [@

March 11, 2009, at 05:45 AM by RudolfReuter --
Added lines 1-66:

(:table border=0 width=40% bgcolor=#ddeebb:) (:cell:) This article pertains to:

(:tableend:)


Welcome to SlugOS 5! More information can be found in the release notes: ReleaseNotes5x3

Note the heading at the top of this page; this color-coded annotation will be used to help readers of the wiki to determine the specific firmware and version to which the article applies.

uvccature

The purpose of this software is to capture an image from a USB webcam at a specified interval, and save it to a JPEG file, no other formats are supported. For more details have a look at http://packages.debian.org/en/lenny/uvccapture

In order to build the package uvccapture you need a BitBake file:

# uvccapture_0.5.bb  2009-03-06 RudolfReuter
DESCRIPTION = "USB UVC Video Class Snapshot Software for V4L2 driver."
SECTION = "console/multimedia"
PRIORITY = "optional"
DEPENDS="jpeg"
LICENSE = "GPLV2"
PR = "r0"

SRC_URI = "http://ftp.de.debian.org/debian/pool/main/u/uvccapture/uvccapture_0.5.orig.tar.gz \
           file://Makefile.patch;patch=1"

do_compile() {
   make
}

do_install() {
        install -d ${D}${bindir}
        install -m 0755 ${S}/uvccapture ${D}${bindir}/uvccapture
}

The original Makefile needs a patch Makefile.patch:

--- uvccapture-0.5/Makefile	2008-08-01 04:26:18.000000000 +0200
+++ Makefile	2009-03-09 10:46:22.000000000 +0100
@@ -1,13 +1,13 @@
-CC=gcc
+#CC=gcc
 CPP=g++
 APP_BINARY=uvccapture
-VERSION = 0.4
-PREFIX=/usr/local/bin
+VERSION = 0.5
+PREFIX=/usr/bin

 WARNINGS = -Wall


-CFLAGS = -std=gnu99 -O2 -DLINUX -DVERSION=\"$(VERSION)\" $(WARNINGS)
+CFLAGS += -std=gnu99 -O2 -DLINUX -DVERSION=\"$(VERSION)\" $(WARNINGS)
 CPPFLAGS = $(CFLAGS)

 OBJECTS= uvccapture.o v4l2uvc.o
view · edit · print · history · Last edited by RudolfReuter.
Originally by RudolfReuter.
Page last modified on March 16, 2009, at 09:00 AM