LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2008, 02:23 PM   #1
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Rep: Reputation: 111Reputation: 111
gspca module and webcam with 2.6.21.5 kernel


I am a bit puzzled here. Using Slack-12 I cannot get a Logitech Quickam II to work.

I'm running on a 2.6.21.5 kernel and had used Alien Bob's slack build from www.slackware.com/~alien to build/install the gspca module but this does not work.

I had also tried a compile of this module from source. The gspca compile log shows no errors when compiling but I get the same results.

The camera is recognised when plugged in and the module is loaded but syslog indicates something is wrong

Quote:
Jan 21 06:15:08 rick kernel: kernel BUG at fs/sysfs/file.c:497!
Jan 21 06:15:08 rick kernel: invalid opcode: 0000 [#1]
Jan 21 06:15:08 rick kernel: Modules linked in: gspca snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss ipv6 nfs lockd sunrpc sg capability commoncap lp parport_pc parport pcspkr psmouse nvidia(P) serio_raw dvb_pll mt352 via_rhine cx88_dvb mii cx88_vp3054_i2c video_buf_dvb dvb_core cx8802 cx8800 cx88xx ir_common i2c_algo_bit tveeprom videodev compat_ioctl32 v4l1_compat v4l2_common btcx_risc via_agp i2c_viapro video_buf agpgart i2c_core ehci_hcd ata_generic uhci_hcd snd_cmipci gameport snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore shpchp pata_via evdev jfs reiserfs
Jan 21 06:15:08 rick kernel: CPU: 0
Jan 21 06:15:08 rick kernel: EIP: 0060:[<c01939ab>] Tainted: P VLI
I'll post the complete error message below.

Other symptoms are that The system will hang the minute I try to access the camera as a device. I will loose my mouse/keyboard and LED's, e.g. Caps Lock, etc. begin to blink.

The camera is being recognised correctly according to spacview probe output before the hang.

If camera is plugged in at boot, the boot process hangs at udev probe.

This camera had been working on two computers in our home running slack-11 but I cannot remember what driver I compiled to run it except that it was from a French site so probably it was gspca.

Other things woth mentioning is that this camera is registered as /dev/v4l/video1 as I also have a dvb-t card which sets up first as video0 and I am running with a nvidia driver compiles for GeForce FX 5200 which is working fine.

TIA for any comment on the above.

Complete syslog entry follows:
Quote:
Jan 21 06:15:08 rick kernel: ------------[ cut here ]------------
Jan 21 06:15:08 rick kernel: kernel BUG at fs/sysfs/file.c:497!
Jan 21 06:15:08 rick kernel: invalid opcode: 0000 [#1]
Jan 21 06:15:08 rick kernel: Modules linked in: gspca snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss ipv6 nfs lockd sunrpc sg capability commoncap lp parport_pc parport pcspkr psmouse nvidia(P) serio_raw dvb_pll mt352 via_rhine cx88_dvb mii cx88_vp3054_i2c video_buf_dvb dvb_core cx8802 cx8800 cx88xx ir_common i2c_algo_bit tveeprom videodev compat_ioctl32 v4l1_compat v4l2_common btcx_risc via_agp i2c_viapro video_buf agpgart i2c_core ehci_hcd ata_generic uhci_hcd snd_cmipci gameport snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore shpchp pata_via evdev jfs reiserfs
Jan 21 06:15:08 rick kernel: CPU: 0
Jan 21 06:15:08 rick kernel: EIP: 0060:[<c01939ab>] Tainted: P VLI
Jan 21 06:15:08 rick kernel: EFLAGS: 00010246 (2.6.21.5 #1)
Jan 21 06:15:08 rick kernel: EIP is at sysfs_create_file+0xb/0x20
Jan 21 06:15:08 rick kernel: eax: f16a9db8 ebx: f40c8000 ecx: 00000000 edx: fbf4ac94
Jan 21 06:15:08 rick kernel: esi: f16a9db0 edi: f40c8000 ebp: f787ae00 esp: f1931e18
Jan 21 06:15:08 rick kernel: ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
Jan 21 06:15:08 rick kernel: Process modprobe (pid: 3054, ti=f1930000 task=f191a530 task.ti=f1930000)
Jan 21 06:15:08 rick kernel: Stack: fbf1acc0 c01953bb 0000a1ff 00000020 00000120 00000078 f40c8000 00000160
Jan 21 06:15:08 rick kernel: f787ae00 fbf358c0 f1913360 fbf358ec c02c730a f787ae18 00000000 c02491d9
Jan 21 06:15:08 rick kernel: fbf358ec c0249329 f787ae64 f787ae64 f787aebc f787ae18 00000000 fbf358ec
Jan 21 06:15:08 rick kernel: Call Trace:
Jan 21 06:15:08 rick kernel: [<fbf1acc0>] spca5xx_probe+0x430/0x570 [gspca]
Jan 21 06:15:08 rick kernel: [<c01953bb>] sysfs_create_link+0x6b/0x150
Jan 21 06:15:08 rick kernel: [<c02c730a>] usb_probe_interface+0x5a/0x90
Jan 21 06:15:08 rick kernel: [<c02491d9>] really_probe+0x59/0x170
Jan 21 06:15:08 rick udevd-event[3052]: run_program: '/sbin/modprobe' abnormal exit
Jan 21 06:15:08 rick kernel: [<c0249329>] driver_probe_device+0x39/0xc0
Jan 21 06:15:08 rick kernel: [<c0249460>] __driver_attach+0x0/0x80
Jan 21 06:15:08 rick kernel: [<c02494d6>] __driver_attach+0x76/0x80
Jan 21 06:15:08 rick kernel: [<c02486e8>] bus_for_each_dev+0x38/0x70
Jan 21 06:15:08 rick kernel: [<c0249086>] driver_attach+0x16/0x20
Jan 21 06:15:08 rick kernel: [<c0249460>] __driver_attach+0x0/0x80
Jan 21 06:15:08 rick kernel: [<c0248a5a>] bus_add_driver+0x6a/0x1b0
Jan 21 06:15:08 rick kernel: [<c02c6dd7>] usb_register_driver+0x77/0x100
Jan 21 06:15:08 rick kernel: [<c014ffee>] __vunmap+0x5e/0xf0
Jan 21 06:15:08 rick kernel: [<fa6d4017>] usb_spca5xx_init+0x17/0x49 [gspca]
Jan 21 06:15:08 rick kernel: [<c01378bc>] sys_init_module+0xfc/0x15d0
Jan 21 06:15:08 rick kernel: [<c0103ec0>] syscall_call+0x7/0xb
Jan 21 06:15:08 rick kernel: =======================
Jan 21 06:15:08 rick kernel: Code: cc 80 89 04 24 89 d9 31 d2 89 f8 e8 00 0b 00 00 89 c3 eb be 8d b6 00 00 00 00 8d bf 00 00 00 00 85 c0 74 07 8b 48 30 85 c9 75 04 <0f> 0b eb fe 85 d2 74 f8 8b 40 30 b9 04 00 00 00 e9 60 ff ff ff
Jan 21 06:15:08 rick kernel: EIP: [<c01939ab>] sysfs_create_file+0xb/0x20 SS:ESP 0068:f1931e18
 
Old 01-20-2008, 02:46 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,452

Rep: Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711
Hi

It looks as if you are running a 2.6.21.5 kernel, i.e. the non-SMP version?
Slackware's default kernel is 2.6.21.5-smp which is what my package contains a module for.
If you want to compile new kernel modules using the kernel sources that were installed into /usr/src/linux-2.6.21.5 and you are running a non-SMP kernel, you will first have to apply the patch in the "non-SMP SDK" as Pat calls it: look in the /extra/linux-2.6.21.5-nosmp-sdk/ directory on your DVD or CD, or online at http://slackware.osuosl.org/slackwar...1.5-nosmp-sdk/ for instance .

If you are running a non-SMP kernel and try to build a kernel module using the default kernel source as installed by Slackware, all kinds of runtime errors will occur when you load your kernel module unless you have applied that patch first.

Eric
 
Old 01-20-2008, 03:38 PM   #3
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
Thanks for the reply.

I believe I applied that patch before I compiled my nvidia driver. It was my understanding I would not be able to complile the nvidia driver unless that patch was first applied.

I had thought about switching back to the smp kernel but did not do so last night.

Your package does install in the smp kernel's modules tree, my compiles from both your slack build and my build from source installed in my 2.6.11.5 modules tree.

Perhaps I should patch again in case I missed something along the way and the nvidia compile was just lucky.
 
Old 01-20-2008, 03:41 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,452

Rep: Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711Reputation: 7711
I actually use the gspcav1 driver for my Logitech Web Cam so I know the package is OK. Somehow your compilation seems to fail.

Eric
 
Old 01-20-2008, 04:09 PM   #5
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
I would expect the problem to be at my end and not with your craftnmanship.

I can't do much more until I get back home tonight.

BTW what is the patch in you slacbuild directory for (not the one on the install sisk)? I just put in in my build directory with source, slackbuild, etc. Should that have been applied separately?
 
Old 01-22-2008, 06:45 PM   #6
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
I had the quickcam express working with alien bob's package last night using the smp kernel. I don't know why I could not compile with the generic kernel after having compiled both nvidia driver and dvb-t modules using that source patched as per Pat's instructions but not the gspca driver.

My daughter uses the webcam with amsn so I'll just switch her box over to the smp kernel and be done with it although I'll have to compile her a new nvidia driver.

Last edited by justwantin; 01-22-2008 at 06:48 PM.
 
Old 01-25-2008, 04:24 AM   #7
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
Since I switched to the smp kernel I know had to compile new dvb-t modules using the v4l-dvb source from linuxtv.org

Once the new modules were installed and my dvb-t card was being recognised, modules loaded, and devices created I began getting the same hang at boot and the same error messages as I was getting befor with the gspca driver and my generic 2.6.11.5 kernel.

So it seems it was not my generic source but some sort of incompatability with the gspca modules and what is built and installed with v4l-dvb source.

Maybe this explains why there wasn't a problem with Slack-11. Dvb nodules in that 2.6 kernel wouled with my cards and I didn't have roll my own with the v4l-dvb package.

I'll have to check out current with dvb-t card and webcam to see if there is any difference. The current kernel is fine with my dvb cards/modules.
 
Old 02-03-2008, 05:30 PM   #8
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 6,488
Blog Entries: 1

Rep: Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831
I just installed Alien Bob's gspca package and zip... nothing.

Read the "readme" and tried running the command, gspcagui etc.
but get the error message, "command not found."

Ran lsmod and it is not list as loaded module.

Yes, I'm running the default Slackware 12 smp kernel.
video4linux is in the xorg.conf file and I'm running the latest Ati drivers

So, now that I have it and it is installed (I think), what is the next step?

Many Thanks.
 
Old 02-03-2008, 05:55 PM   #9
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
The gspcagui ap is not in that package and does not appear to be included in the most current source.

As root "lsusb" will tell you if the webcam is recognised after plugging it in. "lsmod | grep gspca" should tell you if the gspca module had been loaded.

If the webcam is plugged in a device named /de/v4l/video0 will be created automatically by udev. If this is the second video device, e.g. you already have a tv card installed, the webcam device will be video1, etc.

KDE comes with a chat program called Kopete. Open up that and go to the configuration for webcam. I can't remember exactly what it looks like but if there is a device registered, Kopete should find it. You will get a preview of whatever is being captured in this configuration window.
 
Old 02-03-2008, 06:51 PM   #10
KillerOfGiants
LQ Newbie
 
Registered: Feb 2004
Location: BG
Distribution: Slackware-current
Posts: 29

Rep: Reputation: 15
@cwizardone:
Its called spcagui not gspcagui.Thats why you are getting "command not found".
 
Old 02-03-2008, 07:10 PM   #11
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 6,488
Blog Entries: 1

Rep: Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831
Quote:
Originally Posted by KillerOfGiants View Post
@cwizardone:
Its called spcagui not gspcagui.Thats why you are getting "command not found".
From the readme file:
"The project born with spca50x for Sunplus chipset become spca5xx to support a large range of chipset,
and is now set as gspca. GSPCA mean "Generic Software Package for Camera Adaptator"."

and

"Plug your webcam and run gspcagui -d /dev/video0 adjust video0 to your hardware"
 
Old 02-03-2008, 07:21 PM   #12
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 6,488
Blog Entries: 1

Rep: Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831
Quote:
Originally Posted by justwantin View Post
...As root "lsusb" will tell you if the webcam is recognised after plugging it in. "lsmod | grep gspca" should tell you if the gspca module had been loaded.
Thanks. As I get taken to a blank command line when running,
"lsmod | grep" the module is not being loaded.
 
Old 02-04-2008, 02:52 AM   #13
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
OK,

Did you run lsmod to see if your camera is recognised as a usb device?

Quote:
root@rick:/home/rick# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 002: ID 046d:0928 Logitech, Inc. Quickcam Express
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Did you run the complete lsmod command with the module name?

Quote:
root@rick:/home/rick# lsmod | grep gspca
gspca 682192 0
videodev 29696 3 gspca,cx8800,cx88xx
Have you checked to see if you have any video devices?

Quote:
root@rick:/home/rick# ls -l /dev/v4l
total 0
crw-rw---- 1 root video 81, 224 2008-02-04 19:00 vbi0
crw-rw---- 1 root video 81, 0 2008-02-04 19:00 video0
crw-rw---- 1 root video 81, 1 2008-02-04 19:17 video1
Note that my video0 is a TV card and the video1 is the webcam. There will also be a sym link /dev/videoX that points to the actual device in the /dev/v4l directory.

Quote:
root@rick:/home/rick# ls -l /dev/video1
lrwxrwxrwx 1 root root 10 2008-02-04 19:17 /dev/video1 -> v4l/video1
If you have installed alien bob's package you should have the module installed in /lib/modules/2.6.23.1-smp/kernel/drivers/usb/media

Quote:
root@rick:/home/rick# ls -l /lib/modules/2.6.23.1-smp/kernel/drivers/usb/media
total 380
-rw-r--r-- 1 root root 389007 2008-02-04 19:16 gspca.ko
Finally, note the permissions for the video devices. A user will have to belong to the video group to be able to access them.
 
Old 02-04-2008, 03:18 PM   #14
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 6,488
Blog Entries: 1

Rep: Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831Reputation: 3831
Quote:
Originally Posted by justwantin View Post
OK,Did you run lsmod to see if your camera is recognised as a usb device?
Yes, running lsusb shows:
Bus 3 Device 2: ID 0620:0004 Alaris, Inc.

Quote:
Originally Posted by justwantin View Post
Did you run the complete lsmod command with the module name?
Yes, both with and without, and it is not loaded.

Quote:
Originally Posted by justwantin View Post
Have you checked to see if you have any video devices?
Note that my video0 is a TV card and the video1 is the webcam. There will also be a sym link /dev/videoX that points to the actual device in the /dev/v4l directory.
None shown:
/dev# ls -l /dev/v4l
total 0

Quote:
Originally Posted by justwantin View Post
If you have installed alien bob's package you should have the module installed in /lib/modules/2.6.23.1-smp/kernel/drivers/usb/media
Yes, it is in:
/lib/modules/2.6.21.5-smp/kernel/drivers/usb/media/gspca.ko

Quote:
Originally Posted by justwantin View Post
Finally, note the permissions for the video devices. A user will have to belong to the video group to be able to access them.
Yes, they were added a long time ago.

Many Thanks.

Last edited by cwizardone; 02-04-2008 at 03:21 PM.
 
Old 02-04-2008, 07:35 PM   #15
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 836

Original Poster
Rep: Reputation: 111Reputation: 111
Note the following from my lsusb output:

Quote:
Bus 004 Device 002: ID 046d:0928 Logitech, Inc. Quickcam Express
and the different output when you ran lsusb:

Quote:
Bus 3 Device 2: ID 0620:0004 Alaris, Inc.
Note that the set of hexidecimal ID numbers are different. also that the manufacturer is different.

The gspca module works with my webcam but your webcam is not the same as mine. You will have to check again as to whether your webcam will work with this module. There is a table somewhere out there on the web that will list what webcams work/don't work based on those ID numbers.
 
  


Reply

Tags
gspca, webcam


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snooped webcam to use in gspca. Where to put snooped results now? fredzz2 Programming 3 09-04-2007 07:41 AM
compiling a webcam kernel module fakie_flip Linux - Software 3 12-31-2006 05:44 PM
Trouble installing webcam module Cage47 Linux - Kernel 0 12-17-2006 07:08 PM
webcam module squimmy Linux - Software 1 02-05-2006 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration