USB [WebCAMs pwc+spca5xx+ov51x]

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
abrusa
DD-WRT Novice


Joined: 11 Jan 2010
Posts: 1

PostPosted: Thu Jan 14, 2010 3:23    Post subject: Reply with quote
pdckxd wrote:
I have already successfully complie spca5xx(spca5xx-v4l1goodbye) ......


I've a Dlink DIR320 with usb port with external HD with samba.
I'm very interesting to know how I could compile a spaca5xx module.
Before post and ask you , I was looking at this site and Googling several times and found nothing how to compile this module.
I have a old Logitech webcam not listed inside the module code. vend/prod 0x46d/0x840 and it is not recogniced by any module.
My idea is try to insert in the source code this prod id.

This is that I was trying:
1) I got the modules from
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=99564#99564
2) I downloaded and then extracted the following file:
7z x dd-wrt.v24_RC5_std+nokaid+voip+vpn+micro+mini+micro-usb-webcam-mod-0.3-build-2007-11-26-0919.7z
/dd-wrt.v24-11779_NEWD_mega-webcam/rootfs/lib/modules/2.4.37/
spca5xx.o videodev.o
3) I put both modules to the AP's HD via samba.
4) In a DIR320 root's shell :
# insmod videodev.o
dmesg: Linux video capture interface: v1.00
lsmod: Linux video capture interface: v1.00
# insmod spca5xx.o
dmesg:
usb.c: registered new driver spca5xx
spca_core.c: spca5xx driver 00.57.06LE registered
lsmod :
Module Size Used by
spca5xx 85632 0 (unused)
videodev 8336 0 [spca5xx]
5) Then I connect the logitech webcam and I note that this devices isn't attached by any module:
hub.c: new USB device 00:03.0-1.2, assigned address 6
usb.c: USB device 6 (vend/prod 0x46d/0x840) is not claimed by any active driver.
6) any video device is in /dev ( neither /dev/v4l nor /dev/video* )

Any suggestion/recommendation/tutorial to do this?

Thankyou.
Sponsor
dquille
DD-WRT Novice


Joined: 28 Jan 2010
Posts: 1

PostPosted: Fri Feb 05, 2010 21:16    Post subject: Reply with quote
pdckxd wrote:
I have already successfully complie spca5xx(spca5xx-v4l1goodbye) & new quickcam driver(qc-usb-0.6.6) and spcaview tools(include spcaserv) for dd-wrt v24 sp2. I will soon post a new tutorial for webcam.


Could you please share the new spca5xx(spca5xx-v4l1goodbye) driver and the spcaview tools you compiled for dd-wrt v24 sp2? Also, is the spca5xx driver you compiled the light version or the full? The only spca5xx driver I've tried so far (I've tried modules from openwrt, oleg, and the one included in the dd-wrt image in this thread) that recognizes my labtec webcam pro cameras is the light version posted by maslokm at the end of this thread: http://wl500g.info/showthread.php?t=6734&page=2
Unfortunately, any programs I try to run (spcacat, mjpg-streamer) against the created device report "ERROR opening V4L interface".
3lackhawk
DD-WRT Novice


Joined: 08 Feb 2010
Posts: 2

PostPosted: Mon Feb 08, 2010 22:12    Post subject: Reply with quote
I've same webcam model and try to use for my Asus router(Linux WL500W 2.4.37 #7598 Sat Oct 10 04:38:28 CEST 2009 mips GNU/Linux
).I was tried different method because I'm not an expert linux user and I don't know how to create module.
Some unsuccesfuly attempt I can load a good quickcam.o which can recognize my webcam.

1. I downloaded two files: ipk
kmod-video-quickcam_2.4.35.4+0.6.6-brcm-2.4-1.1_mipsel.ipk and
kmod-video-core_2.4.35.4-brcm-2.4-1_mipsel.ipk which are contains videodev.o and quickcam.o files.

I unpacked and copied to my router and execute the following:
insmod videodev.o -f
insmod quickcam.o -f

I had to use force option, because my kernel version isn't the same as what this two modules made for.

After that I plugged my webcam and checked with dmesg:
Linux video capture interface: v1.00
usb.c: registered new driver quickcam
hub.c: new USB device 01:03.0-2, assigned address 2
quickcam: QuickCam USB camera found (driver version QuickCam USB 0.6.6 $Date: 2006/11/04 08:38:14 $)
quickcam: Kernel:2.4.35.4 bus:1 class:FF subclass:FF vendor:046D product:0870
quickcam: Sensor VV6410 detected
quickcam: Registered device: /dev/video0

As you can see videodev and quickcam loaded succesfully and recognized my webcam.

