OpenWrt Forum Archive

Topic: brcm and spca5xx driver

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Is it possible use spca5xx camera with Kamikaze 7.06 or 7.07 at brcm 2.4 driver? I can't find package. Package for 2.6.22 kernel is in repository, but this kernel don't support Broadcom wifi. And binary drivers here http://www.macsat.com/macsat/content/view/36/30/ is for whiterussian (kernel 2.4.30) Kamikaze 7.06 and 7.07 use 2.4.34 driver.

Do you have some experience somebody?

Jiri

Messed aroud a lot with :-\

- 2.4 kernel

No spca5xx package to choose. Compiled whiterussian from source, patched kernel in build directory (../build_mipsel) with spca5xxLE (from mxhaard website). Driver insmoded, but my cam isn't recognized.

As newest spca driver version is for 2.6 only, i tried an old version of Kamikaze (5059) which has a spca version still for 2.4. Compiled, installed on an Asus wl-hdd. Image is the unusable, if working together with wl driver kernel panics (i think both drivers are too much for such a  little device)

- 2.6 kernel:

Works ok on 7.06 and 7.07, can't select the package anymore working on trunk (as the time of writing)


Btw, if you plan to buy a webcam, check compatibility with spca5xxLE. Those supported by LE version of driver should be truly jpeg cams (should, as mine is marked compatible, but actually isn't). Otherwise they work with gspca, which in turns makes jpeg compression on the fly in kernel mode. A huge task, with all consequent performance problems...

Have fun! :-)

I got the stuff compiled for kernel 2.4.34. Since I have a mjpg-stream capable cam I only built spca5xx_le and the associated tools (b/c the servfox binary from 2005 floating around seemed to not support auto-exposure). The image quality is a lot worse than on my laptop with gspca, low saturation, bad scaling artifacts, and poor autoexposure. Plus there seem to be some jpg quantization table artifacts.

But hey, it works. Should work on kamikaze 7.07. Please test.

ftp://ftp.tuebingen.mpg.de/kyb/towolf/l … 208.tar.gz

spca5xx.o
spca_core.o
spcadecoder.o
spcacat
spcaserv

The .o files go into /lib/modules/2.4.34/ , the binaries go into /usr/bin

(Last edited by towolf on 10 Sep 2007, 12:40)

towolf wrote:

I got the stuff compiled for kernel 2.4.34. Since I have a mjpg-stream capable cam I only built spca5xx_le and the associated tools (b/c the servfox binary from 2005 floating around seemed to not support auto-exposure). The image quality is a lot worse than on my laptop with gspca, low saturation, bad scaling artifacts, and poor autoexposure. Plus there seem to be some jpg quantization table artifacts.

That could mean too LE driver verision is far older then the full version (gspca) and no more mantained...

hmmm, I also have problem with spca5xx... seems like not working on Kamikaze 7.09.
I got a Genius VideoCAM GE111, supported devices list says it works with spca5xx (not with LE version though).
But still, when I  plug the cam dmesg says:

usb.c: USB device 2 (vend/prod 0x93a/0x2471) is not claimed by any active driver


Is there anyone with a similar problem, or (even better) with same camera, who managed to make it work? Another driver? Older OS release?

the router is ASUS WL-500GP, wrt version is, as I said before, Kamikaze 7.09.

towolf wrote:

I got the stuff compiled for kernel 2.4.34. Since I have a mjpg-stream capable cam I only built spca5xx_le and the associated tools (b/c the servfox binary from 2005 floating around seemed to not support auto-exposure). The image quality is a lot worse than on my laptop with gspca, low saturation, bad scaling artifacts, and poor autoexposure. Plus there seem to be some jpg quantization table artifacts.

But hey, it works. Should work on kamikaze 7.07. Please test.

Any chance you can post the makefiles?

the spcaLE driver isn't really complete; you have to copy over the USB IDs from the spca5xx.c code to get full support of many cameras.

My 2 cameras aren't supported so I need to build from source, and I am using the 2.4 kernel, so I can't use the repository packages.

--Yan

Any news on this?

I have some 'old' webcam they should be supported by latest spca5xx driver for kernel 2.4
I have ASUS wl500gP and I prefer 2.4 kernel to make wifi run good

I downloaded the last spca5xx driver that support 2.4 kernel
afaik it's
http://mxhaard.free.fr/spca50x/Download … bye.tar.gz

I change gspcav1 Makefile to download and compile spca5xx but it does not compile spca5xx.o obj file
I'm not an expert on openwrt buildroot and I have no idea how to debug it

I attach here if someone would like to give it a try

Ciao
Marco

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 8176 2008-01-15 13:00:00Z lubimaer $

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=spca5xx
PKG_VERSION:=v4l1goodbye
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://mxhaard.free.fr/spca50x/Download
PKG_MD5SUM:=

include $(INCLUDE_DIR)/package.mk

define KernelPackage/spca5xx
  SUBMENU:=Other modules
  DEPENDS:=@LINUX_2_4 kmod-usb-core kmod-videodev @VIDEO_SUPPORT @USB_SUPPORT
  TITLE:=Driver for SPCA5xx based USB cameras (kernel 2.4)
  URL:=http://mxhaard.free.fr/
  VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  FILES:=$(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,90,spca5xx)
endef

define Build/Compile
    $(MAKE) -C $(LINUX_DIR) \
    ARCH="$(LINUX_KARCH)" \
    CROSS_COMPILE="$(TARGET_CROSS)" \
    KERNELVERSION="$(KERNEL)" \
    KERNEL_VERSION="$(LINUX_VERSION)" \
    KERNELDIR="$(LINUX_DIR)" \
    SUBDIRS="$(PKG_BUILD_DIR)"
        # removed 'module' rule sisnce it is not found
endef

$(eval $(call KernelPackage,spca5xx))

(Last edited by lubimaer on 15 Jan 2008, 16:30)

If you are interested in spca5xx_le driver for 2.4 kernel here it is how I was able to include it in openwrt:

donwload latest patch for kernel 2.4 at
http://mxhaard.free.fr/spca5le.html

I unzipped and apply to kernel usb patch (file usb-2.4whatever.patch) to usb directory of kernel (<topdir>/build_mipsel/linux/drivers/usb/)

patch execute with no problems

Execute make ARCH=mips menuconfig
Find spca5xx driver in usb menu and set it as <M>

rm .modules

cd'ing topdir

add to package <topdir>/package/kernel/modules/usb.mk
the following stanza

define KernelPackage/usb-spca5xx
  $(call usbdep,@LINUX_2_4 +kmod-videodev)
  TITLE:=spca5xx WebCam driver
  DESCRIPTION:=spca5xx 2.4 Kernel modules for several WebCam USB devices
  KCONFIG:=$(CONFIG_USB_SPCA5XX)
  AUTOLOAD:=$(call AutoLoad,70,spca5xx)
endef

define KernelPackage/usb-spca5xx/2.4
  FILES:=$(LINUX_DIR)/drivers/usb/spca5xx/spca5xx.$(LINUX_KMOD_SUFFIX)
endef
$(eval $(call KernelPackage,usb-spca5xx))

make menuconfig
Now you have spca5xx driver also in openwrt menu
you can set spca5xx to <M>

run make and you should have:
<topdir>/bin/packages/kmod-usb-spca5xx_2.4whatever.ipk

That's all

Ciao
Marco

(Last edited by lubimaer on 17 Jan 2008, 22:28)

Hello

Will it work on Kamikaze 7.09?

The discussion might have continued from here.