How to compile Webcam Drivers gspca for Puppy 2.17?

Booting, installing, newbie
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#21 Post by muggins »

do you have a link to any driver that supports this device? also, if you type uname -r, what's the result?
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#22 Post by edoc »

sh-3.00# uname -r
2.6.18.1
This site lists two ViMicro Web cams as supported in Linux:
http://www.linuxtv.org/v4lwiki/index.php/Webcams

Quote:
spca5xx * Supports webcams based on Sunplus Sonix Transvision Z-star/Vimicro chips

# zc0301 -- included in the kerne * Supports Z-Start/Vimicro ZC0301-based USB cameras

I am not certain if either is the same chipset as mine.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#23 Post by muggins »

well you could try modprobe zc0301, to see if that works with the webcam. if it doesn't, then you can remove the module with:

modprobe -r zc0301

apart from that i'm not sure what driver you can try, as it seems that it's not supported by gspca.
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#24 Post by edoc »

Tried that, nada.

Interestingly, xawtv was already installed in TEENpup but I did not know that so I
installed it a second time. Both desktop icons, the original TEENpup default labeled
simply "TV" and the one I installed "xawtv", are unresponsive.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#25 Post by muggins »

doc,

when you say that modprobe -r zc0301 did nothing, did you check that the driver was/wasn't recognised by usbview? as if you're relying on xawtv as your guideline, that might be a different problem.
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#26 Post by edoc »

I, unfortunately, observed no change to USBview. My USB webcam hardware data is
read and displayed but the device is still highlighted in red. I saw nothing related to the
driver.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#27 Post by tempestuous »

Let's clarify some of this information.
vabene06's gspca module packages earlier in this thread support ONLY Puppy 2.17 with the 2.6.21.5 kernel.
vabene06, you should indicate the kernel version in the name of the package when you provide these.
edoc wrote:sh-3.00# uname -r
2.6.18.1
That would be a Puppy version between 2.12 and 2.16. vabene06's drivers won't work there.

I now attach the gspca driver compatible with Puppy 3.x and 4.0 (kernel 2.6.21.7).
This package installs the module in the correct location: /lib/modules/2.6.21.7/kernel/drivers/usb/media/
and a post-install script runs "depmod" so the new module can be located.

I also modified the gspca source code so the driver will recognise the device ID: 0ac8 0323, as identified by edoc, which regardless of any rebranding, is actually a Vimicro product.

EDIT Nov 7 2007
gspca driver now attached for Puppy versions 2.12-2.16 (kernel 2.6.18.1)
edoc wrote:sh-3.00# xawtv -noxv
...
can't open /dev/video0: No such device
This error is because Puppy does not contain the necessary /dev/videoxxx device nodes.
My xawtv-3.95.pet package from here -
http://www.murga-linux.com/puppy/viewto ... 804#129804
provides the script which will create these device nodes.

By the way, these are exactly the same device nodes required by analogue (but not digital) TV tuner cards.

The webcam drivers for Logitech Quickcam devices are here
http://www.murga-linux.com/puppy/viewtopic.php?t=23456
Last edited by tempestuous on Wed 16 Jul 2008, 01:34, edited 5 times in total.
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#28 Post by edoc »

OK, so if I understood correctly then I did the right thing ... :roll:

Note: I am doing this on my TEENpup 2.14 machine.

I downloaded and ran this version of xawtv:
This error is because Puppy does not contain the necessary /dev/videoxxx device nodes.
My xawtv-3.95.pet package from here -
http://www.murga-linux.com/puppy/viewto ... 804#129804
provides the script which will create these device nodes.
Then I downloaded and ran this:
gspcav1-20070508-k2.6.21.7.pet
So now I need to close everything and restart X so I can see the new version of
xawtv (I think I have three of them, hope they don't conflict with one another, not
to mention two versions of gspcav).

Will report back if I didn't break everything too badly! :shock:
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#29 Post by edoc »

No joy under TEENpup 2.14.

Will try the other machine with Puppy 3.01
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#30 Post by edoc »

Ran both apps, xawtv and gspcav, no joy on the 3.01 machine either.

USBviewer again reads the hardware data but highlights the webcam in red.

xawtv does show up in Multimedia but nothing happens when it is selected.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#31 Post by tempestuous »

edoc wrote:I am doing this on my TEENpup 2.14 machine.
No. Neither vabene06's nor my driver packages support this Puppy version.

In Puppy 3.00 or 3.01 install gspcav1-20070508-k2.6.21.7.pet and my xawtv-3.95.pet
Forget about the menu and USBviewer. Use the commandline.
As the xawtv README explains, first create the device nodes

Code: Select all

MAKEDEV-V4L.sh
Now plug in your webcam and do this

Code: Select all

modprobe gspca
xawtv
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#32 Post by edoc »

tempestuous wrote:

Code: Select all

MAKEDEV-V4L.sh
Now plug in your webcam and do this

Code: Select all

modprobe gspca
xawtv
The first command worked fine, but the second failed:
# modprobe gspca
FATAL: Error inserting gspca (/lib/modules/2.6.21.7/kernel/drivers/usb/media/gspca.ko): Unknown symbol in module, or unknown parameter (see dmesg)
#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#33 Post by tempestuous »

OK, in spite of my efforts, it appears the gspca module does not load successfully with your webcam.
But now that you have the correct device nodes set up, maybe go back a step and try the zc0301 module again -

Code: Select all

modprobe zc0301
xawtv
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#34 Post by edoc »

# modprobe zc0301
# xawtv
This is xawtv-3.95, running on Linux/i686 (2.6.21.7)
xinerama 0: 1024x768+0+0
WARNING: Your X-Server has no DGA support.
can't open /dev/video0: No such device
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such device
v4l2: open /dev/video0: No such device
v4l: open /dev/video0: No such device
no video grabber device available
#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#35 Post by tempestuous »

I was assuming that you would be trying on the same Puppy 3.x installation that you were using earlier, so the /dev/videoxx device nodes would still exist.
But if you're trying on a different system, or you're booting a CD with no pupsave file, then obviously those device nodes must be created first.

If all requirements are satisfied, it's possible to have xawtv query available devices with this command

Code: Select all

xawtv -hwscan
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#36 Post by edoc »

I am afraid that you are talking over my head.
obviously those device nodes must be created first.
What is "obvious" to someone with your expertise draws a blank stare from me! :oops:

I have by now loaded multiple apps and multiple commands and did not understand
most of what each of them did.

Do you have a paint-by-numbers, step-by-step as to what you'd like to see me do on
my 3.01 machine - from the start - please?

I am booting 3.01 from CD and have a Frugal install.

Also, would you like me to use the existing pup_save file or create a new one?

I did most of the prior testing on my TEENpup 2.14 machine and only switched to the
3.01 machine at the end of things.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#37 Post by tempestuous »

Code: Select all

MAKEDEV-V4L.sh
modprobe zc0301
xawtv
if no success

Code: Select all

xawtv -hwscan
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#38 Post by edoc »

# MAKEDEV-V4L.sh
*** new device names ***
/dev/video0: char 81 0
/dev/video1: char 81 1
/dev/video2: char 81 2
/dev/video3: char 81 3
/dev/radio0: char 81 64
/dev/radio1: char 81 65
/dev/radio2: char 81 66
/dev/radio3: char 81 67
/dev/vtx0: char 81 192
/dev/vtx1: char 81 193
/dev/vtx2: char 81 194
/dev/vtx3: char 81 195
/dev/vbi0: char 81 224
/dev/vbi1: char 81 225
/dev/vbi2: char 81 226
/dev/vbi3: char 81 227
# modprobe zc0301

# xawtv
This is xawtv-3.95, running on Linux/i686 (2.6.21.7)
xinerama 0: 1024x768+0+0
WARNING: Your X-Server has no DGA support.
can't open /dev/video0: No such device
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such device
v4l2: open /dev/video0: No such device
v4l: open /dev/video0: No such device
no video grabber device available
# xawtv -hwscan
This is xawtv-3.95, running on Linux/i686 (2.6.21.7)
looking for available devices
port 57-57
type : Xvideo, image scaler
name : Intel(R) Video Overlay

#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#39 Post by edoc »

I am stuck here. :?

Anyone have suggestions as to what to try next, please?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#40 Post by tempestuous »

There's a chance that the gspca module failed to load the videodev module it depends on, so the whole process would be -

Code: Select all

MAKEDEV-V4L.sh
For each installation with a pupsave file, that command is needed once only. Then -

Code: Select all

modprobe videodev
modprobe gspca
xawtv
Post Reply