Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149161 - gspcav1-20060925 to replace spca5xx-20060501 released
Summary: gspcav1-20060925 to replace spca5xx-20060501 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mike Doty (RETIRED)
URL: http://mxhaard.free.fr/download.html
Whiteboard:
Keywords: InVCS
: 148972 149698 151254 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-26 04:18 UTC by Paulo J. Matos
Modified: 2006-10-30 02:41 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gspcav1-20060925.ebuild (gspcav1-20060925.ebuild,661 bytes, text/plain)
2006-09-26 09:51 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo J. Matos 2006-09-26 04:18:31 UTC
Yesterday, M. Xhaard released gspcav which seems to support a greater number of cams than spca5xx.

An ebuild should be created for Gentoo. That would be really nice.
Comment 1 Conrad Kostecki gentoo-dev 2006-09-26 09:51:28 UTC
Hello!
Here is an ebuild!

I recommend to use this instead of spca5xx!

It also hat included this patch : http://bugs.gentoo.org/show_bug.cgi?id=146124

Compiles and Works for me!
Comment 2 Conrad Kostecki gentoo-dev 2006-09-26 09:51:50 UTC
Created attachment 98137 [details]
gspcav1-20060925.ebuild

gspcav1-20060925.ebuild
Comment 3 Sebastian Mikulec 2006-09-30 08:38:03 UTC
You beat me to it.  The ebuild I created is essentially exactly the same as the one already here.  Anyway it works great for me.  Hopefully this will make its way into official portage soon.


 emerge --info
Portage 2.1.2_pre2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-rc4-no1 x86_64)
=================================================================
System uname: 2.6.18-rc4-no1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.4
Last Sync: Sat, 30 Sep 2006 07:00:04 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.5-r1, 2.0.27-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17-r4
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fno-ident -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fno-ident -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/conrad /usr/local/overlays/seb /usr/local/overlays/toolchain_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aiglx alsa berkdb bitmap-fonts cdrw cli crypt cups dbus dlloader dri dvd dvdr elibc_glibc encode ffmpeg fortran gdbm gpm gtk2 input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kernel_linux libg++ lm_sensors mad matroska mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre perl png ppds pppd python quicktime readline reflection sdl session spl ssl svg tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia x264 xcomposite xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-01 03:22:48 UTC
*** Bug 149698 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-10-01 03:23:08 UTC
*** Bug 148972 has been marked as a duplicate of this bug. ***
Comment 6 Luigi 'Comio' Mantellini 2006-10-01 03:26:04 UTC
(In reply to comment #5)
> *** Bug 148972 has been marked as a duplicate of this bug. ***
> 

Ok... sorry. :)

ciao
Comment 7 codyzapp 2006-10-11 02:55:12 UTC
what portage dir does this go in? /media-video/gspca/ ? 
Comment 8 codyzapp 2006-10-11 13:43:20 UTC
can yall bump this to portage? 
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 00:36:41 UTC
*** Bug 151254 has been marked as a duplicate of this bug. ***
Comment 10 codyzapp 2006-10-15 05:01:58 UTC
After Emerge -C spca5xx and emerging gspcav1, I try to view my camera and it
crashes my system.(by crash i mean completly freeze, i have to press the power
button to shut it off) This happened with the spca5xx driver so im wondering if
i just need to switch to gcc3 and recompile my kernel? Also notice when i run lsmod, I see that the spca5xx driver is still listed in video_dev.

(below is my emerge --info) 

