OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: Raybot on October 13, 2005, 08:22:40 am

Title: Usb Webcams?
Post by: Raybot on October 13, 2005, 08:22:40 am
Hi all!

It looks like my Zaurus will start doing double duty as a robot controller pretty soon (especially since I stumbled across Jonathan's USB serial drivers so I can actually talk to the robot's MCU now)!

The problem is the webcam. I've read various posts about webcams working/not working on this forum and getting horribly confused (you need to compile V4L, drivers don't exist, etc).

The strongest lead I have so far is Meanie's website, http://www.users.on.net/~hluc/myZaurus/custom.html#webcam (http://www.users.on.net/~hluc/myZaurus/custom.html#webcam) and his usb-modules ipkg. I'm especially keen on this as the webcam in question (AFAIK) works with the standard PWC driver, a version of which is present in that package but when I install it then run "depmod -a", I get the following errors:

Code: [Select]
# depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/dsbr100.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/ibmcam.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/ov511.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/pwc.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/se401.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/stv680.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/ultracam.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/vicam.o

I suspect this has something to do with me missing "videodev.o" especially as it seems to be the webcam drivers that have failed but I can't find it on my filesystem anywhere and I can't find this file anywhere on "official" websites (certainly none of the bigger Zaurus websites and forums that I've tried) ... the only reference I can find to this file through google that seems vaguely zaurus'y is http://www.paipai.org/~humorum/zaurus/modu...rs/media/video/ (http://www.paipai.org/~humorum/zaurus/modules/kernel/drivers/media/video/) ... but I'm a little wary of trying it out as all the documentation for that website is in Japanese so I've got no idea if it's for a specific kernel or the like (and Bablefish doesn't seem to like it).

Anyone got any ideas? Meanie, got a moment to shed some light on this perhaps please?  


- Raymond
Title: Usb Webcams?
Post by: madeddie on October 13, 2005, 09:26:43 am
Quote
Hi all!

It looks like my Zaurus will start doing double duty as a robot controller pretty soon (especially since I stumbled across Jonathan's USB serial drivers so I can actually talk to the robot's MCU now)!

How very cool  I will have to play more with my zaurus soon, been used as silly PDA for way too long now

Quote
tried) ... the only reference I can find to this file through google that seems vaguely zaurus'y is http://www.paipai.org/~humorum/zaurus/modu...rs/media/video/ (http://www.paipai.org/~humorum/zaurus/modules/kernel/drivers/media/video/) ... but I'm a little wary of trying it out as all the documentation for that website is in Japanese so I've got no idea if it's for a specific kernel or the like (and Bablefish doesn't seem to like it).

The module says it's for kernel_version=2.4.18-rmk7-pxa3-embedix, i will try to recompile a kernel with video/webcam support when i have some time this weekend.

--
edwin
Title: Usb Webcams?
Post by: Raybot on October 13, 2005, 09:57:23 pm
Quote
Quote
Hi all!

It looks like my Zaurus will start doing double duty as a robot controller pretty soon (especially since I stumbled across Jonathan's USB serial drivers so I can actually talk to the robot's MCU now)!

How very cool  I will have to play more with my zaurus soon, been used as silly PDA for way too long now

[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
 (http://index.php?act=findpost&pid=99178\")


Well, it's not quite there yet :-)

Quote
Quote
tried) ... the only reference I can find to this file through google that seems vaguely zaurus'y is [a href=\"http://www.paipai.org/~humorum/zaurus/modules/kernel/drivers/media/video/]http://www.paipai.org/~humorum/zaurus/modu...rs/media/video/[/url] ... but I'm a little wary of trying it out as all the documentation for that website is in Japanese so I've got no idea if it's for a specific kernel or the like (and Bablefish doesn't seem to like it).

The module says it's for kernel_version=2.4.18-rmk7-pxa3-embedix, i will try to recompile a kernel with video/webcam support when i have some time this weekend.

--
edwin
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99178\"][{POST_SNAPBACK}][/a][/div]

I've just tried it anyway and it doesn't seem to have picked up the webcam ... but then again I can't find a /dev/video for instance so perhaps I'm missing something else as well. Anyone got any suggestions?

On a related note, how DOES one go about cross-compiling kernel modules? Then again perhaps I should actually set up my cross compile environment before asking that one ... heh


- Raymond
Title: Usb Webcams?
Post by: lpotter on October 13, 2005, 11:16:29 pm
I use a logitech quickcam webcam on my zaurus
Title: Usb Webcams?
Post by: Meanie on October 13, 2005, 11:31:11 pm
you get videodev.o if you enable V4L during kernel build. i actually asked tetsu to compile a version of his special kernel with that enabled which resulted in the 18b-hd kernel.
anyway, i have the file somewhere in my backups hopefully. you also would need to create a device node using mknod to create /dev/video but i don't know the exact number which needs to be passed to it (again, should be in my backups somewhere, I really hate the fact that my C3000 died just when I was about to finish the webcam driver package)
if you are interesting in compiling it yourself, i just finished rebuilding my on-board gcc compiler package (http://www.users.on.net/~hluc/myZaurus/custom.html#gcc) which is preconfigured for building 2.4.20 kernel modules and drivers as well as normal applications for qtopia as well.
i'll dig around in my backups for the videodev.o driver and node creation...
Title: Usb Webcams?
Post by: Raybot on October 14, 2005, 04:58:35 am
Quote
you get videodev.o if you enable V4L during kernel build. i actually asked tetsu to compile a version of his special kernel with that enabled which resulted in the 18b-hd kernel.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99270\"][{POST_SNAPBACK}][/a][/div]

Ah OK so this doesn't run on the default Sharp kernel? Or is that what you refer to below ...

Quote
anyway, i have the file somewhere in my backups hopefully.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99270\"][{POST_SNAPBACK}][/a][/div]

... here as in the .o file can work with the default kernel?

Quote
you also would need to create a device node using mknod to create /dev/video but i don't know the exact number which needs to be passed to it (again, should be in my backups somewhere,
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99270\"][{POST_SNAPBACK}][/a][/div]

Great! I would be most grateful if you could somehow recover the details to get this working ...


Quote
I really hate the fact that my C3000 died just when I was about to finish the webcam driver package)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99270\"][{POST_SNAPBACK}][/a][/div]

I know how you feel ... I've had no less than 5 hard drives fail on me at different times, taking most of my working data along with them eacah time ... I keep backups but it's still really annoying especially if they're out of date (and if anyone was wondering how it managed to be 5, they were all the infamous IBM [Desk|Death]Star 75GXP - 1 standalone and 2 in RAID0, when the 2 in RAID0 died they were replaced under warranty ... by another 2 75GXPs which also died </rant>).


Quote
if you are interesting in compiling it yourself, i just finished rebuilding my on-board gcc compiler package (http://www.users.on.net/~hluc/myZaurus/custom.html#gcc) which is preconfigured for building 2.4.20 kernel modules and drivers as well as normal applications for qtopia as well.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99270\"][{POST_SNAPBACK}][/a][/div]

Great! I'll have a look. I'm really interested in getting a development environment set up on my box to develop for this thing (well, I have to if I'm going to start trying to get things like a Player robot server running ...). One thing I haven't figured out though is how you use configure scripts or compile kernel modules and the like under a crosscompile environment ... anyone (Meanie in particular) have any hints to offer?

Quote
i'll dig around in my backups for the videodev.o driver and node creation...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99270\"][{POST_SNAPBACK}][/a][/div]

Cool! I wait with great anticipation  

Thanks!

- Raymond
Title: Usb Webcams?
Post by: Da_Blitz on October 14, 2005, 05:59:30 am
i can see "terminator 4  powered by sharp zaurus", good luck thogh, will you put up some info on the net as i am looking at doing somthing simmilar (with Head mounted displays/vision augmentation
Title: Usb Webcams?
Post by: Raybot on October 14, 2005, 08:17:21 am
Quote
i can see "terminator 4  powered by sharp zaurus", good luck thogh, will you put up some info on the net as i am looking at doing somthing simmilar (with Head mounted displays/vision augmentation
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99316\"][{POST_SNAPBACK}][/a][/div]

I can see a scene from the first part of the Tomb Raider movie playing out ... a Zaurus-controlled robot running all over the place, then someone says "Stop!", pops the SD card out, plugs another one in and it starts playing music

Don't worry, my robot is not of a size that would cause such destruction - if it was I wouldn't be trying to fit a Zaurus onto the back of it  I'll see if I can get some pictures put up somewhere once it's all done though ...

So you're using the Zaurus with a head mounted display? What sorta display are you using? Sounds interesting! (I presume more info is available on your website but, as you allude to, it seems to be down at the moment!)

- Raymond
Title: Usb Webcams?
Post by: Meanie on October 15, 2005, 06:45:25 am
I digged a bit around and found the required device numbers for the video device

you need to:

mknod /dev/video c 81 0
ln /dev/video /dev/video0
mknod /dev/video1 c 81 1

maybe you need more of these, so maybe do it up to 4

I have placed a work-in-progress ipk into http://www.users.on.net/~hluc/myZaurus/tmp/ (http://www.users.on.net/~hluc/myZaurus/tmp/) unfortunately, some of the drivers still crash the Zaurus   but you will find videodev.o amongst the files)
Title: Usb Webcams?
Post by: Raybot on October 15, 2005, 08:26:23 am
Quote
I digged a bit around and found the required device numbers for the video device

you need to:

mknod /dev/video c 81 0
ln /dev/video /dev/video0
mknod /dev/video1 c 81 1

maybe you need more of these, so maybe do it up to 4

I have placed a work-in-progress ipk into http://www.users.on.net/~hluc/myZaurus/tmp/ (http://www.users.on.net/~hluc/myZaurus/tmp/) unfortunately, some of the drivers still crash the Zaurus   but you will find videodev.o amongst the files)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99478\"][{POST_SNAPBACK}][/a][/div]

Thanks for that! Unfortunately it doesn't seem to like it - the driver doesn't claim the webcam (a Logitech QuickCam Pro 4000 - under Red Hat at least it uses the stock PWC driver). I've got videodog compiling, when I point it at /dev/video[|0|1|2|3|4] it complains about "No such device":

# ./videodog -s -d /dev/video0
/dev/video0
open videodev: No such device



Curiously, I'm also getting the following errors when I go "depmod -a":

# depmod -a
depmod: cannot read ELF header from /hdd3/baddrivers/media/video/sonixcam.wip
depmod: cannot read ELF header from /hdd3/baddrivers/media/video/spca5.wip
depmod: cannot read ELF header from /hdd3/baddrivers/media/video/sweexcam.wip
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/media/video/ibmcam.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/media/video/ultracam.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/ibmcam.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/drivers/usb/ultracam.o

The procedure I followed was basically to install your usb-modules ipkg then this new ipkg of yours. For space reasons I symlinked the .o files into /lib/modules/2.4.20/kernel/drivers/usb and media/video (it didn't seem to like symlinking directories though).

Any suggestions as to where I might look?


On a related note, I figured I might try recompiling the drivers myself (thinking maybe an update to the PWC driver might be needed to support this webcam) but I hit an immediate snag - no kernel source! I presume the kernel source for the Sharp ROM is readily available somewhere ... is the process of getting it all up and running relatively painless or is a pile of mucking around involved?


Thanks,

- Raymond
Title: Usb Webcams?
Post by: kckong on October 17, 2005, 04:46:27 am
Sorry, I am lost here. Anyone can give step-by-step installation instruction. I am having Logitech WebCam + C3000 with usb host cable.

2nd question, what software should I run for the webCam on Zaurus?  Any good video conferrencing software available between Zaurus to Window base?
Title: Usb Webcams?
Post by: tombraider on February 06, 2006, 06:55:47 pm
I know I am responding to a very old post,  but just how are you able to "use" the webcam on your zaurus?  What software do you use?  My C1000 recognizes my Microsoft webcam but then what????

Thanks for any help.

Quote
I use a logitech quickcam webcam on my zaurus
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99269\"][{POST_SNAPBACK}][/a][/div]
Title: Usb Webcams?
Post by: Ling on March 14, 2007, 10:07:58 pm
I have found the small webcam I was looking for. I am interested in setting it up on my 3200 w/ pdaXii13 to vconf. I don't expect much, small window size with low frame rate is OK. Anyone had any success?
Title: Usb Webcams?
Post by: desertrat on March 15, 2007, 01:10:46 am
Quote
I know I am responding to a very old post,  but just how are you able to "use" the webcam on your zaurus?  What software do you use?  My C1000 recognizes my Microsoft webcam but then what????
If you're using the quickcam (as lpotter is) and you're using pdaXrom then you need gqcam.
Title: Usb Webcams?
Post by: dwagelaar on August 02, 2007, 12:18:12 pm
Let's add some more to the mix: I've compiled video4linux and the spca5xx driver for Cacko 1.23. The spca5xx driver supports quite a lot of cameras (including my Logitech QuickCam Express). No need to do the mknod stuff manually, since that's taken care of by a /etc/hotplug/usb script. I've added the (experimental) spcaview viewer as well.

Anyway, you can try your luck. Here are the goods:
http://ssel.vub.ac.be/Members/DennisWagela...d/zaurus/cacko/ (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/cacko/)

The packages are called "video4linux" and "spcaview".
Title: Usb Webcams?
Post by: dwagelaar on August 05, 2007, 01:08:07 pm
I've just added version 0.8.6c (current) of Video LAN Client to my feed as well. It is compiled with v4l support and is pretty much your command-line Swiss knife for webcam viewing/recording/streaming ;-).

http://ssel.vub.ac.be/Members/DennisWagela...d/zaurus/cacko/ (http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/cacko/)
Title: Usb Webcams?
Post by: matthis on August 05, 2007, 07:58:59 pm
Wow, sounds excellent, I'll try as soon as possible. Thank you!