Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-linux] Re: Compiling the webcam SPC5xxx driver

Expand Messages
  • Mark Gross
    ... Which .H files? I found that I needed to make the config.h from the kernel build available to the spa5xx build along with adding the #include
    Message 1 of 6 , Jul 18, 2007
    • 0 Attachment
      On Wed, Jul 18, 2007 at 09:48:14AM -0000, thx1011 wrote:
      >
      > Hi thanks!
      >
      > this will keep me going, but still I'm unable to find the sources for
      > the kernel namely the .h file for the driver build directory.
      >
      > My Slug has the full development environment, and I was able to
      > compile some programs like amule and mediatomb (the previous version),
      > but right now I'm stuck and I'm not in the willing (yet) to upgrate
      > from 2.7 to 3.10... :-)
      >
      > Any ideas where can I get the .H files?

      Which .H files?

      I found that I needed to make the config.h from the kernel build
      available to the spa5xx build along with adding the
      "#include <media/v4l2-dev.h>" to spca5xx-20060202/drivers/usb/spca5xx.c

      as shown in the patch I put up.

      --mgross


      >
      > --- In nslu2-linux@yahoogroups.com, Mark Gross <markgross@...> wrote:
      > >
      > > On Tue, Jul 17, 2007 at 01:07:34PM -0000, thx1011 wrote:
      > > > Hi!
      > > >
      > > > I have a AipTek MegaCam 1.3, and i'm trying to see if I can compile
      > > > the driver for it from http://mxhaard.free.fr/download.html.
      > > >
      > > > I'm running OpenSlug with kernel 2.6.12, but I'm missing the sources
      > > > namely for the directory /lib/modules/2.6.12.2/build that I'm missing.
      > > >
      > > > So my questions are:
      > > >
      > > > - Where can I get the build directory for OpenSlug?
      > > > - Is there already a driver compiled and tools for this webcam?
      > > >
      > > > Thanks!
      > > >
      > >
      > > I did something like this but with the current slugos from oe. I had to
      > > do some fix-ups to get the driver module to build (config.h wasn't
      > > found, and I needed to tweak the driver source just a tad for an include
      > > file)
      > >
      > > Come, August I'm going to be getting back to this and try to get things
      > > fixed up better, and push some patches to get it working better.
      > >
      > > BTW If you get it taking good pictures please let me know how you did
      > > it. I'm having troubles getting the brightness and white ballance to
      > > work well. I've even taken to building the entier kernel as LE because
      > > there are some bit order assumptions between the camera and the driver
      > > that are expected to be LE. I haven't had time to even test the LE
      > > build propperly....August I will :)
      > >
      > > see:
      > > http://www.thegnar.org/embedded_linux/SlugOsOpenEmbedded.html for a
      > > patch to last winter's OE version of the recipes.
      > >
      > > ff -urN -X dontdiff baseline.org.openembedded.dev/classes/kernel.bbclass
      > > org.openembedded.dev/classes/kernel.bbclass
      > > --- baseline.org.openembedded.dev/classes/kernel.bbclass
      > 2007-02-19 07:11:50.000000000 -0800
      > > +++ org.openembedded.dev/classes/kernel.bbclass 2007-02-19
      > 12:50:40.000000000 -0800
      > > @@ -73,6 +73,7 @@
      > >
      > > mkdir -p ${STAGING_KERNEL_DIR}/include/linux
      > > cp -fR include/linux/* ${STAGING_KERNEL_DIR}/include/linux/
      > > + cp -fR include/linux/autoconf.h
      > > ${STAGING_KERNEL_DIR}/include/linux/config.h
      > >
      > > mkdir -p ${STAGING_KERNEL_DIR}/include/net
      > > cp -fR include/net/* ${STAGING_KERNEL_DIR}/include/net/
      > >
      > >
      > >
      > > org.openembedded.dev/packages/spca5xx/spca5xx-20060501/Makefile.patch
      > > ---
      > >
      > baseline.org.openembedded.dev/packages/spca5xx/spca5xx-20060501/Makefile.patch
      > 2007-02-19 07:12:06.000000000 -0800
      > > +++
      > org.openembedded.dev/packages/spca5xx/spca5xx-20060501/Makefile.patch
      > 2007-02-20 16:33:27.000000000 -0800
      > > @@ -17,3 +17,17 @@
      > >
      > > install:
      > > mkdir -p $(MODULE_INSTALLDIR)
      > > +
      > > +--- spca5xx-20060202/drivers/usb/spca5xx.c~ 2006-04-29
      > > 08:38:07.000000000 -0700
      > > ++++ spca5xx-20060202/drivers/usb/spca5xx.c 2007-02-19
      > > 16:57:35.000000000 -0800
      > > +@@ -54,6 +54,8 @@
      > > + #include <linux/pagemap.h>
      > > + #include <linux/usb.h>
      > > +
      > > ++#include <media/v4l2-dev.h>
      > > ++
      > > + #include <asm/io.h>
      > > + #include <asm/semaphore.h>
      > > + #include <asm/page.h>
      > > +
      > > +
      > >
      > > diff -urN -X dontdiff
      > baseline.org.openembedded.dev/conf/distro/slugos.conf
      > > org.openembedded.dev/conf/distro/slugos.conf ---
      > baseline.org.openembedded.dev/conf/distro/slugos.conf 2007-02-19
      > 07:12:12.000000000 -0800
      > > +++ org.openembedded.dev/conf/distro/slugos.conf 2007-02-19
      > 18:22:17.000000000 -0800
      > >
      > > ...
      > >
      > > SLUGOS_STANDARD_RDEPENDS += "\
      > > +spca5xx \
      > > +kernel-module-v4l2-common \
      > > +kernel-module-v4l1-compat \
      > > +kernel-module-videodev \
      > >
      > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > Yahoo! Groups Links
      > > >
      > > >
      > > >
      > >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.