Instalando WEB CAM + ARM DEBIAN LENNY + 2.6.24.4 Kernel

1. Instalando WEB CAM + ARM DEBIAN LENNY + 2.6.24.4 Kernel

reinaldo alves fagundes
reinaldoaf

(usa Debian)

Enviado em 19/09/2012 - 10:49h

Olá pessoal estou com um problema que não consigo de forma alguma contornar...
possuo placas da embeddedarm, (sem suporte a instalação da webcam, já entrei em contato varias vezes)
a placa é a ts 7500 http://wiki.embeddedarm.com/wiki/TS-7500 com a board TS752 http://wiki.embeddedarm.com/wiki/TS-752
funciona normalmente para a minha aplicação, porém agora surgiu a necessidade de instalar uma webcam e um placa de audio usb (depois da briga com a webcam)

o que acontece é que não consigo de forma alguma fazer ela funcionar, ja tentei drivers uvc, gspca, v4l eu sou bem iniciante em linux apesar de conhecer o sistema a muito tempo (a mais de 14anos), a câmera é identificada no lsusb, os drivers sobem criando o /dev/video0 o v4l-info trás informações sobre a câmera, não existe possibilidade de rodar o cheese pois o mesmo requer ambiente gráfico e o linux é embarcado.

gostaria da ajudar de vocês para vencer esse, que para mim esta sendo um grande desafio.

Abraços e obrigado
Reinaldo A. Fagundes

segue informações sobre..


ts7500:~# streamer -c /dev/video0 -b 16 -o teste.jpeg
files / video: JPEG (JFIF) / audio: none
no way to get: 320x240 JPEG (JFIF)
movie writer initialisation failed


ts7500:~# uname -r
2.6.24.4


dmesg da camera
[ 288.150000] usb 1-1: new high speed USB device using str8100-ehci and address 2
[ 288.390000] usb 1-1: configuration #1 chosen from 1 choice
[ 291.540000] Linux video capture interface: v2.00
[ 291.540000] WARNING: You're using an obsolete driver! You shouldn't be using it!
[ 291.540000] If you want anything new, you can use http://git.linuxtv.org/media_build.git.
[ 291.540000] The tree is still here just to preserve the development history.
[ 292.580000] uvcvideo: Found UVC 1.00 device USB2.0_Camera (093a:2700)
[ 292.650000] input: USB2.0_Camera as /class/input/input0
[ 292.650000] usbcore: registered new interface driver uvcvideo
[ 292.650000] USB Video Class driver (v0.1.0)
[ 298.600000] usbcore: registered new interface driver snd-usb-audio


ts7500:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB2.0_Camera"
bus_info : "usb-str8100-ehci-1"
version : 0.1.0
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []

video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 0
description : "YUV 4:2:2 (YUYV)"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 640
fmt.pix.height : 480
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
fmt.pix.bytesperline : 1280
fmt.pix.sizeimage : 614400
fmt.pix.colorspace : SRGB
fmt.pix.priv : 0

controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "Brightness"
minimum : 0
maximum : 255
step : 1
default_value : 125
flags : 0
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 100
step : 1
default_value : 65
flags : 0
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "Saturation"
minimum : 0
maximum : 200
step : 1
default_value : 168
flags : 0
VIDIOC_QUERYCTRL(BASE+3)
id : 9963779
type : INTEGER
name : "Hue"
minimum : -180
maximum : 180
step : 1
default_value : 0
flags : 0

### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "USB2.0_Camera"
type : 0x1 [CAPTURE]
channels : 1
audios : 0
maxwidth : 640
maxheight : 480
minwidth : 48
minheight : 32

channels
VIDIOCGCHAN(0)
channel : 0
name : "Camera 1"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
VIDIOCGPICT
brightness : 32125
hue : 32768
colour : 55049
contrast : 42598
whiteness : 10923
depth : 16
palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
VIDIOCGWIN
x : 0
y : 0
width : 640
height : 480
chromakey : 0
flags : 0



ts7500:~# ls /dev/v
v4l/ video0



ts7500:~# v4l2-ctl --list-devices
USB2.0_Camera (usb-str8100-ehci-1):
/dev/video0




ts7500:~# v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : USB2.0_Camera
Bus info : usb-str8100-ehci-1
Driver version: 0.1.0
Capabilities : 0x04000001
Video Capture
Streaming
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'YUYV'
Field : None
Bytes per Line: 1280
Size Image : 614400
Colorspace : SRGB
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 640, Height 480
Default : Left 0, Top 0, Width 640, Height 480
Pixel Aspect: 1/1
Video input : 0 (Camera 1: ok)
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 10.000 (10/1)
Read buffers : 0





  


2. Re: Instalando WEB CAM + ARM DEBIAN LENNY + 2.6.24.4 Kernel

reinaldo alves fagundes
reinaldoaf

(usa Debian)

Enviado em 19/09/2012 - 10:56h

esqueci uma informação



ts7500:~# hwinfo | grep -i Pixart -A 10 -B 3
bDeviceProtocol = 1
idVendor = 0x093a
idProduct = 0x2700
manufacturer = "PixArt Imaging Inc."
product = "USB2.0_Camera"
bcdDevice = 0100
speed = "480"
usb device: name = 1-1:1.2
path = /devices/platform/str8100-ehci/usb1/1-1/1-1:1.2
modalias = "usb:v093Ap2700d0100dcEFdsc02dp01ic01isc01ip00"
bInterfaceNumber = 2
bInterfaceClass = 1
bInterfaceSubClass = 1
bInterfaceProtocol = 0
--
bDeviceProtocol = 1
idVendor = 0x093a
idProduct = 0x2700
manufacturer = "PixArt Imaging Inc."
product = "USB2.0_Camera"
bcdDevice = 0100
speed = "480"
usb device: name = 1-1:1.1
path = /devices/platform/str8100-ehci/usb1/1-1/1-1:1.1
modalias = "usb:v093Ap2700d0100dcEFdsc02dp01ic0Eisc02ip00"
bInterfaceNumber = 1
bInterfaceClass = 14
bInterfaceSubClass = 2
bInterfaceProtocol = 0
--
bDeviceProtocol = 1
idVendor = 0x093a
idProduct = 0x2700
manufacturer = "PixArt Imaging Inc."
product = "USB2.0_Camera"
bcdDevice = 0100
speed = "480"
usb device: name = 1-1:1.0
path = /devices/platform/str8100-ehci/usb1/1-1/1-1:1.0
modalias = "usb:v093Ap2700d0100dcEFdsc02dp01ic0Eisc01ip00"
bInterfaceNumber = 0
bInterfaceClass = 14
bInterfaceSubClass = 1
bInterfaceProtocol = 0
--
bDeviceProtocol = 1
idVendor = 0x093a
idProduct = 0x2700
manufacturer = "PixArt Imaging Inc."
product = "USB2.0_Camera"
bcdDevice = 0100
speed = "480"
usb device: name = 1-1
path = /devices/platform/str8100-ehci/usb1/1-1
usb device: name = 2-0:1.0
path = /devices/platform/str8100-ohci/usb2/2-0:1.0
modalias = "usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00"
bInterfaceNumber = 0
bInterfaceClass = 9
--
SysFS ID: /devices/platform/str8100-ehci/usb1/1-1/1-1:1.3
SysFS BusID: 1-1:1.3
Hardware Class: unknown
Model: "Pixart Imaging USB2.0_Camera"
Hotplug: USB
Vendor: usb 0x093a "Pixart Imaging, Inc."
Device: usb 0x2700 "USB2.0_Camera"
Revision: "1.00"
Driver: "snd-usb-audio"
Driver Modules: "snd_usb_audio"
Speed: 480 Mbps
Module Alias: "usb:v093Ap2700d0100dcEFdsc02dp01ic01isc02ip00"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #10 (Hub)

09: USB 00.0: 10a00 Hub
ts7500:~#


Obrigado






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts