Тема: Web-камера Trust WB-3250p: как заставить ее рабтать в linux?
Добрый день, уважаемые форумчане!
Потеряв всякую надежду на самостоятельное решение проблемы функционирования камеры на дистрибутиве Debian 6.0, надеюсь на помощь сообщества!
Я изучал на различных форумах решения аналогичных вопросов (отличалась модель камеры), пробовал применять эти решения, но мои попытки оказались тщетны...
Описание проблемы
Камера распознается системой как Microdia PC Camera (SN9C120) с idVendor=0c45 и idProduct=613e
Система подгружает два модуля: gspca_main и gspca_sonixj
В /dev формируется файл video0, пользователь системы в группе video
При запуске cheese загорается световой индикатор на камере, в окне программы - чернота. При нажатии кнопки "Сделать снимок", программа делает отсчет и якобы фоткает... но ничего, кроме черноты нет...
В скайпе, в устройстве для видео выбрано (по-умолчанию): "USB Camera /dev/video0", однако при нажатии на кнопку "Проверить" опять то же самый черный квадрат...
Выводы различных команд прилагаю
$ dmesg
[11631.552053] usb 5-2: new full speed USB device using uhci_hcd and address 6
[11631.711061] usb 5-2: New USB device found, idVendor=0c45, idProduct=613e
[11631.711065] usb 5-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[11631.711068] usb 5-2: Product: USB camera
[11631.711180] usb 5-2: configuration #1 chosen from 1 choice
[11631.713126] gspca: probing 0c45:613e
[11631.719061] sonixj: Sonix chip id: 12
[11631.721145] gspca: probe ok
$ lsusb
Bus 005 Device 006: ID 0c45:613e Microdia PC Camera (SN9C120)
$ ls -l /dev | grep video
crw-rw---- 1 root video 10, 175 Июн 15 18:20 agpgart
crw-rw---- 1 root video 29, 0 Июн 15 18:20 fb0
crw-rw----+ 1 root video 81, 0 Июн 15 21:34 video0
$ camorama
(camorama:5368): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
libv4l2: error dequeuing buf: Ошибка ввода/вывода
# cd /home/maxm/Webcam/gspcav1-20071224
# ./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: невозможно выполнить stat для «gspca.ko»: Нет такого файла или каталога
make: *** [install] Ошибка 1
LOAD gspca in memory
FATAL: Module gspca not found.
PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/maxm/Webcam/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-686'
CC [M] /home/maxm/Webcam/gspcav1-20071224/gspca_core.o
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: Нет такого файла или каталога
In file included from /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:845:
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/maxm/Webcam/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/maxm/Webcam/gspcav1-20071224/gspca_core.c:853:
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: At top level:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/maxm/Webcam/gspcav1-20071224/gspca_core.c:4301: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’
make[4]: *** [/home/maxm/Webcam/gspcav1-20071224/gspca_core.o] Ошибка 1
make[3]: *** [_module_/home/maxm/Webcam/gspcav1-20071224] Ошибка 2
make[2]: *** [sub-make] Ошибка 2
make[1]: *** [all] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
make: *** [default] Ошибка 2
# lsmod
Module Size Used by
snd_seq_dummy 987 0
nls_cp437 4489 0
vfat 6570 0
fat 34912 1 vfat
mmc_block 6472 0
nls_utf8 908 0
isofs 24608 0
udf 62930 0
gspca_sonixj 14886 0
gspca_main 15775 1 gspca_sonixj
videodev 25545 1 gspca_main
v4l1_compat 10250 1 videodev
cpufreq_stats 1940 0
cpufreq_userspace 1480 0
cpufreq_conservative 4018 0
cpufreq_powersave 602 0
parport_pc 15799 0
ppdev 4058 0
lp 5570 0
parport 22554 3 parport_pc,ppdev,lp
sco 5857 2
bridge 33019 0
stp 996 1 bridge
bnep 7444 2
l2cap 21705 3 bnep
bluetooth 36319 5 sco,bnep,l2cap
binfmt_misc 4907 1
uinput 4796 1
fuse 44033 3
loop 9765 0
firewire_sbp2 9647 0
snd_hda_codec_idt 35293 1
snd_hda_codec_intelhdmi 9027 1
snd_hda_intel 16811 4
snd_hda_codec 46002 3 snd_hda_codec_idt,snd_hda_codec_intelhdmi,snd_hda_intel
snd_hwdep 4054 1 snd_hda_codec
snd_pcm 47226 3 snd_hda_intel,snd_hda_codec
snd_seq 35463 1 snd_seq_dummy
i915 222254 3
snd_timer 12258 3 snd_pcm,snd_seq
snd_seq_device 3673 2 snd_seq_dummy,snd_seq
arc4 974 2
drm_kms_helper 18309 1 i915
ecb 1405 2
drm 112088 4 i915,drm_kms_helper
snd 34375 15 snd_hda_codec_idt,snd_hda_codec_intelhdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
b43 132615 0
rng_core 2178 1 b43
i2c_i801 6462 0
i2c_algo_bit 3497 1 i915
joydev 6739 0
dell_laptop 1557 0
soundcore 3450 1 snd
video 14605 1 i915
mac80211 123574 1 b43
battery 3782 0
wmi 3575 0
ac 1640 0
button 3598 1 i915
dcdbas 3892 1 dell_laptop
snd_page_alloc 5045 2 snd_hda_intel,snd_pcm
pcspkr 1207 0
output 1204 1 video
i2c_core 12696 6 videodev,i915,drm_kms_helper,drm,i2c_i801,i2c_algo_bit
processor 26327 1
cfg80211 87661 2 b43,mac80211
psmouse 44657 0
rfkill 10264 5 bluetooth,dell_laptop,cfg80211
evdev 5609 17
serio_raw 2916 0
ext4 257803 2
mbcache 3762 1 ext4
jbd2 56155 1 ext4
crc16 1027 2 l2cap,ext4
usbhid 28008 0
hid 50893 1 usbhid
sg 15968 0
sr_mod 10770 0
cdrom 26487 1 sr_mod
sd_mod 25977 5
crc_t10dif 1012 1 sd_mod
ata_generic 2067 0
uhci_hcd 16057 0
ssb 33714 1 b43
sdhci_pci 4525 0
sdhci 12147 1 sdhci_pci
ata_piix 17736 0
pcmcia 16194 2 b43,ssb
thermal 9206 0
mmc_core 38665 4 mmc_block,b43,ssb,sdhci
ahci 27270 4
ricoh_mmc 2561 0
firewire_ohci 16725 0
firewire_core 31243 2 firewire_sbp2,firewire_ohci
crc_itu_t 1035 2 udf,firewire_core
led_class 1757 2 b43,sdhci
thermal_sys 9378 3 video,processor,thermal
ehci_hcd 27851 0
pcmcia_core 20450 3 b43,ssb,pcmcia
sky2 34040 0
libata 115753 3 ata_generic,ata_piix,ahci
scsi_mod 101429 5 firewire_sbp2,sg,sr_mod,sd_mod,libata
usbcore 98453 6 gspca_sonixj,gspca_main,usbhid,uhci_hcd,ehci_hcd
nls_base 4541 7 nls_cp437,vfat,fat,nls_utf8,isofs,udf,usbcore
$lsusb -v
Bus 005 Device 002: ID 0c45:613e Microdia PC Camera (SN9C120)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0c45 Microdia
idProduct 0x613e PC Camera (SN9C120)
bcdDevice 1.01
iManufacturer 0
iProduct 1 USB camera
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 279
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0080 1x 128 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 2
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0100 1x 256 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 3
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0180 1x 384 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 4
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 5
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x02a8 1x 680 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 6
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0320 1x 800 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 7
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0384 1x 900 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 8
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x03ff 1x 1023 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 100
Device Status: 0x0000
(Bus Powered)
Есть понимание, что нужно скорректировать драйвер gspca, скомпилировать его и установить в систему, но мои попытки пока безрезультатны...
Отредактировано maxm (2011-06-16 15:27:27)