Webcam under linux

Radim 2010-08-31 08:45:49 Link
Hi all,
I want connect webcam (logitech C200) to my mini2440. 
dmesg says:
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice.

/dev/video0 does not exist.

My kernel is 2.6.29 and I use Debian. On desktop PC camera works. Can
anybody help me?

Thanks
Radim

open-nandra 2010-08-31 10:48:59 Link
Hi,

try to check in kernel menuconfig if you have checked:
Symbol: CONFIG_USB_G_WEBCAM, CONFIG_VIDEO_DEV, CONFIG_USB_VIDEO_CLASS

Should then work for your webcam because if UVC compatible.

Radim 2010-08-31 11:36:24 Link
open-nandra,
in which section is there symbols?

open-nandra 2010-08-31 11:41:05 Link
Hi,

first enable V4linux:
Symbol: VIDEO_DEV [=y]                                                     
                                                                           
                               │  
  │ Type  : tristate                                                 
                                                                           
                                         │  
  │ Prompt: Video For Linux                                          
                                                                           
                                         │  
  │   Defined at drivers/media/Kconfig:20                            
                                                                           
                                         │  
  │   Depends on: MEDIA_SUPPORT [=y]                                 
                                                                           
                                         │  
  │   Location:                                                      
                                                                           
                                         │  
  │     -> Device Drivers                                            
                                                                           
                                         │  
  │       -> Multimedia support (MEDIA_SUPPORT [=y]) 

then : 
Symbol: USB_G_WEBCAM [=m]                                                  
                                                                           
                               │  
  │ Type  : tristate                                                 
                                                                           
                                         │  
  │ Prompt: USB Webcam Gadget                                        
                                                                           
                                         │  
  │   Defined at drivers/usb/gadget/Kconfig:948                      
                                                                           
                                         │  
  &#9474;   Depends on: <choice> && VIDEO_DEV [=y]                         
                                                                           
                                         &#9474;  
  &#9474;   Location:                                                      
                                                                           
                                         &#9474;  
  &#9474;     -> Device Drivers                                            
                                                                           
                                         &#9474;  
  &#9474;       -> USB support (USB_SUPPORT [=y])                          
                                                                           
                                         &#9474;  
  &#9474;         -> USB Gadget Support (USB_GADGET [=y])                  
                                                                           
                                         &#9474;  
  &#9474;           -> USB Gadget Drivers (<choice> [=m]) 
and last:

Symbol: USB_VIDEO_CLASS [=y]                                               
                                                                           
                               &#9474;  
  &#9474; Type  : tristate                                                 
                                                                           
                                         &#9474;  
  &#9474; Prompt: USB Video Class (UVC)                                    
                                                                           
                                         &#9474;  
  &#9474;   Defined at drivers/media/video/uvc/Kconfig:1                   
                                                                           
                                         &#9474;  
  &#9474;   Depends on: MEDIA_SUPPORT [=y] && VIDEO_CAPTURE_DRIVERS [=y] &&
VIDEO_V4L2 [=y] && V4L_USB_DRIVERS [=y] && USB [=y]                        
                                         &#9474;  
  &#9474;   Location:                                                      
                                                                           
                                         &#9474;  
  &#9474;     -> Device Drivers                                            
                                                                           
                                         &#9474;  
  &#9474;       -> Multimedia support (MEDIA_SUPPORT [=y])                 
                                                                           
                                         &#9474;  
  &#9474;         -> Video capture adapters (VIDEO_CAPTURE_DRIVERS [=y])   
                                                                           
                                         &#9474;  
  &#9474;           -> V4L USB devices (V4L_USB_DRIVERS [=y])

open-nandra 2010-08-31 11:43:31 Link
Sorry for this is garbled:
so in -> Device Drivers-> Multimedia support
then : -> Device Drivers-> USB support-> USB Gadget Support->USB Webcam
Gadget

last: -> Device Drivers-> Multimedia support-> Video capture adapters-> V4L
USB devices

Hope it works then for you, lemme know ;)

Marek

Radim 2010-08-31 13:36:09 Link
OK, I will test it today at evening.

Radim 2010-08-31 21:27:31 Link
Problem i solved, thanks. But I have a second problem. i use "camserv" and
when I run it, tis say "libv4l1: error allocating v4l1 buffer: Cannot
allocate memory".

open-nandra 2010-08-31 22:07:43 Link
Seems to ma that camserv is little bit old and maybe obsolete. But if you
need it please provide full log (from program start). You can try also
:http://code.google.com/p/mjpg-streamer-mini2440/ which is similar project.

themadmax 2010-08-31 22:14:03 Link
I'm working on little webcam application on mini2440.
Try source kernel code from this download area (video for linux is enable
in default config)
mini2440 USB hub use 1.1 USB, and It hard to have big acquisition size with
modern webcam base on USB2.
Try using Video for linux 2, and don't use read, but mapped memory to image
access.

Radim 2010-09-01 08:16:04 Link
I try mjpg-streamer-mini2440 and it's OK. Thanks again :)

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 7157