v4l2 problem when trying to use the Beaglebone 3.1 MP Camera under Angstrom

Good evening.

I am attempting to run a set of scripts on the Beaglebone Black which sued to work on the Beaglebone XM. The scripts use v4l2 to capture an image from the camera and store it to a png file. I’ve attached part of the output from one command of the script. This works fine on the XM, but fails on the black. ANy suggestions as to what I am doing wrong here?

root@beaglebone:~/imdemo# gst-launch v4l2src device=/dev/video0 num-buffers=1 ! ffmpegcolorspace ! pngenc ! filesink location=test.png
Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not get parameters on device '/dev/video0’
Additional debug info:
v4l2src_calls.c(235): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Inappropriate ioctl for device
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not get buffers from device ‘/dev/video0’.
Additional debug info:
gstv4l2bufferpool.c(405): gst_v4l2_buffer_pool_new (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
error requesting 2 buffers: Cannot allocate memory
Setting pipeline to NULL …
Freeing pipeline …