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.

Problem with vpss.ko

HI,

I am using the latest EZSDK, 5.03.01.15 for DM816x/ AM389x board. I am trying to insert vpss.ko.
I have successfully inserted the syslink.ko. Then I given below commands:


./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3

But while inserting vpss.ko, I am getting the below error in my target:

notify_send_event failed! status = 0xfffffff0
notify_shm_drv_sendevent failed! status = 0xfffffff0
notify_send_event failed! status = 0xfffffff0
VPSS_CORE : Failed to init fvid2 interface,
vpss: probe of vpss failed with error -22
VPSS_CORE : failed to register ti81xx-vpss driver

I am suspecting on slaveloader and the hdvpss firmware.
What might be the cause for this error message.
Please give some suggestion to solve this issue.

Thanks in advance.

Regards,
Salih

  • Hello,

    Could you share your boot args please?

    Also you should use :

    ./slaveloader startup VPSS-M3 ti816x_hdvpss_1G.xem3

    EZSDK has different M3 firmware and utility to load M3 with PSP.

    ./slaveloader startup VPSS-M3 ti816x_hdvpss_1G.xem3 is the usage of PSP.

    Have you rebuild the vpss.ko ?

    Best Regards,

    Margarita

  • Dear Margarita,

    My boot arguments given below:

    TI8168_EVM#printenv
    bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else echo In case ENV on MMC/SD is required; echo Please put a valid script named boot.scr on the card; echo Refer to the User Guide on how to generate the image; fi; else echo Please set bootargs and bootcmd before booting the kernel; echo If that has already been done please ignore this message; fi
    bootdelay=3
    baudrate=115200
    autoload=no
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 1 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    ver=U-Boot 2010.06 (Sep 18 2014 - 13:36:52)

    Environment size: 692/8188 bytes
    TI8168_EVM#

    Where I can get the ti816x_hdvpss_1G.xem3 and the slaveloader. Could please shar the same?.

    I have rebuilt the vpss.ko also and tried. Result remains same.

    Thanks in advance,

    Regards,

    Salih

  • Hello,

    I assume that yo are trying v4l2 capture correct?

    I would recommended you to follow this user guide :

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guide

    or

    ezsdk/docs

    DM816x_EZ_Software_Developers_Guide.pdf

    How to change from OMX to V4L2 firmware for capture/display

    Best Regards,

    Margarita

  • Hi Margarita,

    I am trying to test the display device and HDMI (ti81xxfb.ko, ti81xxhdmi.ko). But I couldn't load the module the vpss.ko. I want to know what might be the reason for it. Please let me know solution for the same. As I already posted the error message in my first update.

    Thanks in advance,

    Regards,

    Salih

  • I have successfully inserted my vpss.ko module after I downloaded the binaries with the version TI81xx-HDVPSS-01.00.01.37 in my target. But my LCD device is not enabling after I given 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

    Can you please tell me what might be the reason for the same. I am using the external LCD panel in my target.

    Thanks in advance.

    Regards,

    Salih

  • Hello,

    You could try:

    /etc/init.d/matrix-gui-e stop
    /etc/init.d/pvr-init stop
    echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
    echo 0 > /sys/devices/platform/vpss/display1/enabled
    echo 33500,800/164/89/10,480/10/23/10,1 > /sys/devices/platform/vpss/display1/timings
    echo 1 > /sys/devices/platform/vpss/display1/enabled
    fbset -xres 800 -yres 480 -vxres 800 -vyres 480
    /etc/init.d/matrix-gui-e start
     /etc/init.d/pvr-init start

    Let me know the result.

    Best Regards,

    Margarita

  • Hi Margarita,

    I have executed the same commands as you given. But still the behavior of the LCD remains same.

    Please suggest any solution to solve this issue.

    Thanks in advance

    Regards,

    Salih

  • Hi Margarita,

    Thank you for your support. I have solved this LCD issue, since some conflict of GPIOs in our customized platform.

    Now I want to test the Video in my LCD. Can you send me the procedure to play the video in my display device.

    How can I use the G-streamer in my target?.

    Thanks in advance.

    Regards,

    Salih

  • Hello,

    Muhammad Salih said:
    How can I use the G-streamer in my target?.

    You  could start with:

    gst-launch 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_1080P_60 ! omx_videosink

    This will decode&display the elementary stream dm816x_1080p_demo.264.

    Let me know your use case and your questions regarding gstreamer. Please open a new topic about it.

    Best Regards,

    Margarita

  • Hi Margarita,

    As I have used the above commands in my target. It showing below errors in my target and nothing executing in my display device.

    Assertion at Line no: 445 in /db/psp_git/tools/syslink/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/SharedRegionDrv.c: (heapHandle != NULL) : failed
    Assertion at Line no: 1349 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r4j/syslink_2_20_02_20/packages/ti/syslink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    gst-launch-0.10: DmmDelegateHeap.c:193: DmmDelegate_createIpcHeap: Assertion `(heapHandle != 0)' failed.
    Aborted

    Please suggest me any solution to solve this issue.

    Thanks in advance

    Regards,

    Salih

     

  • Hello,

    As per your first post it seems that you are using ezsdk 5.03 right?

    The syslink version in this ezsdk is 2_00_05_85 but errors shows syslink 2.20.02.20. One of the reasons could be syslink verions mismatch. Please move to the latest EZSDK 5.05.02 version.

    Also the provided pipeline is working on DM8168 it decode and displays on HDMI the video. Could you provide me more information what changes you have made in the EZSDK?

    I would recommended you to check with the default EZSDK first.

    Best Regards,

    Margarita

  • Hi Margarita,

    Thank you very much for your response. As I already moved to the latest SDK (ti-ezsdk_dm816x-evm_5_05_02_00).

    As I downloaded the file (syslink.ko (SysLink version : 2.10.03.20), slaveloader, ti816x_hdvpss.xem3) from the TI website with the VPSS version TI81xx-HDVPSS-01.00.01.37.

    I have executed the below commands to load the display related modules:

    insmod syslink.ko
    ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3
    insmod vpss.ko
    insmod ti81xxhdmi.ko
    insmod ti81xxfb.ko

    And also I changed my customization in the Linux source code. And I have used the targetfs provided by EZSDK.

    I have executed the simple pipeline in the target as below:

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

    Results remains same as I am getting the below run time error messages:

    (gst-plugin-scanner:1310): GLib-GObject-WARNING **: cannot register existing type `GstVideoMixerPad'
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Assertion at Line no: 445 in /db/psp_git/tools/syslink/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/SharedRegionDrv.c: (heapHandle != NULL) : failed
    Assertion at Line no: 1349 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r4j/syslink_2_20_02_20/packages/ti/syslink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    gst-launch-0.10: DmmDelegateHeap.c:193: DmmDelegate_createIpcHeap: Assertion `(heapHandle != 0)' failed.
    Aborted
    root@dm816x-evm:~# gst-launch -v filesrc location=seas.mov ! qtdemux name=demux
    demux.audio_00 ! queue ! faad ! alsasink demux.video_00 ! queue !  nal2bytestrea
    m_h264  !  omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60
      ! gstperf ! omx_videosink
    Assertion at Line no: 445 in /db/psp_git/tools/syslink/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/SharedRegionDrv.c: (heapHandle != NULL) : failed
    Assertion at Line no: 1349 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r4j/syslink_2_20_02_20/packages/ti/syslink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    gst-launch-0.10: DmmDelegateHeap.c:193: DmmDelegate_createIpcHeap: Assertion `(heapHandle != 0)' failed.
    Aborted

    Thanks in advance

    Regards,

    Salih

  • Hello,

    Muhammad Salih said:


    As I downloaded the file (syslink.ko (SysLink version : 2.10.03.20), slaveloader, ti816x_hdvpss.xem3) from the TI website with the VPSS version TI81xx-HDVPSS-01.00.01.37.

    I have executed the below commands to load the display related modules:

    insmod syslink.ko
    ./slaveloader startup VPSS-M3 ti816x_hdvpss.xem3
    insmod vpss.ko
    insmod ti81xxhdmi.ko
    insmod ti81xxfb.ko



    If you are loaded the syslink.ko (SysLink version : 2.10.03.20) there is a version mismatch.

    The EZSDK 5.05.02 contains : syslink_2_20_02_20 and hdvpss_01_00_01_44.

    Could you first try with the default settings to verify that is working.


    Steps:

    Stop the graphics plane and execute the pipeline which I have provided you.

    But if you are trying to execute the pipeline with playbin2 you should do:

    Stop the graphics plane,

    cd usr/share/ti/ti-media-controller-utils

    ./load-hd-firmware.sh stop

    ./load-hd-v4l2-firmware.sh start

    Best Regards,

    Margarita

  • Hi,

    I have tried to load the syslink (syslink_2_20_02_20) and tested. I am getting the below message while loading the vpss.ko module:

    VPSS_FVID2: M3 firmware version 0x1000144 is newer,driver may not work properly.

    And also while executing pipeline getting the same error messages and not working.\

    root@dm816x-evm:~# /etc/init.d/matrix-gui-e stop
    Stopping Matrix GUI application.
    root@dm816x-evm:~# gst-launch 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_1080P_60 ! omx_videosink
    Assertion at Line no: 467 in /media/_/Salih/PRDVF/Syslink/syslink_2_20_00_14/syslink_2_20_00_14/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/SharedRegionDrv.c: (heapHandle != NULL) : failed
    Assertion at Line no: 1349 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r4j/syslink_2_20_02_20/packages/ti/syslink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    gst-launch-0.10: DmmDelegateHeap.c:193: DmmDelegate_createIpcHeap: Assertion `(heapHandle != 0)' failed.
    Aborted

    How to stop the graphics plane in the target?. Please suggest any solution to solve this issue.

    Thanks in advance

    Regards,

    Salih

     

  • Hello,

    Muhammad Salih said:
    VPSS_FVID2: M3 firmware version 0x1000144 is newer,driver may not work properly.

    Ignore this message.

    Muhammad Salih said:
    How to stop the graphics plane in the target?.

    Refer to the user guide in the ezsdk/docs

    Muhammad Salih said:
    root@dm816x-evm:~# gst-launch 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_1080P_60 ! omx_videosink
    Assertion at Line no: 467 in /media/_/Salih/PRDVF/Syslink/syslink_2_20_00_14/syslink_2_20_00_14/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/SharedRegionDrv.c: (heapHandle != NULL) : failed
    Assertion at Line no: 1349 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r4j/syslink_2_20_02_20/packages/ti/syslink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    gst-launch-0.10: DmmDelegateHeap.c:193: DmmDelegate_createIpcHeap: Assertion `(heapHandle != 0)' failed.

    What changes you have made?

    Are you seeing this with the default EZSDK without any modifications?

    Best Regards,

    Margarita

  • Hi,

    Yes. I didn't do any changes in the EZSDK (targetfs). I have made changes only in Linux and U-boot source code.

    Regards,

    Salih

  • Hello,

    Muhammad Salih said:
    I have made changes only in Linux and U-boot source code.

    Then you should rebuild the modules also syslink.ko, vpss.ko etc and to copy them in the in the correct directories in the targetfs.

    Best Regards,

    Margarita

  • Hi,

    Yes exactly. I have done it and copied the same into it and build the modules. Still the error remains same.

    Regards,

    Salih

  • Hello,

    Please provide what are the changes which you have made in the kernel , etc. I am able to execute the pipeline without a problem with the default EZSDK 5.05.02.

    Best Regards,

    Margarita

  • Hi Margarita,

    I am using the processor DM8168 (Rev 2.0 & rev 2.1). I am attaching the patch file with this update.

    7870.G12_37_kernel.zip

    And also can you send me the procedure of what are commands (modules loaded and others) you executed in the target before executing pipeline and also the pipeline commands.

    Thanks in advance

    Regards,

    Salih

  • Hello,

    Muhammad Salih said:
    And also can you send me the procedure of what are commands (modules loaded and others) you executed in the target before executing pipeline and also the pipeline commands.

    root@dm816x-evm:~# /etc/init.d/matrix-gui-e stop
    Stopping Matrix GUI application.
    root@dm816x-evm:~# /etc/init.d/pvr-init stop
    Stopping PVR
    root@dm816x-evm:~# lsmod
    Module                  Size  Used by
    ti81xxhdmi             17685  0
    ti81xxfb               21979  0
    vpss                   75009  2 ti81xxhdmi,ti81xxfb
    syslink              1134279  0
    ipv6                  209855  12
    root@dm816x-evm:~# gst-launch 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_1080P_60 ! gstperf ! omx_videosink s
    ync=false

    This is with the default EZSDK.

    Best Regards,

    Margarita

  • Hello,

    Could you check this pipeline for LCD display:

    gst-launch -v filesrc location=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_1080P_60 display-device=LCD ! 'video/x-raw-yuv,width=(int)800,height=(int)480' ! gstperf ! omx_videosink  display-device=LCD

    or you could use v4l2sink device=/dev/videoXX but in case v4l2sink you should execute the load-hd-v4l2-firmware.sh 

    Best Regards,

    Margarita

  • Hi,

    I executed the above commands also. I am getting the same error messages

    root@dm816x-evm:~#  /etc/init.d/matrix-gui-e stop
    Stopping Matrix GUI application.
    root@dm816x-evm:~#  /etc/init.d/pvr-init1 stop
    Stopping PVR
    ERROR: Module bufferclass_ti does not exist in /proc/modules
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~#
    root@dm816x-evm:~# gst-launch -v filesrc location=location=/usr/share/ti/data/vi
    deos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h
    264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 display-device=
    LCD ! 'video/x-raw-yuv,width=(int)800,height=(int)480' ! gstperf ! omx_videosink
     display-device=LCD
    Assertion at Line no: 445 in /db/psp_git/tools/syslink/syslink_2_10_03_20/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/SharedRegionDrv.c: (heapHandle != NULL) : failed
    Assertion at Line no: 1349 in /swcoe/sdk/cm/netra/arago-tmp/work/dm816x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r4j/syslink_2_20_02_20/packages/ti/syslink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    gst-launch-0.10: DmmDelegateHeap.c:193: DmmDelegate_createIpcHeap: Assertion `(heapHandle != 0)' failed.
    Aborted
    root@dm816x-evm:~#

    Please suggest any solution to solve this issue. Sturggling with this issue for long time.

    Thanks in advance.

    Regards,

    Salih

  • Hello,

    This is with the default EZSDK or with the modified ?

    Best Regards,

    Margarita