Unfortunately I can't reach the happy end.
I tried to test with vidcat but it had an erro message: Can't open device /dev/video

At last I tried this but can't help:
mknod /dev/videodev c 81 0

I'm waiting for same as you any suggestion,recommendation,tutorial...


I've a Dlink DIR320 with usb port with external HD with samba.
I'm very interesting to know how I could compile a spaca5xx module.
Before post and ask you , I was looking at this site and Googling several times and found nothing how to compile this module.
I have a old Logitech webcam not listed inside the module code. vend/prod 0x46d/0x840 and it is not recogniced by any module.
My idea is try to insert in the source code this prod id.

This is that I was trying:
1) I got the modules from
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=99564#99564
2) I downloaded and then extracted the following file:
7z x dd-wrt.v24_RC5_std+nokaid+voip+vpn+micro+mini+micro-usb-webcam-mod-0.3-build-2007-11-26-0919.7z
/dd-wrt.v24-11779_NEWD_mega-webcam/rootfs/lib/modules/2.4.37/
spca5xx.o videodev.o
3) I put both modules to the AP's HD via samba.
4) In a DIR320 root's shell :
# insmod videodev.o
dmesg: Linux video capture interface: v1.00
lsmod: Linux video capture interface: v1.00
# insmod spca5xx.o
dmesg:
usb.c: registered new driver spca5xx
spca_core.c: spca5xx driver 00.57.06LE registered
lsmod :
Module Size Used by
spca5xx 85632 0 (unused)
videodev 8336 0 [spca5xx]
5) Then I connect the logitech webcam and I note that this devices isn't attached by any module:
hub.c: new USB device 00:03.0-1.2, assigned address 6
usb.c: USB device 6 (vend/prod 0x46d/0x840) is not claimed by any active driver.
6) any video device is in /dev ( neither /dev/v4l nor /dev/video* )

Any suggestion/recommendation/tutorial to do this?

Thankyou.[/quote]
3lackhawk
DD-WRT Novice


Joined: 08 Feb 2010
Posts: 2

PostPosted: Sat Feb 13, 2010 13:07    Post subject: Reply with quote
I tried to use another cam daemon w3cam.
A made the following steps:
ipkg-opt install w3cam
insmod videodev.o -f
insmod quickcam.o -f
ln -s /dev/v4l/video0 /dev/video0
w3camd -v -p 8999 -h 192.168.0.11

the output was this:
root@WL500W:/opt/share/www/o# w3camd -v -p 8999 -h 192.168.0.11
main thread pid = 1342
w3socket.c, sd=3 host_addr()=184592576
bind 192.168.0.11:8999 to file descriptor 3
w3camd.c: image_thread() img->childs=0
w3camd.c: pid = 1344
incoming connection..
serving connection, (childs=1)
w3camd.c: no. of childs changed: childs=1
server_thread() state=0
w3v4l.c: mbuf.size=426240

After that I got the following error message while I tried to see my webcam in the explorer(http://192.168.0.11:8999/image?quality=55) :

ioctl (VIDIOCSYNC): Invalid exchange
image_thread() error

this error message repeated neverendingly and got ntohing in my explorer.

Any idea Question
codigo
DD-WRT Novice


Joined: 03 Feb 2010
Posts: 8

PostPosted: Wed Feb 24, 2010 16:12    Post subject: Reply with quote
Simple for you guys.

Somes cams dont work with this firmware.

Openwrt support more cams. kernel 2.6 ---support uvc too

Buy a old cam or change to openwrt.

-----------------------------------------
in sp2 version

you need to active usb support

and reboot

go to 192.168.1.1/user/webcam.html

and watch

in sp1 is only watch

--------------------------------------------
work well on 500w

--------------------------------------------
I have one webcam ov5xx but not work

solucion

I go to a used store and check all webcams ids Razz
and choose the best and worked

Laughing

Next time i go whith the router too...lol
is more easy and you can watch the qualaty of webcam

i recomend this way

-------------------------------------
Hope that helps Very Happy
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Mar 23, 2010 19:23    Post subject: Reply with quote
Since I needed a newer webcam-image myself I thought I could attach this one as well...

Little changes in the scripts but nothing special. Should be easier to relocate for people having no space left in flash but have external USB-Stick/SD-Card/NFS-whatsover...

_________________
DD-WRT F.A.Q.

Webcam Kiel
netseraph
DD-WRT Novice


Joined: 14 Jun 2010
Posts: 3

PostPosted: Tue Jun 15, 2010 20:38    Post subject: Reply with quote
CaScAdE,
I need to ask a favor. I got an Asus RT-N16 which requires K26. Would you be able to provide a firmware for that? It would be wonderful if I could get webcam working with this router.

Thanks
Jason
eriche
DD-WRT User


Joined: 02 Feb 2008
Posts: 69

PostPosted: Sat Jun 19, 2010 10:07    Post subject: Howto Webcam with DD-WRT Reply with quote
I would like to know how to insatll all needed packages or libraries for OPTWARE that the webcam is working Question

Then everybody could do it for the image he needs Wink

Is there a tutorial available?

GreeT`s Erich
qingz
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 5

PostPosted: Tue Jun 22, 2010 15:38    Post subject: Reply with quote
netseraph wrote:
CaScAdE,
I need to ask a favor. I got an Asus RT-N16 which requires K26. Would you be able to provide a firmware for that? It would be wonderful if I could get webcam working with this router.

Thanks
Jason


Me too.
Please!
eriche
DD-WRT User


Joined: 02 Feb 2008
Posts: 69

PostPosted: Thu Jul 08, 2010 18:16    Post subject: Reply with quote
@CaScAdE

can you write a small tutorial for getting USB webcams working Question

Would be soo cool.
Could look drom office whats going on at home Wink

GreeT`s
Wolf Kodi
DD-WRT User


Joined: 13 Jun 2010
Posts: 126

PostPosted: Sun Aug 01, 2010 10:34    Post subject: Reply with quote
Does anyone have webcam with a working motion detection software? [mvc - the main site is down, can't download. Motion - can dd-wrt support it?] Care to share your implementation? Thanks.
_________________


YouTube | Facebook Page
Per-user Live Down/Upload Rate Monitoring [No PC needed!]
ohmeega
DD-WRT Novice


Joined: 07 Jan 2011
Posts: 1

PostPosted: Mon Jan 10, 2011 5:55    Post subject: Reply with quote
How can I use webcam on a mac with windows live messenger? I cant view or send webcam on my mac with the new windows live messenger. I have aMsn and mercury and neither of them work. Is there any possible was to use my mac webcam on msn?
____________________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
musashimaru
DD-WRT Novice


Joined: 06 Mar 2011
Posts: 1

PostPosted: Sun Mar 06, 2011 11:33    Post subject: spca5xx on 2.4.20 Reply with quote
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

Here is the archive containing makefile from 2nd and the result (spca5xx.o):
http://www.tempfiles.net/download/201103/147754/asus.html


1st: I tried also to compile on the router the drivers:
http://mxhaard.free.fr/spca50x/Download/spca5xx-v4l1goodbye.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: `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
http://www.tempfiles.net/download/201103/147754/asus.html
----------------------------------------------------------------
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.
mveinot
DD-WRT Novice


Joined: 25 Mar 2011
Posts: 1

PostPosted: Fri Mar 25, 2011 18:25    Post subject: Kernel Modules for spca5xx Reply with quote
I just received my RT-N16 and wanted to get my cheap webcam running on it. I found this thread immediately but there didn't seem to be a lot of solutions posted. So I dug in and managed to cross-compile the spca5xx drivers (gspca). These load and work well in the RT-N16 running DD-WRT v24-sp2 (03/10/11) big - build 16403M NEWD-2 K2.6 Eko.

I am making these compiled modules available to any who want them with no warranty expressed or implied. Use at your own risk. They work well for me. I leave it as an exercise to the reader to get them into your router in a useable way (myself, I use a CIFS mount)

You can download them from:

http://www.mvgrafx.net/~vmark/spca5xx-mipsel-2.6.24.tar.gz

I hope someone can make use of them as well.

You need to load:

compat_ioctl32.ko
v4l1-compat.ko
v4l2-common.ko
videodev.ko
and finally gspca.ko

in that order. At which point most spca5xx cams and derivatives should be detected and a node in /dev/v4l/ created.

Cheers,
Mark
nickmihai
DD-WRT Novice


Joined: 30 May 2011
Posts: 1

PostPosted: Mon May 30, 2011 19:43    Post subject: DD-WRT v23 SP3 (072107) std Reply with quote
Hello,

I have an Asus WL-500g Deluxe and i've flashed with the v23 SP3 072107 std firmware made by CaScAdE.

Everything worked ok exept my webcam (delux V-B03) that appears a black/blank screen ? And to the top i have the following : drivers/usb/spca5xx.c: USB SPCA5XX camera found. Type Vimicro Zc305B 0x305b

What's the problem ? There is a chance to make that webcam working ?

If not, what kind of camera, cheap one, can i buy ?

Thank you for your time am you make a great work with those build.

I've saved hours of digging into drivers and linux stuff.

Kind regars, Nick !
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 4 of 7
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum