Forums

LeopardBoard DM368 running with TI DVSDK

  • Hello all

    I got LeopardBoard DM368 running with TI DVSDK 4_02_00_6.

    Booting and running from SD card and NO NFS needed.

    Most of work is porting from RR-SDK. Thanks RR :)

    The DSP encode / decode also works.

    Now the LeopardBoard DM368 + LI-BCM5M03 (mt9p031) can do H.264 HD encode.

    I post the progress and patchs on my blog, please follow it.

    http://tw.myblog.yahoo.com/stevegigijoe/article?mid=366&prev=369&next=363

     

    I still can not get NAND flash works correct, if any one know about it, please let me know

     

    Steve

  • Steve,

    I'm new to LeopardBoard development but have been developing on the Spectrum Digital DM365EVM for awhile with good success.  

    I recently obtained a new LeopardBoard DM368 plus LI-5M03 Camera Board on which I have installed ti-dvsdk-dm368-evm_4_02_00_06 according to your recipe (thank you!); however, when I run root@dm368-evm:/usr/share/ti/ti-dmai-apps# ./video_loopback_dm368.x470MV -O component -I camera -y 4 (or -y 5), i.e., at resolutions of 1280x720 or 1920x1080 I get no video out of the component output while a -y 3, i.e., 720x480 the component output is as it should be.

    I have checked and rechecked my bootargs, VPFE/VPBE driver registration/initialization, system clocks, and my /dev device directory - everything looks as it should - but the DMAI application starts up and "runs" with no errors but just does not output component video at HD resolutions.

    I found two posts from Mark L. designsomething.org/.../2553.aspx on this topic but am uncertain how to proceed: do you recommend that I update both the kernel davinci_platfrom.c and the U-Boot device.c in U-Boot following Mark's recipe?  Or is there a better / simpler approach?  Is there a way to read the VPBE registers directly to see what is going wrong?  Any advise you can give would be greatly appreciated.

    Thank you,

    -Chuck

  • The video output component is THS7303 on LeopardBoard DM368. I didn't try it actually.

    I have review the related kernel source,  there's still problem obviously.

    arch/arm/mach-davinci/board-dm365-leopard.c

    static struct vpfe_subdev_info vpfe_sub_devs[] = {
            {
                    .module_name = "mt9p031",
                    .is_camera = 1,
                    .grp_id = VPFE_SUBDEV_MT9P031,
                    .num_inputs = ARRAY_SIZE(mt9p031_inputs),
                    .inputs = mt9p031_inputs,
                    .ccdc_if_params = {
                            .if_type = VPFE_RAW_BAYER,
                            .hdpol = VPFE_PINPOL_POSITIVE,
                            .vdpol = VPFE_PINPOL_POSITIVE,
                    },
                    .board_info = {
                            I2C_BOARD_INFO("mt9p031", 0x48),
                            /* this is for PCLK rising edge */
                            .platform_data = (void *)1,
                    },
            }
    };

    The THS7303 should be add into vpfe_sub_devs[]

    {

                  .module_name = "ths7303",
                  .grp_id = VPFE_SUBDEV_TVP7002,
                  .board_info = {
                         I2C_BOARD_INFO("ths7303", 0x2c),
                  },
    },


    Alos remeber to fix uboot environment variable from davinci_enc_mngr.ch0_output=DVI to davinci_enc_mngr.ch0_output=COMPOSITE

    Hope it's help, good luck

    Steve
  • I have used dvsdk_dm368-evm_4_02_00_06_setuplinux and Code Sourcery ARM toolchain 2009q1-203 toolchain.

    I have followed your blog to configure TI sdk for leopard board dm368 with LI5M03 camera.As per our requirement for composite output I have made changes in th boot.cmd davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=D1_NTSC.

    I have not followed the alsa step.

    Though the board has booted and Texas instruments logo is displayed on the composite output the gstreamer commands fails to display .

    1)gst-launch -v videotestsrc ! TIDmaiVideoSink videoStd=D1_NTSC videoOutput=composite accelFrameCopy=FALSE sync=false

    Setting pipeline to PAUSED ...

    /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)31

    Pipeline is PREROLLING ...

    /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width=(int)71

    /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, color-matrix=(string)sdtv, chroma-site=(string)mpeg2, width1

    Pipeline is PREROLLED ...

    Setting pipeline to PLAYING ...

    New clock: GstSystemClock

    delay stream on ....

    davinci_v4l2 davinci_v4l2.1: sizeimage is less, 691200

    ERROR: from element /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0: Unable to initialize display

    Additional debug info:

    gsttidmaivideosink.c(1657): gst_tidmaivideosink_render (): /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0

    Execution ended after 35914207 ns.

    Setting pipeline to PAUSED ...

    Setting pipeline to READY ...

    /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0.GstPad:sink: caps = NULL

    /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = NULL

    Setting pipeline to NULL ...

    Freeing pipeline ...

    2)gst-launch -v filesrc location= sintel_trailer-480p.mp4 ! TI

    Viddec2 engineName=codecServer codecName=mpeg4dec ! TIDmaiVideoSink videoStd=D1_

    NTSC videoOutput=COMPOSITE sync=FALSE

    Setting pipeline to PAUSED ...

    Pipeline is PREROLLING ...

    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)30000/1001, width=(int)1280, height=(int)720

    Pipeline is PREROLLED ...

    Setting pipeline to PLAYING ...

    New clock: GstSystemClock

    Got EOS from element "pipeline0".

    Execution ended after 2647667 ns.

    Setting pipeline to PAUSED ...

    Setting pipeline to READY ...

    /GstPipeline:pipeline0/GstTIViddec2:tividdec20.GstPad:src: caps = NULL

    Setting pipeline to NULL ...

    Freeing pipeline ...

    3)gst-launch -v v4l2src always-copy=FALSE num-buffers=800 ! vide

    o/x-raw-yuv,format=\(fourcc\)NV12,width=720,height=480 ! TIVidenc1 codecName=mpe

    g4enc engineName=codecServer ! filesink location=output_cap_D1.m4v

    Pipeline is live and does not need PREROLL ...

    WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input device did not accept new frame rate setting.

    Additional debug info:

    v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:

    system error: Invalid argument

    Setting pipeline to PLAYING ...

    New clock: GstSystemClock

    Caught interrupt -- handling interrupt.

    Interrupt: Stopping pipeline ...

    Execution ended after 14988243577 ns.

    Setting pipeline to PAUSED ...

    Setting pipeline to READY ...

    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = NULL

    Setting pipeline to NULL ...

    Freeing pipeline ...

    Please provide a solution.