Skip to contentSkip to conversation

kernel sources location and gspca module version

linux-dvb Stefano Sabatini 4 participants 6 messages Oct 16, 2008 – Oct 21, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm having this problem when trying to compile the modules for linux 2.6.26 on a Debian system:

|stefano@geppetto ~/s/v4l-dvb> make 
|make -C /home/stefano/src/v4l-dvb/v4l 
|make[1]: Entering directory `/home/stefano/src/v4l-dvb/v4l'
|No version yet, using 2.6.26-1-686
|make[1]: Leaving directory `/home/stefano/src/v4l-dvb/v4l'
|make[1]: Entering directory `/home/stefano/src/v4l-dvb/v4l'
|scripts/make_makefile.pl
|Updating/Creating .config
|Preparing to compile for kernel version 2.6.26
|
|***WARNING:*** You do not have the full kernel sources installed.
|This does not prevent you from building the v4l-dvb tree if you have the
|kernel headers, but the full kernel source may be required in order to use
|make menuconfig / xconfig / qconfig.
|
|If you are experiencing problems building the v4l-dvb tree, please try
|building against a vanilla kernel before reporting a bug.
|
|Vanilla kernels are available at http://kernel.org.
|On most distros, this will compile a newly downloaded kernel:

I'm on a Debian sytem with kernel and headers at version 2.6.26, so I suppose it should find the complete kernel tree.

|stefano@geppetto /l/modules> uname -a
|Linux geppetto 2.6.26-1-686 #1 SMP Thu Oct 9 15:18:09 UTC 2008 i686 GNU/Linux
|stefano@geppetto /l/modules> ls -l /lib/modules/
|total 36
|drwxr-xr-x 2 root root 4096 2008-10-14 20:08 2.6.21-2-686/
|drwxr-xr-x 4 root root 4096 2008-08-23 13:04 2.6.22-2-686/
|drwxr-xr-x 5 root root 4096 2008-10-13 08:57 2.6.22-3-486/
|drwxr-xr-x 3 root root 4096 2008-10-13 08:57 2.6.22-3-686/
|drwxr-xr-x 2 root root 4096 2008-09-24 20:11 2.6.24-etchnhalf.1-686/
|drwxr-xr-x 2 root root 4096 2008-09-24 20:12 2.6.25-2-486/
|drwxr-xr-x 3 root root 4096 2008-09-24 20:12 2.6.25-2-686/
|drwxr-xr-x 3 root root 4096 2008-10-15 11:29 2.6.26-1-486/
|drwxr-xr-x 4 root root 4096 2008-10-16 20:50 2.6.26-1-686/

Then when I attach a gspca webcam I get this output in dmesg:

|[43518.309407] usb 2-2: USB disconnect, address 10
|[43520.040151] usb 2-2: new full speed USB device using uhci_hcd and address 11
|[43520.231991] usb 2-2: configuration #1 chosen from 1 choice
|[43520.256243] usb 2-2: New USB device found, idVendor=046d, idProduct=08d9
|[43520.256243] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
|[43520.290979] Linux video capture interface: v2.00
|[43520.292764] gspca: disagrees about version of symbol video_devdata
|[43520.292773] gspca: Unknown symbol video_devdata
|[43520.293829] gspca: disagrees about version of symbol video_unregister_device
|[43520.293829] gspca: Unknown symbol video_unregister_device
|[43520.293829] gspca: disagrees about version of symbol video_device_alloc
|[43520.293829] gspca: Unknown symbol video_device_alloc
|[43520.293829] gspca: disagrees about version of symbol video_register_device
|[43520.293829] gspca: Unknown symbol video_register_device
|[43520.293829] gspca: disagrees about version of symbol video_usercopy
|[43520.293829] gspca: Unknown symbol video_usercopy
|[43520.293829] gspca: disagrees about version of symbol video_device_release
|[43520.293829] gspca: Unknown symbol video_device_release
|[43520.301833] gspca: main v2.3.0 registered
|[43520.301833] gspca: disagrees about version of symbol video_devdata
|[43520.301833] gspca: Unknown symbol video_devdata
|[43520.301833] gspca: disagrees about version of symbol video_unregister_device
|[43520.301833] gspca: Unknown symbol video_unregister_device
|[43520.301833] gspca: disagrees about version of symbol video_device_alloc
|[43520.301833] gspca: Unknown symbol video_device_alloc
|[43520.301833] gspca: disagrees about version of symbol video_register_device
|[43520.301833] gspca: Unknown symbol video_register_device
|[43520.301833] gspca: disagrees about version of symbol video_usercopy
|[43520.301833] gspca: Unknown symbol video_usercopy
|[43520.301833] gspca: disagrees about version of symbol video_device_release
|[43520.301833] gspca: Unknown symbol video_device_release
|[43520.307220] gspca: probing 046d:08d9
|[43521.944222] zc3xx: probe 2wr ov vga 0x0000
|[43521.987916] zc3xx: probe sensor -> 11
|[43521.987916] zc3xx: Find Sensor HV7131R(c)
|[43521.992836] gspca: probe ok
|[43521.992836] usbcore: registered new interface driver zc3xx
|[43521.992836] zc3xx: registered

Strangely enough I don't have the same problem when I try to load another module from the same v4l-dvb source.

I'm using 4vl-dvb mercurial.

I'll be grateful for any help you can provide.

Regards.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#1 lore raw

[linux-dvb] v4l-dvb gspca modules conflict with standalone gspca module

Quoted 83 lines · Stefano Sabatini

Hi all,

I'm having this problem when trying to compile the modules for linux 2.6.26 on a Debian system:

|stefano@geppetto ~/s/v4l-dvb> make 
|make -C /home/stefano/src/v4l-dvb/v4l 
|make[1]: Entering directory `/home/stefano/src/v4l-dvb/v4l'
|No version yet, using 2.6.26-1-686
|make[1]: Leaving directory `/home/stefano/src/v4l-dvb/v4l'
|make[1]: Entering directory `/home/stefano/src/v4l-dvb/v4l'
|scripts/make_makefile.pl
|Updating/Creating .config
|Preparing to compile for kernel version 2.6.26
|
|***WARNING:*** You do not have the full kernel sources installed.
|This does not prevent you from building the v4l-dvb tree if you have the
|kernel headers, but the full kernel source may be required in order to use
|make menuconfig / xconfig / qconfig.
|
|If you are experiencing problems building the v4l-dvb tree, please try
|building against a vanilla kernel before reporting a bug.
|
|Vanilla kernels are available at http://kernel.org.
|On most distros, this will compile a newly downloaded kernel:

