Check that /dev/video0 exists. If it does not exist, load the camera driver with the command:
modprobe mxc_v4l2_capture
modprobe CAMERA_MODULE (CAMERA_MODULE should be replaced by the camera module on the related platform, e.g. ov3640_camera should be used here on MX51)
Check again for /dev/video0. If it is not there, the camera driver has not loaded successfully and the test has failed.
Type the following command line in a writable directory. The 50 frames of video from the camera will be captured in the file "test.yuv" at a resolution of 352x288 with no rotation and a frame rate of 30 fps. The format will be YUV420.