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 > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-11-2012, 08:04 AM
Jean-Francois Moine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

On Wed, 11 Jul 2012 10:02:27 +0300
Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
[snip]
> > wget http://moinejf.free.fr/gspca-2.15.18.tar.gz
> > tar -zxf gspca-2.15.18.tar.gz
> > cd gspca-2.15.18
> > make
>
> $ LC_ALL=C make
> make -C /lib/modules/3.5.0-rc6+/build
> M=/home/perkelix/gspca-2.15.18/build modules
> make: *** /lib/modules/3.5.0-rc6+/build: No such file or directory. Stop.
> make: *** [modules] Error 2

You need the linux headers of your running kernel to compile the tarball.

[snip]
> I don't recall Skype having required this in a long time. As I already
> said, until recently, the camera "just worked".

Good news!

[snip]
> > echo 0x1f > /sys/module/gspca_main/parameters/debug
> >
> > then, unplug/replug the webcam,
>
> No can do; this is an internal webcam.

No problem. As I want to know the sensor type, instead of cutting the
kernel messages starting from the webcam probe, please, filter them by
something like:

dmesg | fgrep gspca > gspca.txt

Thanks.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120711100436.2305b098@armhf
 
Old 07-11-2012, 10:21 AM
Martin-Éric Racine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

2012/7/11 Jean-Francois Moine <moinejf@free.fr>:
> On Wed, 11 Jul 2012 10:02:27 +0300
> Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
> [snip]
>> > wget http://moinejf.free.fr/gspca-2.15.18.tar.gz
>> > tar -zxf gspca-2.15.18.tar.gz
>> > cd gspca-2.15.18
>> > make
>>
>> $ LC_ALL=C make
>> make -C /lib/modules/3.5.0-rc6+/build
>> M=/home/perkelix/gspca-2.15.18/build modules
>> make: *** /lib/modules/3.5.0-rc6+/build: No such file or directory. Stop.
>> make: *** [modules] Error 2
>
> You need the linux headers of your running kernel to compile the tarball.

I installed them. That still doesn't fix it:

$ LC_ALL=C make
make -C /lib/modules/3.5.0-rc6+/build
M=/home/perkelix/gspca-2.15.18/build modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-rc6+'
/usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile:39:
/usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile_32.cpu: No such
file or directory
make[1]: *** No rule to make target
`/usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile_32.cpu'. Stop.
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-rc6+'
make: *** [modules] Error 2

--
Martin-Éric



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAPZXPQdJC5yCYY6YRzuKj-ukFLzbY_yUzbogzbDx1S0bL1GrgQ@mail.gmail.com">http://lists.debian.org/CAPZXPQdJC5yCYY6YRzuKj-ukFLzbY_yUzbogzbDx1S0bL1GrgQ@mail.gmail.com
 
Old 07-11-2012, 10:44 AM
Jean-Francois Moine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

On Wed, 11 Jul 2012 13:21:55 +0300
Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:

> I installed them. That still doesn't fix it:
>
> $ LC_ALL=C make
> make -C /lib/modules/3.5.0-rc6+/build
> M=/home/perkelix/gspca-2.15.18/build modules
> make[1]: Entering directory `/usr/src/linux-headers-3.5.0-rc6+'
> /usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile:39:
> /usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile_32.cpu: No such
> file or directory
> make[1]: *** No rule to make target

Strange. The file arch/x86/Makefile_32.cpu is in the linux 3.5.0 tree.
It should have been forgotten in the Debian package. You may copy it
from any other kernel source/header you have.

--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120711124441.346a86b3@armhf
 
Old 07-11-2012, 11:14 AM
Martin-Éric Racine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

2012/7/11 Jean-Francois Moine <moinejf@free.fr>:
> On Wed, 11 Jul 2012 13:21:55 +0300
> Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
>
>> I installed them. That still doesn't fix it:
>>
>> $ LC_ALL=C make
>> make -C /lib/modules/3.5.0-rc6+/build
>> M=/home/perkelix/gspca-2.15.18/build modules
>> make[1]: Entering directory `/usr/src/linux-headers-3.5.0-rc6+'
>> /usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile:39:
>> /usr/src/linux-headers-3.5.0-rc6+/arch/x86/Makefile_32.cpu: No such
>> file or directory
>> make[1]: *** No rule to make target
>
> Strange. The file arch/x86/Makefile_32.cpu is in the linux 3.5.0 tree.
> It should have been forgotten in the Debian package. You may copy it
> from any other kernel source/header you have.

That would be a bug in upstream GIT's built-in support for producing
Debian packages then.

Anyhow, after copying the missing file, the build successfully
launches then breaks as follow:

CC [M] /home/perkelix/gspca-2.15.18/build/ov534_9.o
/home/perkelix/gspca-2.15.18/build/ov534_9.c: In function ‘sd_init’:
/home/perkelix/gspca-2.15.18/build/ov534_9.c:1353:3: error: implicit
declaration of function ‘err’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/perkelix/gspca-2.15.18/build/ov534_9.o] Virhe 1
make[1]: *** [_module_/home/perkelix/gspca-2.15.18/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-rc6+'
make: *** [modules] Error 2

--
Martin-Éric



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAPZXPQcvGqPjeyZh=vHtbSOoA91Htsg6DeyYyhYLeDgay8GSB g@mail.gmail.com
 
Old 07-11-2012, 11:27 AM
Jean-Francois Moine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

On Wed, 11 Jul 2012 14:14:24 +0300
Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:

> CC [M] /home/perkelix/gspca-2.15.18/build/ov534_9.o
> /home/perkelix/gspca-2.15.18/build/ov534_9.c: In function ‘sd_init’:
> /home/perkelix/gspca-2.15.18/build/ov534_9.c:1353:3: error: implicit
> declaration of function ‘err’ [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
> make[2]: *** [/home/perkelix/gspca-2.15.18/build/ov534_9.o] Virhe 1
> make[1]: *** [_module_/home/perkelix/gspca-2.15.18/build] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-rc6+'
> make: *** [modules] Error 2

Sorry, I did not compile yet with kernel >= 3.4.

So, please, edit the file build/ov534_9.c (and possibly other sources),
changing the calls to 'err' to 'pr_err'.

--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120711132739.6b527a27@armhf
 
Old 07-11-2012, 12:01 PM
Martin-Éric Racine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

2012/7/11 Jean-Francois Moine <moinejf@free.fr>:
> On Wed, 11 Jul 2012 14:14:24 +0300
> Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
>
>> CC [M] /home/perkelix/gspca-2.15.18/build/ov534_9.o
>> /home/perkelix/gspca-2.15.18/build/ov534_9.c: In function ‘sd_init’:
>> /home/perkelix/gspca-2.15.18/build/ov534_9.c:1353:3: error: implicit
>> declaration of function ‘err’ [-Werror=implicit-function-declaration]
>> cc1: some warnings being treated as errors
>> make[2]: *** [/home/perkelix/gspca-2.15.18/build/ov534_9.o] Virhe 1
>> make[1]: *** [_module_/home/perkelix/gspca-2.15.18/build] Error 2
>> make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-rc6+'
>> make: *** [modules] Error 2
>
> Sorry, I did not compile yet with kernel >= 3.4.
>
> So, please, edit the file build/ov534_9.c (and possibly other sources),
> changing the calls to 'err' to 'pr_err'.

This was was required for both build/ov534_9.c and build/spca505.c to
build agaist 3.5.

Sure enough, this seems to fix support for this camera in both Cheese
and Skype. Hurray! :-)

Now, the only thing that remains is for this to be merged in the 3.5
tree, then backported to the 3.2 tree that is used for Debian's
upcoming Wheezy stable release (and for Ubuntu's recently released
Precise also).

Thanks again to everyone for the hand-holding!

Cheers!
Martin-Éric

PS: Jonathan, do you feel like investigating why
arch/x86/Makefile_32.cpu wasn't included in the
linux-headers-3.5.0-rc6+_3.5.0-rc6+-1_i386.deb package that was
generated by the 'make deb-pkg' target?



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAPZXPQeDKLAu13Qs-MhhxJEBrF-5620HNZDmPiH+4NRmkxx3Ag@mail.gmail.com">http://lists.debian.org/CAPZXPQeDKLAu13Qs-MhhxJEBrF-5620HNZDmPiH+4NRmkxx3Ag@mail.gmail.com
 
Old 07-11-2012, 12:19 PM
Jonathan Nieder
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

Martin-Éric Racine wrote:

> PS: Jonathan, do you feel like investigating why
> arch/x86/Makefile_32.cpu wasn't included in the
> linux-headers-3.5.0-rc6+_3.5.0-rc6+-1_i386.deb package that was
> generated by the 'make deb-pkg' target?

MAINTAINERS tells me that linux-kbuild@vger.kernel.org is the list
to contact. You might also want to cc the kernel team at
debian-kernel@lists.debian.org since there are likely to be some
familiar people among them.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120711121941.GA5574@burratino
 
Old 07-11-2012, 01:27 PM
Hans de Goede
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

Hi,

On 07/11/2012 02:01 PM, Martin-Éric Racine wrote:

2012/7/11 Jean-Francois Moine <moinejf@free.fr>:

On Wed, 11 Jul 2012 14:14:24 +0300
Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:


CC [M] /home/perkelix/gspca-2.15.18/build/ov534_9.o
/home/perkelix/gspca-2.15.18/build/ov534_9.c: In function ‘sd_init’:
/home/perkelix/gspca-2.15.18/build/ov534_9.c:1353:3: error: implicit
declaration of function ‘err’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/perkelix/gspca-2.15.18/build/ov534_9.o] Virhe 1
make[1]: *** [_module_/home/perkelix/gspca-2.15.18/build] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-rc6+'
make: *** [modules] Error 2


Sorry, I did not compile yet with kernel >= 3.4.

So, please, edit the file build/ov534_9.c (and possibly other sources),
changing the calls to 'err' to 'pr_err'.


This was was required for both build/ov534_9.c and build/spca505.c to
build agaist 3.5.

Sure enough, this seems to fix support for this camera in both Cheese
and Skype. Hurray! :-)


Ok, so it seems that increasing the bandwidth we claim for the camera
(which is what my suggested "return 2000 * 2000 * 120;" change does, helps
a bit, where as the changes to vc032x which are in Jean-Francois Moine's
gspca-2.15.18 tarbal fix the problem entirely, correct?



Now, the only thing that remains is for this to be merged in the 3.5
tree, then backported to the 3.2 tree that is used for Debian's
upcoming Wheezy stable release (and for Ubuntu's recently released
Precise also).


Well we first need to turn the changes made in gspca-2.15.18 into
a patch will which apply to the latest gspca tree:
http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/media-for_v3.6

And then apply them there, before the can be backported to older
kernels. Unfortunately I'm leaving for a week vacation Friday, and I
probably won't get around to this before then.

Jean-Francois, can you perhaps make a patch against my latest tree for
the poXXXX / PO3130 changes in your tarbal?

Regards,

Hans



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FFD7F48.6060905@redhat.com">http://lists.debian.org/4FFD7F48.6060905@redhat.com
 
Old 07-11-2012, 01:43 PM
Martin-Éric Racine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

2012/7/11 Hans de Goede <hdegoede@redhat.com>:
> On 07/11/2012 02:01 PM, Martin-Éric Racine wrote:
>>
>> 2012/7/11 Jean-Francois Moine <moinejf@free.fr>:
>>>
>>> On Wed, 11 Jul 2012 14:14:24 +0300
>>> Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:
>>>
>>>> CC [M] /home/perkelix/gspca-2.15.18/build/ov534_9.o
>>>> /home/perkelix/gspca-2.15.18/build/ov534_9.c: In function ‘sd_init’:
>>>> /home/perkelix/gspca-2.15.18/build/ov534_9.c:1353:3: error: implicit
>>>> declaration of function ‘err’ [-Werror=implicit-function-declaration]
>>>> cc1: some warnings being treated as errors
>>>> make[2]: *** [/home/perkelix/gspca-2.15.18/build/ov534_9.o] Virhe 1
>>>> make[1]: *** [_module_/home/perkelix/gspca-2.15.18/build] Error 2
>>>> make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-rc6+'
>>>> make: *** [modules] Error 2
>>>
>>>
>>> Sorry, I did not compile yet with kernel >= 3.4.
>>>
>>> So, please, edit the file build/ov534_9.c (and possibly other sources),
>>> changing the calls to 'err' to 'pr_err'.
>>
>>
>> This was was required for both build/ov534_9.c and build/spca505.c to
>> build agaist 3.5.
>>
>> Sure enough, this seems to fix support for this camera in both Cheese
>> and Skype. Hurray! :-)
>
>
> Ok, so it seems that increasing the bandwidth we claim for the camera
> (which is what my suggested "return 2000 * 2000 * 120;" change does, helps
> a bit, where as the changes to vc032x which are in Jean-Francois Moine's
> gspca-2.15.18 tarbal fix the problem entirely, correct?

As far as I can tell, yes, the modules in Jean-François' tarball work
as-is to fix the problem.

>> Now, the only thing that remains is for this to be merged in the 3.5
>> tree, then backported to the 3.2 tree that is used for Debian's
>> upcoming Wheezy stable release (and for Ubuntu's recently released
>> Precise also).
>
>
> Well we first need to turn the changes made in gspca-2.15.18 into
> a patch will which apply to the latest gspca tree:
> http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/media-for_v3.6
>
> And then apply them there, before the can be backported to older
> kernels. Unfortunately I'm leaving for a week vacation Friday, and I
> probably won't get around to this before then.
>
> Jean-Francois, can you perhaps make a patch against my latest tree for
> the poXXXX / PO3130 changes in your tarbal?

Noted. Hopefully, the Debian kernel team can contribute to the
backporting part, since it's needed for the upcoming stable release.

Martin-Éric



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAPZXPQfMrWySzx9aWqoZ7zwzw19p69nN6_fuwAHjZVqGLDBw@ mail.gmail.com
 
Old 07-11-2012, 05:18 PM
Jean-Francois Moine
 
Default Bug#677533: video: USB webcam fails since kernel 3.2

On Wed, 11 Jul 2012 16:43:47 +0300
Martin-Éric Racine <martin-eric.racine@iki.fi> wrote:

> > Jean-Francois, can you perhaps make a patch against my latest tree for
> > the poXXXX / PO3130 changes in your tarbal?
>
> Noted. Hopefully, the Debian kernel team can contribute to the
> backporting part, since it's needed for the upcoming stable release.

I had many problems with the vc032x driver, and the source code is very
different from the code in the official kernels.

As I have no webcam, Martin-Éric, may I ask you to test the backport
I will do? It will be done only in the vc032x driver, so you could keep
the working gspca_vc032x.ko file you have and restore it between the
tests. I still lack the sensor type of your webcam. May you send me the
result of:

dmesg | fgrep gspca

I'll contact you directly (with copy to Hans de Goede) as soon as I
will have something to propose.

Thanks by advance.

--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120711191835.1be1c8ef@armhf
 

Thread Tools




All times are GMT. The time now is 09:29 PM.

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