gspca and kernel 2.6.24-16

Bug #218554 reported by Israel
This bug report is a duplicate of:  Bug #273727: gspca does not compile anymore. Edit Remove
4
Affects Status Importance Assigned to Milestone
gspca (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gspca-source

last gspca source with 2.6.24-16-generic lsusb -> Creative Technology, Ltd WebCam NX [PD1110] OK ls /dev/video*OK gspca OK but don't work (tested in amsn, kopete and camorama say:Could not connect to video device /dev/video0 Please check connection, checked is OK) on old kernel it webcam working... any bug its on new kernel .16

Revision history for this message
Israel (israel2k9) wrote :

the driver compiled is official gspcav1-20071224 and the gspca-source don't working:

sudo m-a a-i gspca

or

root@israel-desktop:/usr/src/modules/gspca# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.24-16-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/src/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Pare.
make[1]: ** [_module_/usr/src/modules/gspca] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-16-generic'
make: ** [default] Erro 2

or

root@israel-desktop:/usr/src/modules/gspca# ./gspca_build

 REMOVE the old module if present
ERROR: Module gspca is in use (fake)

 CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
 .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
 *.symvers *.err

 COMPILE gspca Please Wait ....!!

 INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: impossível fazer stat em `gspca.ko': Arquivo ou diretório inexistente
make: ** [install] Erro 1

 LOAD gspca in memory

 PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.24-16-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/src/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Pare.
make[1]: ** [_module_/usr/src/modules/gspca] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-16-generic'
make: ** [default] Erro 2
root@israel-desktop:/usr/src/modules/gspca#

i am so sorry by my bad very much bad english.

Revision history for this message
Israel (israel2k9) wrote :

gspca add blacklist
and reboot,
now:

root@israel-desktop:/usr/src/modules/gspca# make clean
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
 .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
 *.symvers *.err
root@israel-desktop:/usr/src/modules/gspca# ./gspca_build

 REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

 CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
 .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
 *.symvers *.err

 COMPILE gspca Please Wait ....!!

 INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: impossível fazer stat em `gspca.ko': Arquivo ou diretório inexistente
make: ** [install] Erro 1

 LOAD gspca in memory

 PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.24-16-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/usr/src/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Pare.
make[1]: ** [_module_/usr/src/modules/gspca] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-16-generic'
make: ** [default] Erro 2
root@israel-desktop:/usr/src/modules/gspca#

Revision history for this message
Israel (israel2k9) wrote :

root@israel-desktop:/usr/src/modules/gspca# make
make-new -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make-new[1]: Entrando no diretório `/usr/src/linux-headers-2.6.24-16-generic'
  CC [M] /usr/src/modules/gspca/gspca_core.o
/usr/src/modules/gspca/gspca_core.c:35: erro: ‘GSPCA_VERSION’ undeclared here (not in a function)
In file included from /usr/src/modules/gspca/gspca_core.c:811:
/usr/src/modules/gspca/Sunplus/spca561.h: Na função ‘spca561_start’:
/usr/src/modules/gspca/Sunplus/spca561.h:583: erro: ‘compress’ undeclared (first use in this function)
/usr/src/modules/gspca/Sunplus/spca561.h:583: erro: (Each undeclared identifier is reported only once
/usr/src/modules/gspca/Sunplus/spca561.h:583: erro: for each function it appears in.)
/usr/src/modules/gspca/gspca_core.c: No nivel superior:
/usr/src/modules/gspca/gspca_core.c:2567: erro: unknown field ‘hardware’ specified in initializer
/usr/src/modules/gspca/gspca_core.c:2567: erro: ‘VID_HARDWARE_GSPCA’ undeclared here (not in a function)
/usr/src/modules/gspca/gspca_core.c:2567: erro: elemento inicializador não é constante
/usr/src/modules/gspca/gspca_core.c:2567: erro: (near initialization for ‘spca50x_template.type2’)
/usr/src/modules/gspca/gspca_core.c: Na função ‘cd_to_spca50x’:
/usr/src/modules/gspca/gspca_core.c:2616: aviso: initialization from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c: Na função ‘spca50x_create_sysfs’:
/usr/src/modules/gspca/gspca_core.c:2655: aviso: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2657: aviso: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2659: aviso: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2665: aviso: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2667: aviso: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2669: aviso: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
make-new[2]: ** [/usr/src/modules/gspca/gspca_core.o] Erro 1
make-new[1]: ** [_module_/usr/src/modules/gspca] Erro 2
make-new[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-16-generic'
make-new: ** [default] Erro 2
root@israel-desktop:/usr/src/modules/gspca#

Revision history for this message
Israel (israel2k9) wrote :

compiled 100% the official and with erro in rmmod and not working on modprobe only load, no more Vs gspca-source 0 % compiled

root@israel-desktop:/usr/src/gspcav1-20071224# ./gspca_build

 REMOVE the old module if present

 CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
 .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
 *.symvers *.err

 COMPILE gspca Please Wait ....!!

 INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
/sbin/depmod -ae

 LOAD gspca in memory

 PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/gspcav1-20071224 CC=cc modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.24-16-generic'
  CC [M] /usr/src/gspcav1-20071224/gspca_core.o
  CC [M] /usr/src/gspcav1-20071224/decoder/gspcadecoder.o
  LD [M] /usr/src/gspcav1-20071224/gspca.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC /usr/src/gspcav1-20071224/gspca.mod.o
  LD [M] /usr/src/gspcav1-20071224/gspca.ko
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-16-generic'
root@israel-desktop:/usr/src/gspcav1-20071224#
root@israel-desktop:/usr/src/gspcav1-20071224# cd /lib/modules/`uname -r`/kernel/drivers/usb/media/
root@israel-desktop:/lib/modules/2.6.24-16-generic/kernel/drivers/usb/media# dir
gspca.ko
root@israel-desktop:/lib/modules/2.6.24-16-generic/kernel/drivers/usb/media# rmmod gspca
root@israel-desktop:/lib/modules/2.6.24-16-generic/kernel/drivers/usb/media# rmmod gspca
ERROR: Module gspca does not exist in /proc/modules
root@israel-desktop:/lib/modules/2.6.24-16-generic/kernel/drivers/usb/media# modprobe gspca
root@israel-desktop:/lib/modules/2.6.24-16-generic/kernel/drivers/usb/media# rmmod gspca
ERROR: Module gspca is in use
root@israel-desktop:/lib/modules/2.6.24-16-generic/kernel/drivers/usb/media# rmmod gspca
ERROR: Module gspca is in use

Revision history for this message
Israel (israel2k9) wrote :

I found the problem, is related to the same error found with ndiswrapper in kernel 2.6.24. The error is the following one: when compiling I modulate it, will only working in the first execution after to compile, exactly that it places the module to initiate with the system, it will not worked, exactly that the command uses modprobe gspca will not load, and if to try to remove the module with rmmod it will say that is in use, and alone he removes when installing, as in log above, therefore the problem is this for that I observed: it loads another together module, another module that requires it, and of the one not to use the command rmmod therefore is necessary for the other module, and this another module that I do not know which am, am what he makes it not to function, gspca, and in the first execution, gspca does not load this another module. ai is bug, waits that it understands, of this time used the Babel translator fish. hehehehehehhee

make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-16-generic' (module loaded with sucesso, no error, gspca with the script of installation ./gspca_build, only it once with sucess, later no)
root@israel-desktop:/usr/src/gspcav1-20071224# rmmod gspca (removed with sucess)
root@israel-desktop:/usr/src/gspcav1-20071224# rmmod gspca (Module gspca does not exist)
ERROR: Module gspca does not exist in /proc/modules
root@israel-desktop:/usr/src/gspcav1-20071224# modprobe gspca (loaded by me or on /etc/modules)
root@israel-desktop:/usr/src/gspcav1-20071224# rmmod gspca (error)
ERROR: Module gspca is in use
root@israel-desktop:/usr/src/gspcav1-20071224# rmmod gspca (error again)
ERROR: Module gspca is in use
root@israel-desktop:/usr/src/gspcav1-20071224#

and again; gspca-source not work have error no compilation, no work

Revision history for this message
Israel (israel2k9) wrote :

i solved part of problem of gspca offial, but no result for gspca-source.deb:

cd /usr/src/gspcav1-20071224

make >& kgspca.err (command super necessary, without not have no work)
rmmod gspca (sucess removed)
modprobe gspca (loaded with sucess)
result - 100% working in any program

reboot the system; not loaded;
solved: make a script with:

sudo make >& kgspca.err
sudo rmmod gspca # (sucess removed)
sudo modprobe gspca # (loaded with sucess)

Revision history for this message
Andres Mujica (andres.mujica) wrote :

Hi, Israel. Are you having this issue with latest intrepid fully updated?

At this moment gspca is being merged with linux kernel so is better to check bugs within merged drivers.

so please take a look into the bugs: bug #292086, bug #144745 and bug #260918

Revision history for this message
Andres Mujica (andres.mujica) wrote :

in the meantime i'm marking this as dupe from bug #273727.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.