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
Multimedia:
<M> mjpg-streamer

* I had to reload the image for the correct operation

Install:

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@192.168.1.9/kmod-video-core_2.6.36-1_brcm47xx.ipk.
Installing kmod-i2c-core (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-i2c-core_2.6.36-1_brcm47xx.ipk.
Installing kmod-video-uvc (2.6.36-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/kmod-video-uvc_2.6.36-1_brcm47xx.ipk.
Installing mjpg-streamer (r94-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/mjpg-streamer_r94-1_brcm47xx.ipk.
Installing libjpeg (6b-1) to root...
Downloading ftp://ftp:ftp@192.168.1.9/libjpeg_6b-1_brcm47xx.ipk.
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*
/dev/video0

Run:

root@OpenWrt:/# mjpg_streamer -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so"
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:
Video:
http://192.168.1.1:8080/?action=stream
Photos:
http://192.168.1.1:8080/?action=snapshot

WebCam