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.

Linux/AM3358: HDMI issues

Part Number: AM3358

Tool/software: Linux

Hello sir/mam,

I am using beaglebone black ,Display (1280*720) and connecting through HDMI.

Issue1: It is not covering full screen.

but when i am running kmscube application it is covering full screeen and kmscube application working fine.

can you please guide me how to change the resolution. in my rfs there is no cvt,xrandr,parse-edid utility.

kindly guide me to change the resolution .

modetest command output is:

root@am335x-evm:~# modetest
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'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...done
Encoders:
id      crtc    type    possible crtcs  possible clones
25      24      TMDS    0x00000001      0x00000000

Connectors:
id      encoder status          name            size (mm)       modes   encoders
26      25      connected       HDMI-A-1        520x320         3       25
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1280x720 60 1280 1390 1470 1650 720 725 730 750 flags: nhsync, nvsync; type: preferred, driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff00530e490901000000
                        1c180103803420780aec18a354469825
                        0f484c00000001010101010101010101
                        010101010101011d007251d01e206e50
                        5500002021000018000000fd003b3d62
                        6408000a202020202020000000fc0054
                        492d4453393055783934390a00000010
                        00000000000000000000000000000157
                        02031540418423097f05830100006603
                        0c001000000000000000000000000000
                        00000000000000000000000000000000
                        00000000000000000000000000000000
                        00000000000000000000000000000000
                        00000000000000000000000000000000
                        00000000000000000000000000000000
                        00000000000000000000000000000028
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0

CRTCs:
id      fb      pos     size
24      32      (0,0)   (1280x720)
  1280x720 60 1280 1390 1470 1650 720 725 730 750 flags: nhsync, nvsync; type: preferred, driver
  props:

Planes:
id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
23      24      32      0,0             0,0     0               0x00000001
  formats: RG16 BG24 XB24
  props:
        5 type:
                flags: immutable enum
                enums: Overlay=0 Primary=1 Cursor=2
                value: 1

Frame buffers:
id      size    pitch

Issue2: I am not able to run QML Application with eglfs platform

root@am335x-evm:~/Sample_Application/clock-Application# ./clock -platform eglfs
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
found valid GBM backend : gbm_pvr.so
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)
Could not set DRM (4) CRTC (24) mode! (Invalid argument)

I have already stoped the weston service.

Kindly help me.

  • Hi,

    Please post what Linux version you are using.
  • I am using ti-processor-sdk-linux-am335x-evm-04.01.00.06 .
    linux version is 4.9.
  • Rahul Chauhan said:
    Issue1: It is not covering full screen.

    What is not covering full application? 

    You can change the resolution at boot time by setting kernel bootargs/optargs and then re-boot the board. 

    => setenv optargs video=HDMI-A-1:1280x720
    => saveenv

    Rahul Chauhan said:
    Issue2: I am not able to run QML Application with eglfs platform

    We always recommend to use the latest Processor SDK. You are on 3 versions old PLSDK. In this version of SDK, the default QT QPA is eglfs_kms. To fallback to the standard single-screen eglfs plugin, issue the following instruction at the command line or add the same at the QT environment configuration file qt_env.sh at /etc/profile.d. In PLSDK 4.3, default QT QPA is set to eglfs. 

    export QT_QPA_EGLFS_INTEGRATION=none

    Please migrate to latest Processor SDK for further progress on your work. 

  • Hello Manisha,

    I tried export QT_QPA_EGLFS_INTEGRATION=none
    after that i am getting
    root@am335x-evm:~/Sample_Application/clock-Application# ./clock -platform eglfs
    PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
    EGL Error : Could not create the egl surface: error = 0x3003

    Aborted (core dumped)

    I tried latest version (ti-processor-sdk-linux-am335x-evm-04.03.00.05-Linux-x86-Install.bin)
    but issue is same
    root@am335x-evm:~/Sample_Application/clock-Application# ./clock -platform eglfs
    PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
    EGL Error : Could not create the egl surface: error = 0x3003

    Aborted (core dumped)

    i have already enabled sgx in device tree.
    i have already stop weston service.
    kindly guide me what am i missing?

    root@am335x-evm:~# lsmod
    Module Size Used by
    bc_example 7326 0
    pru_rproc 10584 0
    pruss_intc 7163 1 pru_rproc
    usb_f_acm 5276 1
    u_serial 11171 3 usb_f_acm
    usb_f_ecm 6492 1
    pruss 9582 1 pru_rproc
    musb_dsps 9734 0
    phy_am335x 2372 2
    musb_hdrc 88357 1 musb_dsps
    phy_generic 5372 1 phy_am335x
    phy_am335x_control 2937 1 phy_am335x
    sha512_generic 10031 0
    sha512_arm 12316 0
    sha256_generic 10178 0
    sha1_generic 2928 0
    sha1_arm_neon 6325 0
    sha1_arm 3926 1 sha1_arm_neon
    md5 2219 0
    des_generic 17608 0
    cbc 2388 0
    g_multi 6145 0
    usb_f_mass_storage 37538 2 g_multi
    usb_f_rndis 15482 2 g_multi
    u_ether 13001 3 usb_f_ecm,g_multi,usb_f_rndis
    libcomposite 44446 5 usb_f_ecm,usb_f_acm,usb_f_mass_storage,g_multi,usb_f_rndis
    udc_core 19450 8 usb_f_ecm,usb_f_acm,usb_f_mass_storage,u_serial,musb_hdrc,u_ether,usb_f_rndis,libcomposite
    xfrm_user 22473 2
    xfrm4_tunnel 2040 0
    ipcomp 2257 0
    xfrm_ipcomp 4311 1 ipcomp
    esp4 6402 0
    ah4 5627 0
    af_key 27032 0
    xfrm_algo 6989 5 xfrm_user,esp4,ah4,af_key,xfrm_ipcomp
    bluetooth 337605 2
    snd_soc_simple_card 5844 0
    snd_soc_simple_card_utils 5095 1 snd_soc_simple_card
    pm33xx 6433 0
    wkup_m3_ipc 8240 1 pm33xx
    wkup_m3_rproc 3670 1
    remoteproc 28645 3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
    omap_aes_driver 19334 0
    omap_sham 21950 0
    pruss_soc_bus 4105 0
    crypto_engine 7098 1 omap_aes_driver
    ti_emif_sram 5663 1 pm33xx
    pvrsrvkm 403500 1 bc_example
    omap_wdt 4634 0
    musb_am335x 1426 0
    rtc_omap 9662 1
    sch_fq_codel 9115 3
    uio_module_drv 7251 0
    uio 9121 1 uio_module_drv
    ftdi_sio 32360 0
    usbserial 26547 1 ftdi_sio
    usbcore 202564 3 ftdi_sio,musb_hdrc,usbserial
    usb_common 4737 6 phy_am335x,udc_core,musb_hdrc,libcomposite,musb_dsps,usbcore
    cryptodev 38083 1


    root@am335x-evm:~/Sample_Application/clock-Application# eglinfo

    eglGetConfigs():
    ======================================================================

    **********************************
    EGL config number: 0
    EGL vendor string: Imagination Technologies
    EGL version string: 1.4 build 1.14@3699939 (MAIN)
    EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gt
    EGL client APIs are: OpenGL_ES

    EGL config Attributes:
    EGL_CONFIG_ID = 0x1
    EGL_BUFFER_SIZE = 0x20
    EGL_RED_SIZE = 0x8
    EGL_GREEN_SIZE = 0x8
    EGL_BLUE_SIZE = 0x8
    EGL_LUMINANCE_SIZE = 0x0
    EGL_ALPHA_SIZE = 0x8
    EGL_ALPHA_MASK_SIZE = 0x0
    EGL_BIND_TO_TEXTURE_RGB = 0x1
    EGL_BIND_TO_TEXTURE_RGBA = 0x1
    EGL_COLOR_BUFFER_TYPE = 0x308e
    EGL_CONFIG_CAVEAT = 0x3038
    EGL_CONFORMANT = 0x1
    EGL_DEPTH_SIZE = 0x18
    EGL_LEVEL = 0x0
    EGL_MAX_PBUFFER_WIDTH = 0x800
    EGL_MAX_PBUFFER_HEIGHT = 0x800
    EGL_MAX_PBUFFER_PIXELS = 0x400000
    EGL_MAX_SWAP_INTERVAL = 0xa
    EGL_MIN_SWAP_INTERVAL = 0x1
    EGL_NATIVE_RENDERABLE = 0x0
    EGL_NATIVE_VISUAL_ID = 0x0
    EGL_NATIVE_VISUAL_TYPE = 0x0
    EGL_RENDERABLE_TYPE = 0x1 EGL_OPENGL_ES_BIT
    EGL_SAMPLE_BUFFERS = 0x0
    EGL_SAMPLES = 0x0
    EGL_STENCIL_SIZE = 0x8
    EGL_SURFACE_TYPE = 0x5 EGL_PBUFFER_BIT EGL_WINDOW_BIT
    EGL_TRANSPARENT_TYPE = 0x3038
    EGL_TRANSPARENT_RED_VALUE = 0x0
    EGL_TRANSPARENT_GREEN_VALUE = 0x0
    EGL_TRANSPARENT_BLUE_VALUE = 0x0

    Creating Window surface..
    PVR:(Error): WSEGL_CreateWindowDrawable: Couldn't set CRTC: Invalid argument [0, ]
    Unable to create surface
    egl error 'EGL_BAD_ALLOC' (0x3003)
  • Hi Rahul,

    I just tried steps mentioned in this wiki page on BBB with Processor SDK 4.3 release and the QT quick animation applications works well at my end. Are you working on out of box SDK software with BBB or are their any changes to your setup compared to what I tested at my end?

  • Thank you very much manisha for your support. This document is helpful to resolve this issue.