17236Re: Logitech Quickcam 3/4000 USB WebCam on NSLU2 w/Unslung linux -- setup notes
- Jan 13, 2007Dear Jack,
I came across your post about the webcam on the nslu2.
It followed your steps exactly, but somehow, the following lines end
up in my messages file, so the driver is not associated with my webcam:
<46>Jan 14 16:18:25 klogd: Linux video capture interface: v1.00
<46>Jan 14 16:18:31 klogd: pwc Philips webcam module version 9.0.1 loaded.
<46>Jan 14 16:18:31 klogd: pwc Supports Philips PCA645/646,
PCVC675/680/690, PCVC720/730/740/750 & PCVC830/840.
<46>Jan 14 16:18:31 klogd: pwc Also supports the Askey VC010, various
Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
<46>Jan 14 16:18:31 klogd: pwc the Creative WebCam 5 & Pro Ex, SOTEC
Afina Eye and Visionite VCS-UC300 and VCS-UM100.
<46>Jan 14 16:18:31 klogd: usb.c: registered new driver Philips webcam
<46>Jan 14 16:24:11 klogd: hub.c: new USB device 00:01.0-1, assigned
<44>Jan 14 16:24:11 klogd: Device descriptor:8 bytes received.
<44>Jan 14 16:24:11 klogd: Device descriptor:18 bytes received.
<44>Jan 14 16:24:11 klogd: usb.c: USB device 2 (vend/prod 0x5a9/0x518)
is not claimed by any active driver.
The webcam I have is supported by pwc.
Do you have any idea what the problem can be?
I'll add some debug information:
#dmesg | less
Linux video capture interface: v1.00
pwc Philips webcam module version 9.0.1 loaded.
pwc Supports Philips PCA645/646, PCVC675/680/690,
PCVC720/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.
usb.c: registered new driver Philips webcam
hub.c: new USB device 00:01.0-1, assigned address 2
Device descriptor:8 bytes received.
Device descriptor:18 bytes received.
usb.c: USB device 2 (vend/prod 0x5a9/0x518) is not claimed by any
Module Size Used by Tainted: P
pwc 44788 0 (unused)
videodev 4360 0 [pwc]
ufsd 164872 0 (unused)
x1226-rtc 3664 0
rbuttons 1304 0 (unused)
pbuttons 800 0 (unused)
ixp425_eth 17116 0 (unused)
ixp400 608216 0 [ixp425_eth]
Thanks in advance!
--- In firstname.lastname@example.org, "Jack Kozik" <jackkozik@...> wrote:
> I needed to setup a webcam for my weather website. I choose to use an
> NSLU2 connected to a Logitech Quickcam 3000/4000, where the NSLU was
> loaded with the unslung linux software distribution. My weather software
> wants to get a webcam jpg image from an http-cgi URL.
> This document captures the steps I followed to get this to work,
> initially for my records, but also, on the chance that it could benefit
> others. Most of the work was involving setting up of the Linux on the
> nslu, thus I chose this forum for my writeup.
> - I want to put the weather webcam in a window with a the best view of
> the weather.
> - None of my home PCs are close enough to practically run a USB cable
> - LAN connectivity mostly ok. My house has several rooms wired w/CAT5
> - I have had two Wifi webcams.
> - They both failed after a couple of months of use (they run hot!)
> - I have tried a couple of webcams
> that have "web servers" running in them
> - They want to have their own ActiveX controls running
> on in a web browser
> - Don't easily work with common webcam software
> - I have bought and returned a few different webcam solutions over the
> last 2 years.
> - I have experience with QC3000/QC4000 (basement sump pump monitors.)
> Very relabile. Image quality good enough.
> - I'll drop all of this if I can find a good solution under $300. The
> $600+ solutions are fantasic; just too expensive for me.
> Summary of steps I followed
> - Starting with a stock NSLU2
> - Load the Unslung firmware onto the NSLU2
> - Unsling the NSLU2, that is
> - Run a procedure that copies the root file system of the NSLU2
> - To an external thumb drive
> - The NSLU2 still behaves like a stock NSLU2, but it now has room to
> download linux pakages
> - Install ssh and get PC<->NSLU file transfer working (WinSCP)
> - Install NTP client (NSLU2 clock drifts really bad, don't know why)
> - Copy the webcam drivers/utilities from yahoo nslu2-linux group
> to NSLU2
> - Install image libraries
> - Create a couple scripts: quickcam.cgi and rc.local
> - Plug in the Quickcam into the USB socket not used
> by the thumb drive
> - Verify that http://mynslu/quickcam.cgi <http://mynslu/quickcam.cgi>
> returns a webcam image
> It's actually simpler than it sounds and the existing references and
> HOWTOs were a big help. I was able to avoid doing kernal builds and
> retain the Unslung environment (my comfort zone).
> Unslung Firmware README file (use wordpad to read)
> - http://download.berlios.de/unslung/Unslung-6.8-beta-README.txt
> NSLU Wiki
> - http://www.nslu2-linux.org/wiki/HowTo/AddUsbWebcam
> - http://www.nslu2-linux.org/wiki/HowTo/UseALogitechQuickcamMessenger
> Yahoo NSLU2 Group
> - http://tech.groups.yahoo.com/group/nslu2-linux/
> NSLU Message Forum
> - www.nslu2-info.de <http://www.nslu2-info.de> (In German)
> Unslung addon packages (use the ipkg command)
> - http://www.nslu2-linux.org/wiki/Unslung/Packages
> Write Unslung scripts that execute on reboot.
> - http://www.nslu2-linux.org/wiki/Unslung/DiversionScripts
> Webcam PWC WIKI
> - http://www.lavrsen.dk/twiki/bin/view/PWC/FrequentlyAskedQuestionsPWC
> Linux WEB cam Howto
> - http://www.linux.com/howtos/Webcam-HOWTO/hardware.shtml
> Phillips Web Cam (pwc) drivers for QC 3000/4000
> - http://www.saillard.org/linux/pwc/1G
> NTP Client Howto
> SSH support - Dropbear
> - http://www.nslu2-linux.org/wiki/HowTo/UseDropBearForRemoteAccess
> With thanks to the experts on this message board.
> Respectfully submitted,
> * * DETAILED SETUP NOTES * *
> Load the Unslung firmware onto the NSLU2
> I used the Unslung 6.8 beta download located at
> - http://www.slug-firmware.net/u-dls.php
> Unsling the NSLU2
> I followed the README. Lots of steps. Some steps I had to try more than
> once. Besure to test the back-out procedure and test that everything
> cycles sanely after a reboot. I probably rebooted 3 or 4 times through
> out the process... not bad, just part of the process.
> Install ssh and get PC<->NSLU file transfer working (WinSCP)
> You want to get sshd running as soon as possible. The telnet access is
> not as convenient, and PC software like WinSCP make it really easy to
> copy files to/from the NSLU2. I ran the following two commands on the
> NSLU (over telnet):
> # ipkg update
> # ipkg install dropbear
> There's lot of fancy updating and tailoring you can do, but the default
> settings worked just fine for me. I use both putty and WinSCP to talk to
> the NSLU. From now on, I can get an NSLU linux prompt ("#" in the
> following text) by running putty.
> Install NTP client (typing commands into a putty window running on my
> # ipkg install ntpclient
> Create the file diversion script
> file - /unslung/rc.rstimezone
> /usr/sbin/Set_TimeZone >/dev/null
> if [ -x /opt/bin/ntpclient ]; then
> /opt/bin/ntpclient -h pool.ntp.org -s >/dev/null
> /usr/sbin/hwclock --systohc >/dev/null
> Update the Crontab file - /etc/crontab
> 0 0 * * * root /usr/sbin/WatchDog &>/dev/null
> #1 * * * * root /usr/sbin/hwclock -s &>/dev/null
> 11 * * * * root /opt/bin/ntpclient -h pool.ntp.org -s &>/dev/null
> 12 * * * * root /usr/sbin/hwclock --systohc &>/dev/null
> Copy the webcam drivers/utilities from yahoo nslu2-linux group to NSLU2
> setpwc -> /opt/bin
> vidcat -> /opt/bin
> pwc.o -> /opt/lib/modules
> videodev.o -> /opt/lib/modules
> I used WinSCP to copy the files from my PC to the NSLU. I set setpwc and
> vidcat to executable.
> Make the video device and set permissions (copied from the HOWTO
> verbatium, thanks Geert)
> # mknod /dev/video0 c 81 0
> # mkdir /dev.state
> # mknod /dev.state/video0 c 81 0
> # chown admin.everyone /dev/video0
> # chown admin.everyone /dev.state/video0
> # chmod g+w /dev/video0
> # chmod g+w /dev.state/video0
> Install the drivers
> # cd /opt/lib/modules (mkdirs)
> # /sbin/insmod videodev.o
> # /sbin/insmod pwc.o
> Install image libraries
> At the NSLU ssh/putty Linux prompt:
> # ipkg install libjpeg
> # ipkg install libpng
> # ln -s /opt/lib/libjpeg.so.62.0.0 /lib/libjpeg.so.62
> # ln -s /opt/lib/libpng.so.3.12.0 /lib/libpng.so.3
> # ln -s /opt/lib/libz.so.1.2.3 /lib/libz.so
> # /opt/bin/vidcat -m -d /dev/video0 -s 160x120 -p y -o
> at your PC verify the webcam image displays in windows explorer at the
> following network share:
> \\nslu2\ADMIN 2\share\hdd
> The command setpwc -x is useful for debugging. The above "ln" commands
> are an interesting compromise; I found this in the www.nslu2-info.de
> message board. I suppose there might be a better way of fixing library
> locations for the image packages, but this was easy, works, and helped
> me avoid having to learn more about the image package architectures.
> Create a couple of scripts
> Create a diversion script that re-installs the video modules on reboot
> file - /share/flash/data/unslung/rc.local
> cd /opt/lib/modules
> /sbin/insmod videodev.o
> /sbin/insmod pwc.o
> Create a cgi shell script to return a jpg. Note this takes advantage of
> the NSLU's existing httpd.
> file - /home/httpd/html/quickcam.cgi
> /opt/bin/qc quickcam.jpg > /dev/null
> echo -e "Content-type: image/jpeg\r"
> echo ""
> cat quickcam.jpg
> Create a script that shortens the vidcat command line (helpful for
> file - /opt/bin/qc
> #! /bin/sh
> /opt/bin/vidcat -m -d /dev/video0 -s 160x120 -p y -o $1
> chmod 755 /opt/bin/qc
> Verify that http://mynslu/quickcam.cgi <http://mynslu/quickcam.cgi>
> returns a webcam image in your PC's browser. I have tested this cgi
> within Image Salsa. It should also be verified inside of wdisplay's
> webcam infrastructure.
- << Previous post in topic Next post in topic >>