=============================================================
TuX ~ # emerge --info
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3,
2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP  2600+
Gentoo Base System version 1.12.5
Last Sync: Sat, 14 Oct 2006 02:00:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox
sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlays/mine"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext X aac aac+ aalib accessibility aim alsa arts
artworkextra avahi avi berkdb bitmap-fonts bogofilter branding cdr cli crypt
cups dbus debug directfb dlloader dri dvd dvdr eds elibc_glibc encode esd flac
fortran gdbm gif glx gnome gpm gstreamer gtk gtk2 gui hal imlib
input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog
jack java jpeg kdenetwork kernel_linux kopete libcaca libg++ lirc mad mikmod
mmx motif mp3 mpeg mplayer msn multiuser ncurses net-meeting nethack nls nptl
nptlonly nvidia oggvorbis openal opengl pam pcre pda perl png ppds pppd python
qt rar readline real reflection screen sdl session sndfile spell spl ssl svga
swf tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2
video_cards_apm video_cards_ark video_cards_ati video_cards_chips
video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev
video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810
video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc
video_cards_nv video_cards_nvidia video_cards_rendition video_cards_s3
video_cards_s3virge video_cards_savage video_cards_siliconmotion
video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga
video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa
video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis
win32codecs x86 xinerama xorg xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Paulo J. Matos 2006-10-15 05:05:03 UTC
(reply to #10)

Hi, that's a known issue. Remove 4kb stacks optimization in the kernel config.

Have fun!
Comment 12 codyzapp 2006-10-15 08:40:55 UTC
how? and where? 
Comment 13 Sven Müller 2006-10-17 19:06:30 UTC
(In reply to comment #12)
> how? and where? 
> 
Kernel-Hacking -> Use 4Kb for kernel stacks instead of 8Kb

**********************************************************

Nonetheless for me it doesn't work. I have a Z-Star Vimicro zc0305b.
lsusb: 0ac8:305b Z-Star Microelectronics Corp.

And it doesn't work neither with spca5xx (Patch for 2.6.18) nor with gspca. With gspca I get only a black screen, with spca5xx I got also only a black screen and additionally the computer freezes (resetbutton). Of course I switched the kernel configuration to 8Kb stacks. I also tried with modprobe gspca usbgrabber=1. But I think it doesn't depend on Gentoo. Today I compiled these two drivers on Knoppix (Debian Kernel 2.6.12) with same result.

Output (gentoo-2.6.18, spcaview, modprobe gspca usbgrabber=1):
 Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@magic.fr 
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
**************** PROBING CAMERA *********************
Camera found: Generic Zc0305b 
Bridge found: ZC301-2 
Bridge find ZC301-2 number 13
StreamId: JPEG Camera
wrong spca5xx device
Bridge find ZC301-2 number 13
Available Resolutions width 640  heigth 480 native  
Available Resolutions width 352  heigth 288 decoded  
Available Resolutions width 320  heigth 240 native *
Available Resolutions width 176  heigth 144 decoded  
unable to probe size !!
*****************************************************
 grabbing method default MMAP asked 
VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
VIDIOCGPICT
brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0 
depth=12 palette=4
VIDIOCSPICT
brightness=32768 hue=0 color=0 contrast=32768 whiteness=0 
depth=24 palette=15 

Used 15579ms for 388 images => 40ms/image 24fps.
Quiting SDL.
Decoded frames:388 Average decode time: 6.000000
unmapping
closing
closed
Destroy Picture thread ...
Quiting....

Konfiguration Gentoo:
Portage 2.1.2_pre3-r3 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Mobile Intel(R) Pentium(R) III CPU - M  1000MHz
Gentoo Base System version 1.12.5
Last Sync: Tue, 17 Oct 2006 13:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"

Konfiguration Knoppix:
Version: Knoppix-4.0
Kernel: Debian 2.6.12
gcc: 3.x (I don't know exactly) 
Comment 14 codyzapp 2006-10-18 01:59:47 UTC
Mine worked fine after i switched to 8kb stacks, after i did that i ran modprobe gpsca and voila! :) Maybe the problem is your camera, are you sure its in the support list of the spca5xx or gspca driver? or It could be that your camera is busted hehe.. 
Comment 15 Mike Doty (RETIRED) gentoo-dev 2006-10-22 08:26:53 UTC
in cvs, but masked
Comment 16 Sven Müller 2006-10-30 02:41:10 UTC
(In reply to comment #14)
> Maybe the problem is your camera, are you sure its
> in the support list of the spca5xx or gspca driver? 

yes, it is.

> or It could be that your
> camera is busted hehe.. 

The camera works fine in windows. So I wrote directly to Michel Xhaard. 
Answer: "the sensor detected seem is not the good one can you find the *.inf file from your windows driver I will try to identify what sensor are on."

I did so. And now I'm waiting and hoping. :)

So basically the bug is not gentoo-related.