DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2006-10-23 18:55:29

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Webcam support

Files needed:
videodev.o from http://dns323.kood.org/downloads/untest … e4.tar.bz2
quickcam.o from http://dns323.kood.org/downloads/untest … e4.tar.bz2 for Logitech Quickcam Messenger.
quickcam.o from http://dns323.kood.org/downloads/untest … e4.tar.bz2 for any other Logitech Quickcam except Logitech Quickcam Messenger.

Commands needed (after you plug your webcam into usb port):

Code:

/mnt/HD_a2/busybox insmod /mnt/HD_a2/videodev.o
/mnt/HD_a2/busybox insmod /mnt/HD_a2/quickcam.o

Now check your dmesg, it should look like above.

Code:

quickcam [29.771098]: ----------LOADING QUICKCAM MODULE------------
quickcam [29.771157]: struct quickcam size: 2048
usb.c: registered new driver quickcam
quickcam [29.812147]: qc_usb_probe ifacenum=0
quickcam: QuickCam USB camera found (driver version QuickCam Messenger/Communicate USB 1.4 $Date: 2006/10/14 00:00:00 $)
quickcam: Kernel:2.4.21-pre4 bus:2 class:FF subclass:FF vendor:046D product:08F0
quickcam [30.026143]: poisoning qc in qc_usb_init
quickcam [30.029452]: E00A contains 08F0
quickcam: Sensor VV6450 detected
quickcam: Registered device: /dev/video0
quickcam [30.111340]: qc_usb_probe ifacenum=1
quickcam [30.111391]: qc_usb_probe ifacenum=2
quickcam [30.111421]: qc_usb_probe ifacenum=2

Now check it /dev/video0 exists. If not then run these commands:

Code:

/mnt/HD_a2/busybox mknod /dev/video0 c 81 0
ln -s /dev/video0 /dev/video

Problems so far:

Code:

# ls -la /dev/video0
crwxrwxrwx    1 root     root      81,   0 Oct 23 18:32 /dev/video0
# /mnt/HD_a2/qcset -i
/mnt/HD_a2/qcset: can not open /dev/video0 (No such device)
# cat /dev/video0
cat: /dev/video0: No such device

I guess there is something wrong with the video for linux module. For start I did forget module versioning sad
Going to re-compile it tomorrow, but since then if someone has some ideas then it would be highly appreciated.
//edit -DMODULE added and versioning fixed.

If someone will get /dev/video working then here is w3cam to test it out smile
http://dns323.kood.org/downloads/w3cam-0.7.2.tar.bz2

Last edited by sala (2006-10-24 09:28:24)


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#2 2007-05-09 07:33:21

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: Webcam support

Hi Sala,

Did you manage to get webcam up running after all?   If so could you please give us an update?

Thanks,
Quang

Offline

 

#3 2007-05-09 08:59:35

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

I haven't look it any more, but no we can use custom kernel this should not be a problem, we just need to compile a new kernel image with v4l support and boot it using loader.o


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#4 2007-05-10 19:06:36

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: Webcam support

Hi Sala,

Do you happen to have any precompiled kernel that I can try?

Thanks,
Quang

Offline

 

#5 2007-05-11 15:06:31

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

http://dns323.kood.org/downloads/people … 4l.tar.bz2
There are two versions: ram and sda3 vmlinux
Load one of them using loader.o

Code:

sync;insmod /mnt/HD_a2/loader.o kernel=/mnt/HD_a2/vmlinux

DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#6 2007-05-12 02:00:38

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: Webcam support

Sala,

Excellent... ya da man!  Thanks.  I'll give it a try tonight.

--
Quang

Offline

 

#7 2007-05-13 23:54:33

jeffersonr
Member
Registered: 2007-02-10
Posts: 8

Re: Webcam support

sala wrote:

http://dns323.kood.org/downloads/people/sala/kernel-v4l.tar.bz2
There are two versions: ram and sda3 vmlinux
Load one of them using loader.o

Code:

sync;insmod /mnt/HD_a2/loader.o kernel=/mnt/HD_a2/vmlinux

How I access the DSM after that? Just by serial connection?
Thanks

Jeffersonr.

Offline

 

#8 2007-05-14 00:13:02

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

If you use ram version then it (should) boot up normally. If you use sda3 version then you need to setup a working linux system to sda3 before using this kernel image.
No serial is needed.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#9 2007-05-14 01:38:44

StevieP
Member
Registered: 2006-08-19
Posts: 21

Re: Webcam support

Last weekend, I attempted to get a Logitech Communicator STX webcam to work. quickcam.o didn't seem to detect it, so I built my own v4l driver and filthily hacked the spca5xx driver into the drivers/usb directory. I then had to add the device id for my webcam into spca5xx.c.

Once I'd plugged in the webcam, insmod-ed the drivers and created /dev/video, qcset seemed to work and I managed to retrieve 3 frames from w3camd before the DSM locked up.

I think that with a bit of effort, the spca5xx driver could be sorted out, but I'm not sure it's really worth it, given the relative lack of interest so far. If anyone wants the horribly hacked source, then I can make it available as a patch.

One question I have for Sala is whether the quickcam.o module is related to the spca5xx driver in any way.

Offline

 

#10 2007-05-14 09:06:30

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

If we talk about projects then quickcam.o came from different project: regular quickcams - http://qce-ga.sourceforge.net/ and quickcam messenger - http://home.mag.cx/messenger/
But if we talk about relation in source code then I am not sure.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#11 2007-05-14 16:52:48

jeffersonr
Member
Registered: 2007-02-10
Posts: 8

Re: Webcam support

sala wrote:

If you use ram version then it (should) boot up normally. If you use sda3 version then you need to setup a working linux system to sda3 before using this kernel image.
No serial is needed.

Pardon, but I did not understand. I am using the RAM version. My linux is not very good and my english is worse. Using the RAM version it is necessary to have the serial port installed?
If not, which the IP to have access to DSM?
Thanks and I sorry.

Jeffersonr.

Last edited by jeffersonr (2007-05-14 16:54:13)

Offline

 

#12 2007-05-14 23:55:28

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

jeffersonr wrote:

sala wrote:

If you use ram version then it (should) boot up normally. If you use sda3 version then you need to setup a working linux system to sda3 before using this kernel image.
No serial is needed.

Pardon, but I did not understand. I am using the RAM version. My linux is not very good and my english is worse. Using the RAM version it is necessary to have the serial port installed?
If not, which the IP to have access to DSM?
Thanks and I sorry.

Jeffersonr.

Same IP that you did originally connect if you have static IP setup. But sure there might be something wrong with the images because I haven't tested them.
If I get some more time and free hard disk to put inside my device I'll test them out and make fixes if needed.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#13 2007-11-22 00:10:19

WingedStone
Member
Registered: 2007-07-09
Posts: 5

Re: Webcam support

How do you configure w3cam?

I'm trying to grab still pictures from my Philips webcam attached to my dns323. I've compiled the drivers and the camera is recognized by linux. I extracted the w3cam files that you suggested to my lighttpd directory, but they don't produce anything when hit from a webbrowser. (it seems that the cgi script isn't executed).

Any pointer appreciated.

(I don't actually need w3cam, a basic script to save the file somewhere would do)

Offline

 

#14 2007-11-22 11:12:26

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

Its because you are using DSM-G600 binary which is not compatible with your DNS323 (if you got it from DSM-G600 download section).
But first I suggest you to check if you got any video device under /dev/ after you load your webcam driver module.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#15 2007-11-22 14:41:42

WingedStone
Member
Registered: 2007-07-09
Posts: 5

Re: Webcam support

sala wrote:

Its because you are using DSM-G600 binary which is not compatible with your DNS323 (if you got it from DSM-G600 download section).

ok, I'll try to recompile w3cam from sources to support the dns323 platform. But I believe I'm missing something about cgi-bin on lighttpd. (I've never used any cgi script nowhere smile)
<mode naive="on"> Is it ok to simply put it under lighttpd webroot? No configuration to lighttpd.conf? </mode>


But first I suggest you to check if you got any video device under /dev/ after you load your webcam driver module.

I'm creating the /dev/video0 with mknod, but the output of dmesg makes me confident that my driver is good:

Linux video capture interface: v1.00
pwc Philips webcam module version 9.0.2-unofficial loaded.
pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
pwc Philips PCVC740K (ToUCam Pro)/PCVC840 (ToUCam II) USB webcam detected.
pwc Registered as /dev/video0.
usbcore: registered new driver Philips webcam

Offline

 

#16 2007-11-22 18:04:05

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

Look lighttpd manual. There are some cgi options you must configure first. For example cgi-bin dir (where you can copy all your cgi scripts).


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#17 2007-11-22 18:21:10

WingedStone
Member
Registered: 2007-07-09
Posts: 5

Re: Webcam support

I managed to get the cgi somehow working but I can't get the picture from the webcam.

What should be the image is text: "Error: Can't get image" and I can read this from the logs: "ioctl(VIDIOCMCAPTURE): Invalid argument"


I'm running out of time right now, but I'll get back to this later.

Offline

 

#18 2007-11-23 15:16:01

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Webcam support

I am afraid that your problem is just like mine, described at the first post. I guess your /dev/video0 is just not working.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#19 2010-08-17 11:34:43

vagsoftware
Member
Registered: 2010-08-12
Posts: 8

Re: Webcam support

Hello Sala!

After some time, there is a chance to support usb webcams on normal usb connection? I don't want to use custom kernels. I'm using just fine standard kernel and lighttpd and php. Or maybe it's a chance to support an up-to-date flavor of linux. In this case a comprehensive tutorial will be appreciated.

I've tried to install gentoo and it is outdated, with many many errors to fix.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB