Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gspcav1 problem in Funtoo Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Dec 02, 2009 9:51 am    Post subject: gspcav1 problem in Funtoo Linux Reply with quote

I have Pixart Snake Eye Webcam and I like to install it to my Funtoo box.
The system finds my camera:
Code:

drphibes drphibes # lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 093a:2468 Pixart Imaging, Inc. Cammaestro 2.5DU/X-EYE/Orite SC-120/ICGear TravelCam/Easy Snap Snake Eye Webcam
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


I have usbutils (ver. 0.82) installed. My webcam's driver is gspcav1 according to http://mxhaard.free.fr/spca5xx.html
I've also emerged media-libs/libv4l-0.5.3.
When I give

Code:
drphibes drphibes # emerge --pretend media-video/gspcav1

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "media-video/gspcav1".

How can I install the driver and make my camera work?


Last edited by rpil on Wed Dec 02, 2009 2:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Wed Dec 02, 2009 10:05 am    Post subject: Reply with quote

Code:

# pwd
/usr/src/linux/Documentation
# grep -r 2468 *
video4linux/gspca.txt:pac207            093a:2468       PAC207


You need new'ish kernel, like 2.6.31, and driver "pac207" from kernel.

No external ones required.
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Dec 02, 2009 2:05 pm    Post subject: Reply with quote

But I'm in 2.6.31-r6! :?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Wed Dec 02, 2009 2:52 pm    Post subject: Reply with quote

So problem solved, good! As in, Open up menuconfig and compile your kernel with the driver for your camera. No need to emerge anything.
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Dec 02, 2009 9:13 pm    Post subject: Reply with quote

I've done it, but no luck! I rebooted, I opened cheese and amsn, but no camera yet! :(
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Wed Dec 02, 2009 9:19 pm    Post subject: Reply with quote

I gave locate to search for the gspca driver:
Code:
drphibes drphibes # locate gspca
/home/drphibes/gspcav1-20071224.tar.gz
/lib/modules/2.6.30-gentoo-r8/kernel/drivers/media/video/gspca
/lib/modules/2.6.30-gentoo-r8/kernel/drivers/media/video/gspca/gspca_main.ko
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/Kconfig
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/tv8532.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/mr97310a.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/gspca.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/Kconfig
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_st6422.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_sensor.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_st6422.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/Makefile
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx_pb0100.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stv06xx/stv06xx.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/spca561.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/mars.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/zc3xx.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/Kconfig
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_sensor.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_s5k83a.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_core.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_bridge.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_ov7660.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_s5k4aa.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_s5k83a.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_ov7660.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_mt9m111.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_ov9650.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_ov9650.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_mt9m111.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_po1030.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/Makefile
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_po1030.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/jpeg.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/spca505.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/ov534.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/vc032x.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/sunplus.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/t613.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/etoms.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/spca500.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/pac_common.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/spca508.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/gspca.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/spca506.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/finepix.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/pac7311.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/sonixb.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/sq905c.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/pac207.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/sn9c20x.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/spca501.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/stk014.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/sq905.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/Makefile
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/zc3xx-reg.h
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/ov519.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/sonixj.c
/usr/src/linux-2.6.31-gentoo-r6/drivers/media/video/gspca/conex.c
/usr/src/linux-2.6.31-gentoo-r6/Documentation/video4linux/gspca.txt
Back to top
View user's profile Send private message
fanthom
n00b
n00b


Joined: 31 May 2007
Posts: 60

PostPosted: Thu Dec 03, 2009 5:39 pm    Post subject: Reply with quote

gspca_main.ko is not enough - you need to choose a subsection. My camera uses zc3xx driver. If you are not sure which one to pick up, try to compile all of them.
Good luck!
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Dec 03, 2009 5:44 pm    Post subject: Reply with quote

8O

It's pac207 as already said
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Fri Dec 04, 2009 11:39 pm    Post subject: Reply with quote

You mean this?
Code:
/usr/src/linux-2.6.31-gentoo-r6/.tmp_versions/gspca_pac207.mod


I've got it, but nothing happens! :(
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat Dec 05, 2009 8:06 pm    Post subject: Reply with quote

rpil wrote:
You mean this?
Code:
/usr/src/linux-2.6.31-gentoo-r6/.tmp_versions/gspca_pac207.mod


I've got it, but nothing happens! :(


Did you compile it as a module? I think that's preferred. Try,

# rmmod gspca_pac207 (this will unload the module)
# modprobe gspca_pac207 (this will load the module)

And then try unplugging your webcam, and then plugging it back, and look at output of `dmesg` command. The gspca_pac207 driver should
notify it detected the camera in `dmesg` output.

Then I guess you should read the emerge output at the end of `emerge -av libv4l`, the commands... that you need to do when starting applications:

Quote:

"libv4l includes wrapper libraries for compatibility and pixel format"
"conversion, which are especially useful for users of the gspca usb"
"webcam driver in kernel 2.6.27 and higher."

"To add v4l2 compatibility to a v4l application 'myapp', launch it via"
"LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so myapp"
"To add automatic pixel format conversion to a v4l2 application, use"
"LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so myapp"


replace "myapp" with e.g. cheese, camorama, mplayer, or whatever you are using... try different webcam apps, some might work, some might not
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Dec 06, 2009 8:08 am    Post subject: Reply with quote

I don't understand what's happening! When I give a command about gspca I receive that gspca does not exist in /proc/modules!!
Do I still use the old kernel? I'm not so exprerienced in kernel issues and maybe I make something wrong.
Those are the kernels that I have:
Code:
drphibes drphibes # cd /usr/src/linux
drphibes linux # cd /boot
drphibes boot # ls
System.map-2.6.31-gentoo-r6
System.map-2.6.31-gentoo-r6.old
System.map-genkernel-x86-2.6.30-gentoo-r8
System.map-genkernel-x86-2.6.31-gentoo-r6
boot
bzImage-2.6.31-gentoo-r6
config-2.6.31-gentoo-r6
config-2.6.31-gentoo-r6.old
grub
initramfs-genkernel-x86-2.6.30-gentoo-r8
initramfs-genkernel-x86-2.6.31-gentoo-r6
kernel-genkernel-x86-2.6.30-gentoo-r8
kernel-genkernel-x86-2.6.31-gentoo-r6
lost+found
vmlinuz-2.6.31-gentoo-r6
vmlinuz-2.6.31-gentoo-r6.old
drphibes boot #
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Fri Dec 11, 2009 1:34 pm    Post subject: Reply with quote

Well, I made a little progress here.
I found the new kernel and booted my PC from it.
With
Code:
lsusb

I see my camera, but its light is off!
I tested "Cheese" and I had no error message, but I see no image yet! Same with aMSN.
At aMSN's sound and video config, I have:
Code:
Device "v4l2: CIF Single Chip"
Channel: PAC207

At Ubuntu Ultimate, with the same camera, I have:
Code:
Device: v4l: Pixart PAC207-BCA
Channel: PAC207BCA

lsmod shows:
Code:
gspca_pac207
gspca_main
usbcore 111600  4 gspca_pac207,gspca_main,uhci_hcd

But:
When I give
Code:
./gspca_build

I receive the same message: Module gspca isn't at /proc/modules!!
And with
Code:
modprobe gspca

I have no luck!
What's going on?
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Dec 11, 2009 10:49 pm    Post subject: Reply with quote

not something silly like a permissions issue is it?

Code:

ls -alh /dev/video0


if it exists, are you in the 'video' group?

EDIT: shot in the dark, is USB_VIDEO_CLASS built (as a module), and does modprobe uvcvideo give you a /dev/video0 ?
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Dec 13, 2009 9:52 am    Post subject: Reply with quote

Well,

Code:
drphibes drphibes # ls -alh /dev/video0
crw-rw---- 1 root video 81, 0 Dec 13 09:23 /dev/video0


And I'm already in group video. :?

Quote:
EDIT: shot in the dark, is USB_VIDEO_CLASS built (as a module), and does modprobe uvcvideo give you a /dev/video0 ?


Sorry, I'm lost! :?:
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sun Dec 13, 2009 5:10 pm    Post subject: Reply with quote

rpil wrote:
Sorry, I'm lost! :?:


I think you need to read again what I said about libv4l and the message printed by portage after it's emerge in this thread.
Back to top
View user's profile Send private message
rpil
Guru
Guru


Joined: 23 May 2008
Posts: 314

PostPosted: Sun Dec 13, 2009 11:19 pm    Post subject: Reply with quote

You mean, this one?
ssuominen wrote:

Quote:

"libv4l includes wrapper libraries for compatibility and pixel format"
"conversion, which are especially useful for users of the gspca usb"
"webcam driver in kernel 2.6.27 and higher."

"To add v4l2 compatibility to a v4l application 'myapp', launch it via"
"LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so myapp"
"To add automatic pixel format conversion to a v4l2 application, use"
"LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so myapp"


replace "myapp" with e.g. cheese, camorama, mplayer, or whatever you are using... try different webcam apps, some might work, some might not


Do I must give at the terminal the "LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese"
and "LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so cheese"?
Is this what you mean?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum