FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 10-17-2008, 08:52 PM
RYAN vAN GINNEKEN
 
Default usb webcam

bump

----- "KH" <gentoo-user@konstantinhansen.de> wrote:

> RYAN vAN GINNEKEN schrieb:
> > Hello all i have a fairly fresh install of Gentoo 2008 and am trying
> to get my old usb webcam to work. Have tried to install spca5xx and
> gspca with emerge but always get the following errors for both. This
> is worry some as i would like the system to be as stable as possible
> but need my webcam to work.
> >
> > [snip]
> >
> > So i read the in handbook googled around a bit and added these to
> the /etc/portage/package.keywords however this did not work.
> >
> > media-video/gspca
> > media-video/spca5xx
> >
> > [snip]
> For me the keywords always look like that:
>
> =www-client/mozilla-firefox-3.0.3 ~amd64
> =dev-libs/nss-3.12 ~amd64
>
>
>
> You also can use > or >= (I think) but you need a version number.
> Choose
> ~ for you system like ~x86 (You don't need to specify I think)
>
> kh
 
Old 10-17-2008, 09:40 PM
Alan McKinnon
 
Default usb webcam

On Friday 17 October 2008 20:02:58 RYAN vAN GINNEKEN wrote:
> ----- "KH" <gentoo-user@konstantinhansen.de> wrote:

> I have tried the additional combos below, but still cannot build the
> spca5xx port. The first one gives me invalid atom error the rest just give
> the package mask error mentioned in my first email.
>
> =media-video/spca5xx

This won't work. An atom with a version prefix must have a version number.

> =media-video/spca5xx-20060501-r1 ~x86
> <=media-video/spca5xx-20060501-r1 ~x86
>
> >=media-video/spca5xx-20060501-r1 ~x86
>
> funny thing is i got the masked zoneminder port to build using these in
> /etc/portage/package.keywords

You are looking in the wrong place. I would suggest that you first read all
the portage man pages:

man emerge
man 5 make.conf
man 5 portage
man 5 ebuild

It's a lot of stuff but it's all necessary.

Now look at your original error and see what is there instead of what you
think might be there. It clearly says that the package is hard masked, and
that it is package.mask that is doing it. If you look in that file, you see:

nazgul ~ # grep spca /var/portage/profiles/package.mask
# Sorting out media-video/{spca5xx,gspca{,v1}} bug 159176
media-video/spca5xx
media-video/gspca

You can fiddle with package.keywords for the next century, it won't make a
difference. You need to unmask these packages with entries
in /etc/portage/package.unmask


--
alan dot mckinnon at gmail dot com
 
Old 10-17-2008, 11:43 PM
RYAN vAN GINNEKEN
 
Default usb webcam

As stated in my first post of this thread i have added these the the /etc/portage/package.umask

ooops there it is named the file umask instead of unmask hehehe typo now things are trying to build but i get this error

ANYWHO SHOULD I EVEN BE USING THESE dangerous looking packages ?? are there some usb camera drivers that are stable that i could try please help!!!



Emerging (1 of 1) media-video/spca5xx-20060501-r1 to /
>>> Downloading 'ftp://gentoo.arcticnetwork.ca/pub/gentoo/distfiles/spca5xx-20060501.tar.gz'
--17:31:22-- ftp://gentoo.arcticnetwork.ca/pub/gentoo/distfiles/spca5xx-20060501.tar.gz
=> `/usr/portage/distfiles/spca5xx-20060501.tar.gz'
Resolving gentoo.arcticnetwork.ca... 206.75.218.53
Connecting to gentoo.arcticnetwork.ca|206.75.218.53|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/gentoo/distfiles ... done.
==> PASV ... done. ==> RETR spca5xx-20060501.tar.gz ... done.
Length: 192,817 (188K) (unauthoritative)

100%[====================================>] 192,817 565.78K/s

17:31:22 (564.45 KB/s) - `/usr/portage/distfiles/spca5xx-20060501.tar.gz' saved [192817]

* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking spca5xx-20060501.tar.gz ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.25-gentoo-r8/build
* Found sources for kernel version:
* 2.6.25-gentoo-r8
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
>>> Unpacking spca5xx-20060501.tar.gz to /var/tmp/portage/media-video/spca5xx-20060501-r1/work
tar: spca5xx-20060501/drivers: implausibly old time stamp 1969-12-31 17:00:00
* Converting spca5xx-20060501/Makefile to use M= instead of SUBDIRS= .. [ ok ]
* Applying spca-20060501-defines.patch ... [ ok ]
* Applying spca-20060501-2.6.18.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501 ...
* Preparing spca5xx module
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /usr/src/linux M=/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501 CC=i686-pc-linux-gnu-gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r8'
scripts/Makefile.build:46: *** CFLAGS was changed in "/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r8'
make: *** [default] Error 2
*
* ERROR: media-video/spca5xx-20060501-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3125: Called linux-mod_src_compile
* environment, line 2398: Called die
* The specific snippet of code:
* eval "emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KERNELDIR=/usr/src/linux default
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-video/spca5xx-20060501-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/spca5xx-20060501-r1/temp/environment'.
*

* Messages for package media-video/spca5xx-20060501-r1:

*
* ERROR: media-video/spca5xx-20060501-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3125: Called linux-mod_src_compile
* environment, line 2398: Called die
* The specific snippet of code:
* eval "emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KERNELDIR=/usr/src/linux default
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-video/spca5xx-20060501-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/spca5xx-20060501-r1/temp/environment'.
*

and this guess i will try v1 as suggested in the error message

=> `/usr/portage/distfiles/gspcav1-01.00.10.tar.gz'
Resolving gentoo.arcticnetwork.ca... 206.75.218.53
Connecting to gentoo.arcticnetwork.ca|206.75.218.53|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/gentoo/distfiles ... done.
==> PASV ... done. ==> RETR gspcav1-01.00.10.tar.gz ... done.
Length: 157,997 (154K) (unauthoritative)

100%[====================================>] 157,997 413.77K/s

17:40:05 (413.38 KB/s) - `/usr/portage/distfiles/gspcav1-01.00.10.tar.gz' saved [157997]

* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking gspcav1-01.00.10.tar.gz ;-) ... [ ok ]
* The package maintainer made a mistake. You should consider using media-video/gspcav1
* instead. This driver is still alpha. --KingTaco
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.25-gentoo-r8/build
* Found sources for kernel version:
* 2.6.25-gentoo-r8
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
>>> Unpacking gspcav1-01.00.10.tar.gz to /var/tmp/portage/media-video/gspca-01.00.10/work
*
* ERROR: media-video/gspca-01.00.10 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 3146: Called convert_to_m 'src_unpack'
* environment, line 754: Called die
* The specific snippet of code:
* [ ! -f "${1}" ] && die "convert_to_m() requires a filename as an argument";
* The die message:
* convert_to_m() requires a filename as an argument
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-video/gspca-01.00.10/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/gspca-01.00.10/temp/environment'.
*

* Messages for package media-video/gspca-01.00.10:

* The package maintainer made a mistake. You should consider using media-video/gspcav1
* instead. This driver is still alpha. --KingTaco
*
* ERROR: media-video/gspca-01.00.10 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 3146: Called convert_to_m 'src_unpack'
* environment, line 754: Called die
* The specific snippet of code:
* [ ! -f "${1}" ] && die "convert_to_m() requires a filename as an argument";
* The die message:
* convert_to_m() requires a filename as an argument
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-video/gspca-01.00.10/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/gspca-01.00.10/temp/environment'.




----- "Alan McKinnon" <alan.mckinnon@gmail.com> wrote:

> On Friday 17 October 2008 20:02:58 RYAN vAN GINNEKEN wrote:
> > ----- "KH" <gentoo-user@konstantinhansen.de> wrote:
>
> > I have tried the additional combos below, but still cannot build
> the
> > spca5xx port. The first one gives me invalid atom error the rest
> just give
> > the package mask error mentioned in my first email.
> >
> > =media-video/spca5xx
>
> This won't work. An atom with a version prefix must have a version
> number.
>
> > =media-video/spca5xx-20060501-r1 ~x86
> > <=media-video/spca5xx-20060501-r1 ~x86
> >
> > >=media-video/spca5xx-20060501-r1 ~x86
> >
> > funny thing is i got the masked zoneminder port to build using these
> in
> > /etc/portage/package.keywords
>
> You are looking in the wrong place. I would suggest that you first
> read all
> the portage man pages:
>
> man emerge
> man 5 make.conf
> man 5 portage
> man 5 ebuild
>
>

Alread gone through the first couple but maybe i should take a look at the others.

>It's a lot of stuff but it's all necessary.
>
> Now look at your original error and see what is there instead of what
> you
> think might be there. It clearly says that the package is hard masked,
> and
> that it is package.mask that is doing it. If you look in that file,
> you see:
>
> nazgul ~ # grep spca /var/portage/profiles/package.mask
> # Sorting out media-video/{spca5xx,gspca{,v1}} bug 159176
> media-video/spca5xx
> media-video/gspca
>
> You can fiddle with package.keywords for the next century, it won't
> make a
> difference. You need to unmask these packages with entries
> in /etc/portage/package.unmask
>
>
> --
> alan dot mckinnon at gmail dot com
 
Old 10-18-2008, 04:43 AM
Neil Bothwick
 
Default usb webcam

On Fri, 17 Oct 2008 23:40:51 +0200, Alan McKinnon wrote:

> nazgul ~ # grep spca /var/portage/profiles/package.mask
> # Sorting out media-video/{spca5xx,gspca{,v1}} bug 159176
> media-video/spca5xx
> media-video/gspca
>
> You can fiddle with package.keywords for the next century, it won't
> make a difference. You need to unmask these packages with entries
> in /etc/portage/package.unmask

Or use the correct package, which is not hard masked - media-video/gspcav1


--
Neil Bothwick

(A)bort, (R)etry, (P)retend this never happened...
 
Old 10-18-2008, 08:26 AM
Alan McKinnon
 
Default usb webcam

On Saturday 18 October 2008 01:43:58 RYAN vAN GINNEKEN wrote:
> As stated in my first post of this thread i have added these the the
> /etc/portage/package.umask
>
> ooops there it is named the file umask instead of unmask hehehe typo now
> things are trying to build but i get this error
>
> ANYWHO SHOULD I EVEN BE USING THESE dangerous looking packages ?? are there
> some usb camera drivers that are stable that i could try please help!!!

The usual answer is "try them and see what happens"

Devs usually hard-mask packages for the following reasons (sort of in order of
decreasing frequency)

- the package will not build (stupid code)
- the package depends on something else that is not in portage
- the package is horribly buggy but seems to work sometimes
- the package wreaks half of the other packages on your machine
- the package is a developer testing version and you're not supposed to use it
- the package breaks your hardware

the last one is extremely rare. So try those packages by all means, and note
what happens at each step. If they really are unusable and you know your way
around, it's not that hard to remove them. Irritating and time-consuming yes,
but hard and dangerous no



--
alan dot mckinnon at gmail dot com
 
Old 10-18-2008, 09:49 AM
Stroller
 
Default usb webcam

On 17 Oct 2008, at 21:52, RYAN vAN GINNEKEN wrote:

bump



Please don't do that here.

Stroller.
 
Old 10-18-2008, 10:20 AM
Dirk Heinrichs
 
Default usb webcam

Am Freitag, 17. Oktober 2008 22:52:12 schrieb RYAN vAN GINNEKEN:
> bump

???

Bye...

Dirk
 
Old 10-18-2008, 06:58 PM
RYAN vAN GINNEKEN
 
Default usb webcam

Ok first let me apologize for my impatiens in bumping my thread in retrospect I guess it was pretty rude. Also I would like to apologize for not following the intelligent way to ask a question essay. However i have read it in the past just not recently, have to admit I got lazy and just fired this post up without much thought. Mostly frustrated as it seemed like a fairly simple issue something I assumed that most people with Gentoo experience would have a quick answer for. Again my apologizes having goggled around all day or two, and finding that most of the helpful hints regarding my topic were dead ie wiki is down, plus working with google cache is troublesome.

Anyway on with the webcam problems i have emerged gspcav1 and loaded the module

# lsmod
Module Size Used by
gspca 620752 0

but the cameras are still only detected as usb devices and no drivers are being loaded.

PLEASE can someone help me with this issue are there other kernel modules i can try? other packages to emerge? if so what are they? here is a lsusb of the 2 devices

Bus 003 Device 006: ID 046d:08f5 Logitech, Inc.
Bus 003 Device 007: ID 04c1:009d U.S. Robotics (3Com) HomeConnect WebCam [vicam]

this is how they show up in /etc/messages

Oct 18 18:43:35 huang usb 3-2: new full speed USB device using uhci_hcd and address 7
Oct 18 18:43:35 huang usb 3-2: configuration #1 chosen from 1 choice
Oct 18 18:43:45 huang hub 1-0:1.0: unable to enumerate USB device on port 1
Oct 18 18:43:46 huang usb 2-1: new full speed USB device using ohci_hcd and address 2
Oct 18 18:43:46 huang usb 2-1: configuration #1 chosen from 1 choice

ps i have had these cameras work in ubuntu, mandrake, pclinux (none are as cool as Gentoo) so i am guessing that gentoo should work too!


----
Computer King & CaN Mail - Sales Service Hosting Backup

http://www.computerking.ca http://www.canmail.org

NEW!!! Custom Service Packages
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online Accounting Packages

----- "Dirk Heinrichs" <dirk.heinrichs@online.de> wrote:

> Am Freitag, 17. Oktober 2008 22:52:12 schrieb RYAN vAN GINNEKEN:
> > bump
>
> ???
>
> Bye...
>
> Dirk
 
Old 10-18-2008, 09:07 PM
Dale
 
Default usb webcam

RYAN vAN GINNEKEN wrote:
> Ok first let me apologize for my impatiens in bumping my thread in retrospect I guess it was pretty rude. Also I would like to apologize for not following the intelligent way to ask a question essay. However i have read it in the past just not recently, have to admit I got lazy and just fired this post up without much thought. Mostly frustrated as it seemed like a fairly simple issue something I assumed that most people with Gentoo experience would have a quick answer for. Again my apologizes having goggled around all day or two, and finding that most of the helpful hints regarding my topic were dead ie wiki is down, plus working with google cache is troublesome.
>
> Anyway on with the webcam problems i have emerged gspcav1 and loaded the module
>
> # lsmod
> Module Size Used by
> gspca 620752 0
>
> but the cameras are still only detected as usb devices and no drivers are being loaded.
>
> PLEASE can someone help me with this issue are there other kernel modules i can try? other packages to emerge? if so what are they? here is a lsusb of the 2 devices
>
> Bus 003 Device 006: ID 046d:08f5 Logitech, Inc.
> Bus 003 Device 007: ID 04c1:009d U.S. Robotics (3Com) HomeConnect WebCam [vicam]
>
> this is how they show up in /etc/messages
>
> Oct 18 18:43:35 huang usb 3-2: new full speed USB device using uhci_hcd and address 7
> Oct 18 18:43:35 huang usb 3-2: configuration #1 chosen from 1 choice
> Oct 18 18:43:45 huang hub 1-0:1.0: unable to enumerate USB device on port 1
> Oct 18 18:43:46 huang usb 2-1: new full speed USB device using ohci_hcd and address 2
> Oct 18 18:43:46 huang usb 2-1: configuration #1 chosen from 1 choice
>
> ps i have had these cameras work in ubuntu, mandrake, pclinux (none are as cool as Gentoo) so i am guessing that gentoo should work too!
>
>


Just a shot in the dark, is your user in the proper group to have access
to this camera? Does it work as root? If it works as root but not
user, check permissions. If it doesn't work as root, then at least we
will know it is not a permissions problem.

Dale

:-) :-)
 
Old 10-19-2008, 09:24 AM
Alan McKinnon
 
Default usb webcam

On Saturday 18 October 2008 20:58:07 RYAN vAN GINNEKEN wrote:
> Oct 18 18:43:35 huang usb 3-2: new full speed USB device using uhci_hcd and
> address 7 Oct 18 18:43:35 huang usb 3-2: configuration #1 chosen from 1
> choice Oct 18 18:43:45 huang hub 1-0:1.0: unable to enumerate USB device on
> port 1 Oct 18 18:43:46 huang usb 2-1: new full speed USB device using
> ohci_hcd and address 2 Oct 18 18:43:46 huang usb 2-1: configuration #1
> chosen from 1 choice
>
> ps i have had these cameras work in ubuntu, mandrake, pclinux (none are as
> cool as Gentoo) so i am guessing that gentoo should work too!

I've never heard of the hardware you mention so can't help directly. Is it
something uncommon?

Some more stuff you could try:

Ask on a user-list for the project this hardware is a part of.
Dig around in the other distro sources, see what patches they apply and what
the devs did to make it work. Replicate that on gentoo.

--
alan dot mckinnon at gmail dot com
 

Thread Tools




All times are GMT. The time now is 03:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org