Webcam under linux

Radim
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
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
open-nandra,
in which section is there symbols?

open-nandra
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
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
OK, I will test it today at evening.

Radim
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
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
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
I try mjpg-streamer-mini2440 and it's OK. Thanks again :)

Ravi karavadiya
Hello Everyone,

 anyone can help me, which type of usbcamera is support to mini2440?

Anyone can suggest me usbcamera?