I'm on a Debian sytem with kernel and headers at version 2.6.26, so I suppose it should find the complete kernel tree.

|stefano@geppetto /l/modules> uname -a
|Linux geppetto 2.6.26-1-686 #1 SMP Thu Oct 9 15:18:09 UTC 2008 i686 GNU/Linux
|stefano@geppetto /l/modules> ls -l /lib/modules/
|total 36
|drwxr-xr-x 2 root root 4096 2008-10-14 20:08 2.6.21-2-686/
|drwxr-xr-x 4 root root 4096 2008-08-23 13:04 2.6.22-2-686/
|drwxr-xr-x 5 root root 4096 2008-10-13 08:57 2.6.22-3-486/
|drwxr-xr-x 3 root root 4096 2008-10-13 08:57 2.6.22-3-686/
|drwxr-xr-x 2 root root 4096 2008-09-24 20:11 2.6.24-etchnhalf.1-686/
|drwxr-xr-x 2 root root 4096 2008-09-24 20:12 2.6.25-2-486/
|drwxr-xr-x 3 root root 4096 2008-09-24 20:12 2.6.25-2-686/
|drwxr-xr-x 3 root root 4096 2008-10-15 11:29 2.6.26-1-486/
|drwxr-xr-x 4 root root 4096 2008-10-16 20:50 2.6.26-1-686/

Then when I attach a gspca webcam I get this output in dmesg:

|[43518.309407] usb 2-2: USB disconnect, address 10
|[43520.040151] usb 2-2: new full speed USB device using uhci_hcd and address 11
|[43520.231991] usb 2-2: configuration #1 chosen from 1 choice
|[43520.256243] usb 2-2: New USB device found, idVendor=046d, idProduct=08d9
|[43520.256243] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
|[43520.290979] Linux video capture interface: v2.00
|[43520.292764] gspca: disagrees about version of symbol video_devdata
|[43520.292773] gspca: Unknown symbol video_devdata
|[43520.293829] gspca: disagrees about version of symbol video_unregister_device
|[43520.293829] gspca: Unknown symbol video_unregister_device
|[43520.293829] gspca: disagrees about version of symbol video_device_alloc
|[43520.293829] gspca: Unknown symbol video_device_alloc
|[43520.293829] gspca: disagrees about version of symbol video_register_device
|[43520.293829] gspca: Unknown symbol video_register_device
|[43520.293829] gspca: disagrees about version of symbol video_usercopy
|[43520.293829] gspca: Unknown symbol video_usercopy
|[43520.293829] gspca: disagrees about version of symbol video_device_release
|[43520.293829] gspca: Unknown symbol video_device_release
|[43520.301833] gspca: main v2.3.0 registered
|[43520.301833] gspca: disagrees about version of symbol video_devdata
|[43520.301833] gspca: Unknown symbol video_devdata
|[43520.301833] gspca: disagrees about version of symbol video_unregister_device
|[43520.301833] gspca: Unknown symbol video_unregister_device
|[43520.301833] gspca: disagrees about version of symbol video_device_alloc
|[43520.301833] gspca: Unknown symbol video_device_alloc
|[43520.301833] gspca: disagrees about version of symbol video_register_device
|[43520.301833] gspca: Unknown symbol video_register_device
|[43520.301833] gspca: disagrees about version of symbol video_usercopy
|[43520.301833] gspca: Unknown symbol video_usercopy
|[43520.301833] gspca: disagrees about version of symbol video_device_release
|[43520.301833] gspca: Unknown symbol video_device_release
|[43520.307220] gspca: probing 046d:08d9
|[43521.944222] zc3xx: probe 2wr ov vga 0x0000
|[43521.987916] zc3xx: probe sensor -> 11
|[43521.987916] zc3xx: Find Sensor HV7131R(c)
|[43521.992836] gspca: probe ok
|[43521.992836] usbcore: registered new interface driver zc3xx
|[43521.992836] zc3xx: registered
Quoted 6 lines

