Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

AM572x HDMI issue

Other Parts Discussed in Thread: AM5728

Hi,

       We ware using custom board having am5728 processor. After successful booting i am able to see /dev/fb0 and /dev/video10 device node.

#Output of modetest command

trying to open device 'i915'...failed.
trying to open device 'radeon'...failed.
trying to open device 'nouveau'...failed.
trying to open device 'vmwgfx'...failed.

trying to open device 'omapdrm'...success.[ 1550.097155] omapdss error: HDMI I2C Master Error   //What is this error, I am using 2 I2c2 Lines but i am using for hdmi_sda and hdmi_scl signal by doing proper pin muxing in uboot for hdmi.

Encoders:
id      crtc    type    possible crtcs  possible clones
25      28      TMDS    0x00000001      0x00000000

Connectors:
id      encoder status          type    size (mm)       modes   encoders
26      25      connected       HDMI-A  0x0             5       25
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1024x768 60 1024 1048 1184 1344 768 771 777 806 flags: nhsync, nvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 flags: phsync, pvsync; type: driver
  800x600 56 800 824 896 1024 600 601 603 625 flags: phsync, pvsync; type: driver
  848x480 60 848 864 976 1088 480 486 494 517 flags: phsync, pvsync; type: driver
  640x480 60 640 656 752 800 480 489 492 525 flags: nhsync, nvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 3

I am able to see rotating cube on display  while i am running "kmscube" application on default display . But If I want to run stored raw  or compressed  video using gstreamer or using viddec3test  kmscube command i am getting following error.

1. Playing raw video using viddec3test and kmscube  application

root@am57xx-evm:~# viddec3test 5sec0.yuv --kmscube --connector 26
0x2c070: Opening Display..
[  848.872016] omapdss error: HDMI I2C Master Error
Chosen Connector ID = 26
failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
loaded module: gbm_pvr.so
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
Using display 0x1 with EGL version 1.4
EGL Version "1.4 build 1.9@2253347"
EGL Vendor "Imagination Technologies"
EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_hibernate_process EGL_WL_bind_wayland_display EGL_KHR_surfaceless_gles2 EGL_NV_post_sub_buffer "
GL Extensions "GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture GL_TI_image_external_raw_video "
Display initialized, Render thread created
0x2c070: Opening Demuxer..
[IMGUTILS @ 0xbec02734] Picture size 0x0 is invalid
[IMGUTILS @ 0xbec0267c] Picture size 0x0 is invalid
[rawvideo @ 0x2d660] Could not find codec parameters (Video: rawvideo, yuv420p)
[rawvideo @ 0x2d660] Estimating duration from bitrate, this may be inaccurate
ERROR:open_file:54: 5sec0.yuv: lavf error -1


2. Playing .mp4 file with viddec3test application

root@am57xx-evm:~# viddec3test test.mp4 --kmscube --connector 26
0x2c070: Opening Display..
[ 1066.839758] omapdss error: HDMI I2C Master Error
Chosen Connector ID = 26
failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory //These shared object file sis not available in my file system
failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory//These shared object file sis not available in my file system
loaded module: gbm_pvr.so
PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]
Using display 0x1 with EGL version 1.4
EGL Version "1.4 build 1.9@2253347"
EGL Vendor "Imagination Technologies"
EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_hibernate_process EGL_WL_bind_wayland_display EGL_KHR_surfaceless_gles2 EGL_NV_post_sub_buffer "
GL Extensions "GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_vertex_half_float GL_OES_texture_float GL_OES_texture_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_fragment_precision_high GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_required_internalformat GL_OES_depth_texture GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot GL_EXT_multi_draw_arrays GL_EXT_texture_format_BGRA8888 GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_IMG_shader_binary GL_IMG_texture_compression_pvrtc GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot GL_IMG_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_program_binary GL_IMG_uniform_buffer_object GL_IMG_multisampled_render_to_texture GL_TI_image_external_raw_video "
Display initialized, Render thread created
0x2c070: Opening Demuxer..
[aac @ 0x31a20] channel element 2.0 is not allocated
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomiso2
    creation_time   : 2016-06-18 13:08:37
  Duration: 00:04:29.12, start: 0.000000, bitrate: 5952 kb/s
    Stream #0.0(eng): Video: h264 (Baseline), yuv420p, 1920x1200, 5817 kb/s, 29.97 fps, 3k tbn
    Metadata:
      creation_time   : 2016-06-18 13:08:37
    Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      creation_time   : 2016-06-18 13:08:37
initializing bitstream filter
0x2c070: infile=test.mp4, width=1920, height=1200
0x2c070: padded_width=2048, padded_height=1296, num_buffers=6
get_buffers not supported!
0x2c070: uv_offset=2654208
0x2c070: Opening Engine..
MmRpc_create: Error: open failed, name=/dev/rpmsg-dce //What is this error, This node is not in my filesystem
ERROR:decoder_open:207: 0x2c070: could not open engine
/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/libdce/3.00.08.02-r0/git/libdce.c:198: dce_ipc_init     Error: ERROR: Failed eError == DCE_EOK error val -4/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/libdce/3.00.08.02-r0/git/libdce.c:276:     Engine_open      Error: ERROR: Failed dce_ipc_init(coreIdx) == DCE_  Failedopen      Error: ERROR: Failed

3. Playing raw yuv file using gstreamer 

evm:~# gst-launch-1.0 filesrc location=5sec0.yuv ! v4l2sink device=/dev/video10
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.src location=5sec0.yuv ! v4l2sink device=/
ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Device '/dev/video10' is not a output device.//why its giving not a aoutput device error
Additional debug info:
/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/gstreamer1.0-plugins-good/1.2.3-r0-arago1/gst-plugins-good-1.2.3/sys/v4l2/v4l2_calls.c(594): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0:
Capabilities: 0x84204000
Setting pipeline to NULL ...
Freeing pipeline ...

Thanks & Regards

Abhishek

  • I will ask the software team to look at this.
  • Hi,

    First of all, can you share which SDK do you use?

    Abhishek Kumar47 said:
    trying to open device 'omapdrm'...success.[ 1550.097155] omapdss error: HDMI I2C Master Error   //What is this error, I am using 2 I2c2 Lines but i am using for hdmi_sda and hdmi_scl signal by doing proper pin muxing in uboot for hdmi.

    Is it possible to probe the hdmi i2c lines to see if they are toggling? Also can you attache the dts file with all the pinmux & hdmi/dss configurations? It is possible that something is not properly configured. 

    Also there was a known issue for a different processor of that family of devices, giving this exact error "HDMI I2C Master Error", could you try using a different HDMI display and see if this I2C master error disappears? 

    Abhishek Kumar47 said:
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory 
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module: gbm_pvr.so
    PVR:(Warning): PVRSRVOpenDCDevice: Warning - 138 returned [80, /bridged_pvr_dc_glue.c]

    These seem like problems with your graphics driver. Could you share the result of executing pvrsrvinit? Also what is the output of lsmod? 

    Best Regards, 
    Yordan

  • Hi,

          I am using "02.00.01.07"  version of SDK.

         Currently probing Those two lines are not possible since We are not having any test point  for those 2 pins. But since i am able to see rotating cube on HDMI display using "kmscube" so it seems it should be fine correct?

    1. lsmod Result

    root@am57xx-evm:~# lsmod
    Module                  Size  Used by
    omapdrm_pvr           340970  0

    2. pvrsvrinit executing successfully without any error or print.

    root@am57xx-evm:~# pvrsrvinit

    3.  Running any video pipleine
    gst-launch-1.0 filesrc location=test.mp4 ! qtdemux name=demux demux.video_0 ! queue ! mpeg4videoparse ! ducatimpeg4dec ! kmssink scale=true connector=26

    Setting pipeline to PAUSED ...
    MmRpc_create: Error: open failed, name=/dev/rpmsg-dce   //facing this error too i am sure rpmsg and remoteproc related modules are enable in my kernel This is the issue because of that i am unable to run any video pipleine this i need to fix ASAP
    ERROR: Pipeline doesn't want to pause.
    /home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/libdce/3.00.08.02-r0/git/libdce.c:198: dce_ipc_init     Error: ERROR: Failed eError == DCE_EOK error val -4/home/gtbldadm/processor-sdk-linux-fido-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-linux-gnueabi/libdce/3.00.08.02-r0/git/libdce.c:276:     Engine_open      Error: ERROR: Failed dce_ipc_init(coreIdx) == DCE_EOK error val -4Setting pipeline to NULL ...
    Freeing pipeline ...

    Thanks & Regards

    Abhishek

     

     


     

  • Hi Yordan,

                        Any update in this regard ?