Here is demo of sing webcam usb gadget kernel module g_webcam on DM365. Test video image is generated by demo application. Sources can be integrated with VPFE/CCDC to stream real video from camera.
Single binary image of Linux kernel and root FS. http://www.makelinux.net/kernel/downloads/webcam_gadget_dm365.uImage
Sources:
Kernel: http://gitorious.org/linux-davinci version 3.0.0, or any another with g_webcam
Enable USB on DM365 with http://www.makelinux.net/kernel/downloads/usb-dm365.patch
Application: http://git.ideasonboard.org/?p=uvc-gadget.git;a=summary
Usage:
Connect the board to computer (host) with USB.
Run FW image on the board.
Run on the host (with Linux)
mplayer tv:// -tv driver=v4l2
or
cvlc v4l2://