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.

Frame buffer in DM8168

Other Parts Discussed in Thread: TVP7002

Hi,

I am using DM8168 processor with my customized daughter board. The EZSDK version is 5_05_02_00 and Linux version linux-2.6.37-psp04.04.00.01

Here while I am dumping image to LCD, the image will appear and disappears immediately.

I am using the following procedures given below.

insmod syslink.ko

  ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3

insmod vpss.ko address=0xB2C00000 debug=1
insmod ti81xxfb.ko vram=0:16M,1:16M,2:16M debug=1

echo 0 > /sys/devices/platform/vpss/display1/enabled
echo 800x480@60 > /sys/devices/platform/vpss/display1/mode
echo 1 > /sys/devices/platform/vpss/display1/enabled
echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes

cat My_image.raw > /dev/fb0
After I executed the above commands, the image appears and disappears in LCD (I mean its going to BG and appearing in the FG).
What might be the reason for this issue?.
Thanks in advance.
Regards,
Salih
  • Hello,

    I will check it. Could you share the image I to setup the same use case?

    Best Regards,

    Margarita

  • Hi,

    You mean which image I have dumped, that you want to check it?

    I have attached the raw image which I dumped into my LCD. I am using Formike LCD with the resolution of 800x480.

    Please follow the procedure as I mentioned in the previous post and dump this image into the LCD

    /cfs-file/__key/communityserver-discussions-components-files/791/0815.800_5F00_480_5F00_image.zip

    Thanks in advance.

    Regards,

    Salih

  • Hello,

    Could you try :

    cp My_image.raw /dev/fb0
    cat /dev/fb0

    Let me know.
    Best Regards,
    Margarita
  • Hi Margarita,

    Thanks for your inputs.
    If I execute the above commands as like u mentioned, I can able to see the image in the FG of my display.
    Why its behaving like this?. Normally its supposed to visible in FG instead of BG.
    Whether it is the issue or the driver itself designed like this.?. If it is the issue, could you please help me to solve this?

    And one more information, if I run the matrix-GUI in the LCD, it is appearing in the FG.

    Thanks in advance.

    Regards,
    Salih
  • Hello,

    I would recommend you to post in the linux forum in this case :
    http://e2e.ti.com/support/embedded/linux/

    Best Regards,
    Margarita
  • Hi Margarita,

    Thanks for your inputs. But, here if I load the below modules in my target, I can able to see my image in the FG of my Display:

    insmod pvrsrvkm.ko
    insmod bufferclass_ti.ko
    insmod omaplfb.ko

    Why the above modules are loading from init scripts in the target while booting the system.

    Please clarify these queries. I want to run the video in my LCD using G-streamer

    Thanks in advance.

    Regards,
    Salih

  • Hello,

    Muhammad Salih said:
    insmod pvrsrvkm.ko
    insmod bufferclass_ti.ko
    insmod omaplfb.ko

    Graphics related. Refer to Graphics SDK for more information.


    You could try:

    gst-launch --verbose filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler! omx_ctrl display-mode=OMX_DC_MODE_480P_60 display-device=LCD ! gstperf !   'video/x-raw-yuv,width=(int)800,height=(int)480'   ! omx_videosink sync=false display-device=LCD

    or

    gst-launch --verbose filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler!  gstperf !   'video/x-raw-yuv,width=(int)800,height=(int)480'   ! v4l2sink device="/dev/videoXX" show-preroll-frame=false sync=false min-queued-bufs=2 userpointer=false

    Best Regards,

    Margarita

  • Hi,

    Thanks for your inputs. I have executed the second command in my target. But I can't able see any video in the LCD:

    gst-launch --verbose filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler!  gstperf !   'video/x-raw-yuv,width=(int)800,height=(int)480'   ! v4l2sink device="/dev/video1" show-preroll-frame=false sync=false min-queued-bufs=2 userpointer=false

    Should I miss anything to run the video in the LCD. I have executed the below commands:

    echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 800x480@60 > /sys/devices/platform/vpss/display1/mode
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    echo 1 > /sys/devices/platform/vpss/graphics0/enabled

    Below are the modules loaded in the target:

    root@dm816x-evm:~# lsmod
    Module                  Size  Used by
    omaplfb                10766  0
    bufferclass_ti          4950  0
    pvrsrvkm              155490  2 omaplfb,bufferclass_ti
    ti81xxhdmi             17685  0
    ti81xxvin              20388  0
    tvp7002                 6405  0
    ti81xxvo               21210  0
    ti81xxfb               21979  1
    vpss                   75009  5 omaplfb,ti81xxhdmi,ti81xxvin,ti81xxvo,ti81xxfb
    syslink              1131915  0
    ipv6                  209855  12
    root@dm816x-evm:~#

    I am attaching the log file of my target with this post.

    /cfs-file/__key/communityserver-discussions-components-files/791/8662.log.txt

    I want to know which is my display device (video1, video2, video3). And also any command have I execute to change the video device. If so, what are those commands.

    Please don't regret my queries and give me the solution to solve this issue.

    Do I have change the below device node in the command:

    /sys/devices/platform/vpss/video0/nodes

    Its showing as vcompmux:hdmi

    I was facing this issue for very long time. Still its not yet solved. Struggling with this a lot.

    Please help me out

    Thanks in advance.

    Regards,
    Salih

  • Hi,

    I have executed the below commands to run the video in the LCD. Its working with your TI demo video:

    echo 0 > /sys/devices/platform/vpss/graphics0/enabled
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 800x480@60 > /sys/devices/platform/vpss/display1/mode
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    echo 1 > /sys/devices/platform/vpss/graphics0/enabled
    fbset -fb /dev/fb0 -xres 800 -yres 480 -vxres 800 -vyres 480 -t 33500 89 164 23 10 10 10 -depth 24
    echo vcompmux:dvo2 > /sys/devices/platform/vpss/video0/nodes

    And I have executed the below pipeline:

    gst-launch --verbose filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler!  gstperf !   'video/x-raw-yuv,width=(int)800,height=(int)480'   ! v4l2sink device="/dev/video1" show-preroll-frame=false sync=false min-queued-bufs=2 userpointer=false

    Thank you very much for your support. I am very happy to say after a big struggling. But still,  I have some clarifications with some commands below:

    gst-launch playbin2 uri=file:///home/root/tfr.mp4 -v

    If I executed the above commands to run the video, the video is playing but the FPS is very less and playing in very low tempo.

    What might be the reason for this?. And also I want to know what are video and audio codecs which your supporting in this processor and package.

    And also please let me know pipelines which I can able make it work in the target.

    Thanks in advance.

    Regards,
    Salih

  • Hi,

    I am keep on waiting for your response to proceed further. Is there any updates regarding this?

    Regards,
    Salih
  • Hello,

    Muhammad Salih said:

    gst-launch playbin2 uri=file:///home/root/tfr.mp4 -v

    If I executed the above commands to run the video, the video is playing but the FPS is very less and playing in very low tempo.

    This is known issue we have fix about this.

    You observe this because by default the omx_mdeiscaler element is linked in the pipeline.

     You could revert it and the omx_scaler to be used. Keep in mind that you could you the omx_scaler in case your video is progressive. If it is interlaced I would recommend you to use the omx_mdeiscaler. But in  this case you should apply the patch which is in the overlay package. If you have the overlay package (which is under NDA and can not be discussed in the public forum), please contact your local FAE or TI representative.

    Best Regards,

    Margarita