This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368EVM with 5M image sensor

Folks, I got one DM368EVM board with a camera daughter board (LI-5M02 Camera board Rev 2.0) on it. I installed DVSDK 4.02 in my linux machine.
And my cross tools is from MontaVista (mv_pro_5.0). Well, as first step I am able to compile the kernel and boot the board with NFS root file system;
next I tried to use gstream to encoder video into h264 format and save as a file, I use below gstream command:

# gst-launch -v v4l2src always-copy=FALSE num-buffers=800 input-src=COMPONENT ! video/x-raw-yuv,format=(fourcc)NV12,width=1280,height=720 ! TIVidenc1 codecName=h264enc engineName=codecServer contiguousInputFrame=TRUE ! filesink location=output_cap_720P.264
Then I got below messages from console:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Setting pipeline to PAUSED ...
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
vpfe-capture vpfe-capture: IPIPE Chained
vpfe-capture vpfe-capture: Resizer present
mt9p031 1-005d: control id -2147483648 not supported
vpfe-capture vpfe-capture: input information not found for the subdev
mt9p031 1-005d: control id 9963776 not supported
mt9p031 1-005d: control id 9963777 not supported
mt9p031 1-005d: control id 9963778 not supported
mt9p031 1-005d: control id 9963779 not supported
mt9p031 1-005d: control id 9963780 not supported
mt9p031 1-005d: control id 9963781 not supported
mt9p031 1-005d: control id 9963782 not supported
mt9p031 1-005d: control id 9963783 not supported
mt9p031 1-005d: control id 9963784 not supported
mt9p031 1-005d: control id 9963785 not supported
mt9p031 1-005d: control id 9963786 not supported
mt9p031 1-005d: control id 9963787 not supported
mt9p031 1-005d: control id 9963788 not supported
mt9p031 1-005d: control id 9963789 not supported
mt9p031 1-005d: control id 9963790 not supported
mt9p031 1-005d: control id 9963791 not supported
mt9p031 1-005d: control id 9963792 not supported
mt9p031 1-005d: control id 9963794 not supported
mt9p031 1-005d: control id 9963798 not supported
mt9p031 1-005d: control id 9963799 not supported
mt9p031 1-005d: control id 9963800 not supported
mt9p031 1-005d: control id 9963801 not supported
mt9p031 1-005d: control id 9963802 not supported
mt9p031 1-005d: control id 9963803 not supported
mt9p031 1-005d: control id 9963804 not supported
mt9p031 1-005d: control id 9963805 not supported
mt9p031 1-005d: control id 9963806 not supported
mt9p031 1-005d: control id 9963807 not supported
mt9p031 1-005d: control id 9963808 not supported
mt9p031 1-005d: control id 9963809 not supported
vpfe-capture vpfe-capture: couldn't set pix format in ccdc
ipv6: disagrees about version of symbol module_layout
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 1
vpfe-capture vpfe-capture: adjusted width = 32, height = 2, bpp = 1, bytesperline = 32, sizeimage = 96
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 1
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 1, bytesperline = 2176, sizeimage = 5013504
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 8, height = 2, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 32775, height = 32769, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 8, height = 2, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 32775, height = 32769, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 8, height = 2, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 32775, height = 32769, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 8, height = 2, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 2, bpp = 2, bytesperline = 32, sizeimage = 64
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 32775, height = 32769, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 2176, height = 1536, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: width = 2176, height = 1536, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 2176, height = 1536, bpp = 2, bytesperline = 4352, sizeimage = 6684672
vpfe-capture vpfe-capture: couldn't set pix format in ccdc
libv4l2: error setting pixformat: Invalid argument
ERROR: Pipeline doesn't want to pause.
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to set input 2 on device /dev/video0.
Additional debug info:
v4l2_calls.c(975): gst_v4l2_set_input (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to set norm for device '/dev/video0'.
Additional debug info:
v4l2_calls.c(739): gst_v4l2_set_norm (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 2176x1536
Additional debug info:
gstv4l2object.c(2082): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for UYVY @ 2176x1536: Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The kernel bootargs is set as below:
Kernel command line: console=ttyS0,115200n8 rw dm365_imp.oper_mode=0 video=davincifb:vid0=OFF:vid1=OFF:osd0=480x272x16,4050K mem=60M vpfe_capture.interface=1 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=480x272 root=/dev/nfs nfsroot=/home/tim/targetfs

From the output message, it seems mt9p031 is not correctly setup, but I have no idea where is the error since it is already selected in kernel config.

Does anybody here successfully capture video from this camera board ?

Thanks
Tim