Does the webcam work at all? Have you tried it on a different Linux and/or Windows system? The spca5xx driver you have should be working.
Hi,
some changes, I still haven't figured out why it doesn't work with the pre-boot script (the file is executable), but when I run it by hand ('registering' the spca5xx.o)
the last lines of dmesg looks like this
as you can see the driver is registered, but the driver doesn't recognize the camera? do I need an other driver or ??? i don't get it.Code:usb.c: registered new driver spca5xx drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registered usb.c: USB disconnect on device 01:03.0-1 address 2 hub.c: new USB device 01:03.0-1, assigned address 3 usb.c: USB device 3 (vend/prod 0x46d/0x920) is not claimed by any active driver. [admin@NAS root]$
WL500g Premium v1 Oleg 1.9.2.7-10 500gb hdd [storage-disk] - 250gb hdd [download-disk]
Transmission HellaNZB mysql php lighttpd myphpadmin samba AIOCP CMSimple AmpJuke ADOS
HeadStart
How to measure Energy consumption
Does the webcam work at all? Have you tried it on a different Linux and/or Windows system? The spca5xx driver you have should be working.
hehe.. smart thinking, dyonisos,
I got the webcam from a friend.. it is used.. but it is supposed to work.
haven't tried it on an normal pc though, but will do this tonight.
Thanks for your suggestion.
WL500g Premium v1 Oleg 1.9.2.7-10 500gb hdd [storage-disk] - 250gb hdd [download-disk]
Transmission HellaNZB mysql php lighttpd myphpadmin samba AIOCP CMSimple AmpJuke ADOS
HeadStart
How to measure Energy consumption
dyonisis and wpte, thanks for your reply.
I've tried the webcam on my pc, but no luck,
The webcam didn't came with a box, so I had to retrieve model/driver through a number on the webcam: V/UAL-9 this pointed me in the direction that it is a quickcam express. the picuter of a quickcam express looks like my cam, So I suppose this is the cam..
DL'd and installed the drivers, but when I connect the webcam, the logitech software doesn't detect it.. That's strange.. it looks like the webcam isn't working, perhaps it's broken, but that's strange, 'cause this friend of mine used it, and put it away working.
However, If I don't get it to work on a pc, I don't think it will work on the asus (indeed dyonisis)...
Will fidle around with it to see if i can get it to work.
WL500g Premium v1 Oleg 1.9.2.7-10 500gb hdd [storage-disk] - 250gb hdd [download-disk]
Transmission HellaNZB mysql php lighttpd myphpadmin samba AIOCP CMSimple AmpJuke ADOS
HeadStart
How to measure Energy consumption
I have found the following page have the source code for the Logitech webcam I have.
http://qce-ga.sourceforge.net/
Will I get the webcam to work with router's web interface by just complying the drivers? In other words, is router's web interface directly connected to the already defined drivers or will it work as soon as the device get claimed by the driver?
(Why I do not try it? Because I want to avoid dedicating several hours to set up an WL-500gP compiling environment in vain)
not sure if it directly works...
and on the setup... including installing linux (like ubuntu) well... an hour or so for beginners
compiling is usually max. 30min depending on your pc
making things easier:
for software you need this:
build essential contains all the build softwarebuild-essential
libncurses-dev
gawk
flex
bison
zlib-dev
subversion
also don't forget to sudo things when they don't work
you could also make /opt as your own so you don't need sudo-ing all the time:
the rest is just follow the instructions on the wiki: http://code.google.com/p/wl500g/wiki...CustomFirmwaresudo chown yourusername:root -R /opt
I manage to compile the driver targeting my x86 under Ubuntu but I can't get Makefile to compile for MIPSEL. There is no CC or CPP variable I can set as:
CC = mipsel-linux-gcc
CPP = mipsel-linux-gcc -E
This is the Makefile that comes with version 0.6.6-6 of the driver.
any idea?Code:# # Makefile for the qc-usb driver (based on Linux Philips USB Webcam driver) # # NOTE: This make file can serve as both an external Makefile (launched # directly by the user), or as the sub-dir Makefile used by the kernel # build system. # If CONFIG_USB_QC isn't set, we'll assume the user want to build this driver has a module ifndef CONFIG_USB_QC CONFIG_USB_QC=m endif ifneq ($(KERNELRELEASE),) quickcam-objs := qc-driver.o qc-hdcs.o qc-pb0100.o qc-vv6410.o quickcam-objs += qc-formats.o qc-mjpeg.o qc-memory.o obj-$(CONFIG_USB_QC) += quickcam.o EXTRA_CFLAGS=-Wall -I$(PWD) -DNOKERNEL else ifndef KVER KVER := $(shell uname -r) endif KLINK := $(shell test -e /lib/modules/${KVER}/source/ && echo source || echo "build") ifndef KSRC KSRC := /lib/modules/$(KVER)/$(KLINK) endif KMISC := /lib/modules/$(KVER)/drivers/media/video/ PWD := $(shell pwd) all default: $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules install: default install -d $(DESTDIR)/$(KMISC) install -m 644 -c quickcam.ko $(DESTDIR)/$(KMISC) uninstall: -rm -rf $(DESTDIR)/$(KMISC)/quickcam.ko clean: rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c rm -rf .tmp_versions qcset CFLAGS ?= -Wall -O2 qcset: qcset.c quickcam.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -lm $< endif
If you want driver for "classic" Oleg FW 1.9.2.7-10, it compiled already - http://translate.google.com/translat...n&hl=&ie=UTF-8 (google autotranslate).
If you want to compile it for 1.9.2.7-d, you should:
- build firmware from SVN first
- setup proper LINUX_DIR
- replace CC = mipsel-linux-gcc to CC = mipsel-linux-gcc-3.4.6
NB! Anyway, driver can be buggy
Please,
can enyone built spca5xx driver for 1.9.2.7-d ?
WL-500gPv2 - 1.9.2.7-d-r2381
Hello,
I read from a lot of threads on different forums about
spca5xx but no results... I think I have 3 choices:
1st: compile the module onto router using actual compiler
2nd: cross-compilling the module on a pc machine
3rd: compile using same gcc version 3.2.3 with Broadcom
modifications from Asus directly to router
I attached here the makefile from 2nd and the result (spca5xx.o).
1st: I tried also to compile on the router the drivers:
http://mxhaard.free.fr/spca50x/Downl...goodbye.tar.gz
- system: Broadcom BCM4704 chip rev 9 pkg 0;
- cpu: BCM3302 V0.6;
- Linux version 2.4.20 (gcc version 3.2.3 with Broadcom modifications) #109;
- firmware 1.9.2.7-10-USB-1.71 (from koppel.cz);
- webcam Logitech, Inc. QuickCam Communicate STX; ID: 046d:08d7;
- compiler: gcc version 4.1.1;
- linker: gnu ld version 2.17.50.0.8 20061201
(both installed with ipkg on /opt/ [compact flash, 16gb card])
At compilation process everything seems to stuck at /opt/include/asm/softirq.h
The output of `make` is:
-------------------------
Compiling drivers/usb/spcadecoder.c
In file included from /opt/include/linux/interrupt.h:46,
from /opt/include/linux/usb.h:139,
from drivers/usb/spca5xx.h:14,
from drivers/usb/spcadecoder.h:5,
from drivers/usb/spcadecoder.c:36:
/opt/include/asm/softirq.h: In function 'cpu_bh_disable':
/opt/include/asm/softirq.h:18: error: invalid lvalue in increment
/opt/include/asm/softirq.h: In function '__cpu_bh_enable':
/opt/include/asm/softirq.h:25: error: invalid lvalue in decrement
drivers/usb/spcadecoder.c: In function 'fun_D':
drivers/usb/spcadecoder.c:809: warning: value computed is not used
drivers/usb/spcadecoder.c: In function 'decode_spca561':
drivers/usb/spcadecoder.c:1422: warning: pointer targets in passing argument 4 of 'internal_spca561_decode' differ in signedness
drivers/usb/spcadecoder.c: In function 'spca50x_outpicture':
drivers/usb/spcadecoder.c:2161: warning: pointer targets in passing argument 2 of 'decode_spca561' differ in signedness
drivers/usb/spcadecoder.c: In function 'yuv_decode':
drivers/usb/spcadecoder.c:2270: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function 'jpeg_decode411':
drivers/usb/spcadecoder.c:2622: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function 'jpeg_decode422':
drivers/usb/spcadecoder.c:3001: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function 'bayer_decode':
drivers/usb/spcadecoder.c:3356: warning: cast increases required alignment of target type
make: *** [drivers/usb/spcadecoder.o] Error 1
-------------------------
2nd: I downloaded that version from the Asus's site
(and also the source of firmware: GPL_WL500GP_1.9.7.7.tar.gz and toolschain323.tar.gz),
extracted into pc#2 with CentOS 5.5, and configured in Makefile from spca5xx-v4l1goodbye.tar.gz
I compiled it after many struggles. Only few warnings and no error (see below):
----------------------------------------------------------------
# make
Compiling drivers/usb/spcadecoder.c
In file included from /opt/firmware/broadcom/src/linux/linux/include/linux/net.h:22,
from /opt/firmware/broadcom/src/linux/linux/include/linux/fs.h:15,
from /opt/firmware/broadcom/src/linux/linux/include/linux/capability.h:17,
from /opt/firmware/broadcom/src/linux/linux/include/linux/binfmts.h:5,
from /opt/firmware/broadcom/src/linux/linux/include/linux/sched.h:9,
from /opt/firmware/broadcom/src/linux/linux/include/asm/uaccess.h:13,
from drivers/usb/spca5xx.h:11,
from drivers/usb/spcadecoder.h:5,
from drivers/usb/spcadecoder.c:36:
/opt/firmware/broadcom/src/linux/linux/include/linux/socket.h: In function `__cmsg_nxthdr':
/opt/firmware/broadcom/src/linux/linux/include/linux/socket.h:107: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function `yuv_decode':
drivers/usb/spcadecoder.c:2270: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function `jpeg_decode411':
drivers/usb/spcadecoder.c:2622: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function `jpeg_decode422':
drivers/usb/spcadecoder.c:3001: warning: cast increases required alignment of target type
drivers/usb/spcadecoder.c: In function `bayer_decode':
drivers/usb/spcadecoder.c:3356: warning: cast increases required alignment of target type
Compiling drivers/usb/spca5xx.c
In file included from /opt/firmware/broadcom/src/linux/linux/include/linux/net.h:22,
from /opt/firmware/broadcom/src/linux/linux/include/linux/fs.h:15,
from drivers/usb/spca5xx.c:45:
/opt/firmware/broadcom/src/linux/linux/include/linux/socket.h: In function `__cmsg_nxthdr':
/opt/firmware/broadcom/src/linux/linux/include/linux/socket.h:107: warning: cast increases required alignment of target type
In file included from drivers/usb/spca5xx.c:847:
drivers/usb/spcausb.h: In function `spca50x_reg_read_with_value':
drivers/usb/spcausb.h:335: warning: cast increases required alignment of target type
drivers/usb/spcausb.h:341: warning: cast increases required alignment of target type
drivers/usb/spca5xx.c: At top level:
drivers/usb/spca5xx.c:5660: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5661: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5662: warning: initialization from incompatible pointer type
drivers/usb/spca5xx.c:5663: warning: braces around scalar initializer
drivers/usb/spca5xx.c:5663: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:5663: warning: excess elements in scalar initializer
drivers/usb/spca5xx.c:5663: warning: (near initialization for `spca5xx_driver.disconnect')
drivers/usb/spca5xx.c:150: warning: `bright' defined but not used
drivers/usb/spca5xx.c:151: warning: `contrast' defined but not used
Linking spca5xx.o
----------------------------------------------------------------
Also there are few interesting results:
- on router, after /sbin/insmod videodev and
/sbin/insmod /opt/lib/webcam/spca5xx.o
there are no complains;
- some weird characters appear when the camera is loaded;
- appeared the message: `[b]vlan1: dev_set_allmulti(master, 1)`;
- no video0 in /dev (nor /dev/4l/video0);
- no other errors, no tained, no unresolved symbols;
- there are no files in /proc/video nor /proc/spca50x
and some informations in files from /proc/bus/usb (see attached);
----------------------------------------------------------------
dmesg output:
----------------------------------------------------------------
usb.c: registered new driver audio
usb.c: audio driver claimed interface 81e304d0
usbaudio: device 2 audiocontrol interface 1 has 1 input and 0 output AudioStreaming interfaces
usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 8000
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 8000 sratehi 8000 attributes 0x00
usbaudio: device 2 interface 2 altsetting 2 channels 1 framesize 2 configured
usbaudio: valid input sample rate 16000
usbaudio: device 2 interface 2 altsetting 2: format 0x00000010 sratelo 16000 sratehi 16000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0101
usbaudio: warning: found 1 of 0 logical channels.
usbaudio: assuming the channel found is the master channel (got a Philips camera?). Should be fine.
usbaudio: registered mixer 14,0
usb_audio_parsecontrol: usb_audio_state at 81c66dc0
usb.c: audio driver claimed interface 81e304b8
audio.c: v1.0.0:USB Audio Class driver
vlan1: dev_set_allmulti(master, 1)
Linux video capture interface: v1.00
usb.c: registered new driver Ðÿ½',
usb.c: Ðÿ½', driver claimed interface 81e304a0
drivers/usb/spca5xx.c: spca5xx driver 00.60.00.1 registered
------------------------------------------------------
3rd: very slow (you know already the deal with the router's limited cpu, ram)...
so: no problem at `configure`, errors at `make`... still working at it...
don't know if I will see it finaly and properly compiled
I really don't still want to get to 2.6.x kernel; after few months maybe.
I appreciate every single advice in this problem.