Strangely enough I don't have the same problem when I try to load another module from the same v4l-dvb source.

I'm using 4vl-dvb mercurial.

I'll be grateful for any help you can provide.

The problem seems to stem from some conflicts with the previous installation of a standalone gspca kernel already installed.

On debian I previously installed the gspca module using the usual module-assistant procedure (m-a a-i gspca), which generetes just one gspca.ko file.

When installing the v4l-dv package it install many gscpa related modules, which issue the "Unknown symbol" problem if the previous gspca modules hasn't been removed.

So removing the old gspca.ko module seems to be the right fix.

BTW I wonder why v4l-dvb includes the gspca modules, which seem to be related more to the gspca cameras than to DVB devices

Regards.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw

Re: [linux-dvb] v4l-dvb gspca modules conflict with standalone gspca module

2008/10/19 Stefano Sabatini <[email protected]>:

Quoted 6 lines

BTW I wonder why v4l-dvb includes the gspca modules, which seem to be related more to the gspca cameras than to DVB devices

Regards.

I wonder as well. The standalone driver works with my webcam, but the v4l-dvb one provokes a kernel panic on my system, after a short period of using it (or it used to; admittedly it's been quite a while -a few months- since I last tried).

Signature · 6 lines
           Román

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#3 lore raw

Re: [linux-dvb] v4l-dvb gspca modules conflict with standalone gspca module

Quoted 4 lines · Román

2008/10/19 Stefano Sabatini <[email protected]>:

Quoted 3 lines

BTW I wonder why v4l-dvb includes the gspca modules, which seem to be related more to the gspca cameras than to DVB devices

[...]

Quoted 4 lines

I wonder as well. The standalone driver works with my webcam, but the v4l-dvb one provokes a kernel panic on my system, after a short period of using it (or it used to; admittedly it's been quite a while -a few months- since I last tried).

For the archive: gspca based cameras finally stopped to work with the v4l-dvb modules on linux-2.6.26, reinstalling the kernel and the standalone module fixed it.

Please could the core devs clarify the situation for what regards gscpa modules in v4l-dvb?

Thanks, regards.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#4 lore raw

Re: [linux-dvb] v4l-dvb gspca modules conflict with standalone gspca module

Quoted 17 lines · Stefano Sabatini
Quoted 3 lines · Román

2008/10/19 Stefano Sabatini <[email protected]>:

Quoted 2 lines

BTW I wonder why v4l-dvb includes the gspca modules, which seem to be related more to the gspca cameras than to DVB devices

[...]

Quoted 4 lines

I wonder as well. The standalone driver works with my webcam, but the v4l-dvb one provokes a kernel panic on my system, after a short period of using it (or it used to; admittedly it's been quite a while -a few months- since I last tried).

For the archive: gspca based cameras finally stopped to work with the v4l-dvb modules on linux-2.6.26, reinstalling the kernel and the standalone module fixed it.

Please could the core devs clarify the situation for what regards gscpa modules in v4l-dvb?

Quoted 6 lines

Thanks, regards.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

Hello Stefano

The gspca module V1 was developed outside of the kernel tree. Therefor, it was possible to add "in kernel" video decompression/decoding, which is not allowed and not good to do in kernel space. But this was a great success to add more than 220 webcams to the Linux World.

Now, gspca V1 is moving to gspca V2 to support V4L2. Jean-Francois Moine ([email protected]) did a rewrite to support V4L2 with gspca. Thus, its called gspca V2. He removed all the not allowed decoding process which was done in kernel space with the old gspca.

Now, gspca V2 got included into the kernel! (Big step forward)

Hans de Goede ([email protected]) is writing a user space lib to convert/decode all the stuff which was done in the old gspca in kernel space, his lib does it now in user space. That's the way to go!

The development of this is rather new and I think it is not included in any distro at the moment. But it will be soon.

So, please drop the the old gspca V1 and help testing gspca V2!

BTW: gspca is in v4l-dvb because v4l is for analogue deceives and dvb is for digital devices. gspca fits perfect into v4l!

Thomas

PS: Pixart, but now free time to do more, sorry.

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#5 lore raw

Re: [linux-dvb] v4l-dvb gspca modules conflict with standalone gspca module

Quoted 8 lines · Thomas Kaiser

Hans de Goede ([email protected]) is writing a user space lib to convert/decode all the stuff which was done in the old gspca in kernel space, his lib does it now in user space. That's the way to go!

The development of this is rather new and I think it is not included in any distro at the moment. But it will be soon.

Well, gentoo already has it since october, 18th :)

Regards
Matthias

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb