WebCam in OpenWrt

At the stage of configuration OpenWrt the following modules are to be selected:
Kernel modules:
Video Support:
<M> kmod-video-core

Next you should note the type of camera, which is planned to be connected to,
I have a UVC camera. Therefore, I select the module kmod-video-uvc. To determine the type of camera, you can connect it to your computer and look at output dmesg.

$ dmesg
usb 1-5: new high speed USB device using ehci_hcd and address 20
usb 1-5: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB 2.0 PC Camera (058f:3881)
input: USB 2.0 PC Camera as /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/input/input12

<M> kmod-video-uvc
<M> mjpg-streamer

* I had to reload the image for the correct operation


root@OpenWrt:/# opkg install kmod-video-core kmod-video-uvc mjpg-streamer
Installing kmod-video-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@
Installing kmod-i2c-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@
Installing kmod-video-uvc (2.6.36-1) to root...
Downloading ftp://ftp:ftp@
Installing mjpg-streamer (r94-1) to root...
Downloading ftp://ftp:ftp@
Installing libjpeg (6b-1) to root...
Downloading ftp://ftp:ftp@
Configuring libjpeg.
Configuring kmod-i2c-core.
Configuring kmod-video-core.
Configuring kmod-video-uvc.
Configuring mjpg-streamer.

Connect the camera and check the command output:

root@OpenWrt:/# ls /dev/v*


root@OpenWrt:/# mjpg_streamer -i " -d /dev/video0 -y" -o ""
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: YUV
i: JPEG Quality......: 80
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled

Open the browser and look at: