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.

SK-AM69: Errors with DRM on yocto scarthgap build.

Part Number: SK-AM69

Tool/software:

Hello,

I have been trying to get our graphical application (using SDL and GLES) to run on the SK-AM69 evaluation board using Yocto (scarthgap) and the meta-ti-bsp layer. I am using Weston and I have been able to boot into that, but I have been running into issues trying to create a window with SDL, getting the following error:

wl_drm@19: error 0: authenticate failed

To test whether this was an issue with our program, I tried to just get the kmscube program running, and got the following DRM error:

no connected connector!

failed to initialize legacy DRM

My build/conf/local.conf just trying to run kmscube looks like:

IMAGE_INSTALL:append = " ti-img-rogue-umlibs ti-img-rogue-driver"                                                                                                                                                                                                               
PREFERRED_PROVIDER_virtual/gpudriver = "ti-img-rogue-driver"                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                
DISTRO_FEATURES:append = " systemd pam"                                                                                                                                                                                                                                         
INIT_MANAGER = "systemd"                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                
DISTRO_FEATURES:remove = " vulkan"                                                                                                                                                                                                                                              
DISTRO_FEATURES:append = " opengl"                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                
IMAGE_INSTALL:append = " libdrm"                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                
IMAGE_INSTALL:append = " kmscube"                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                
PACKAGECONFIG:append:pn-libsdl2 = " gles2 kmsdrm arm-neon"                                                                                                                                                                                                                      
PACKAGECONFIG:append:pn-weston = " kms egl wayland"                                                                                                                                                                                                                             
PACKAGECONFIG:append:pn-mesa = " gbm egl"                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-modules"                                                                                                                                                                                                                         
MACHINE ??= "am69-sk"   

I just wanted to check whether I had done anything wrong in my configuration with regards to the board, or missed any necessary installs onto the image, or whether this is an issue with drivers?

Thanks

  • Hi,

     

    The expert assigned to this in a workshop. Kindly expect a delay in the response.

     

    Best Regards,

    Sudheer

  • Hi Ben,

    Do you have a display plugged in? If so, can you try running kmsprint and sending me the output?

    You'll need to add the kms++ package to your yocto image, or you can download and build it from source using this repo: https://github.com/tomba/kmsxx.git 

    Best,
    Jared

  • Hi Jared,

    I've added kms++ to the image, and when running I get the following output:

    Connector 0 (40) DP-1 (connected)
      Encoder 0 (39) NONE
        Crtc 0 (38) 1920x1080@60.00 148.500 1920/88/44/148/+ 1080/4/5/36/+ 60 (60.00) 0x5 0x48
          Plane 0 (31) fb-id: 67 (crtcs: 0 1) 0,0 1920x1080 -> 0,0 1920x1080 (AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12)
            FB 67 1920x1080
    Connector 1 (50) HDMI-A-1 (disconnected)
      Encoder 1 (49) NONE
    

    This looks to be pretty much identical to the output given as example on the SDK pages? I can run kmstest on the connected display port as well.

    Thanks

  • Hi Ben,

    I just wanted to verify that the display was enumerating and working properly.

    It looks like the bug is within the interaction between SDL and Wayland to me, but are you saying that kmscube also didn't work?

    Can you try running:

    kmscube -D /dev/dri/card0

    Best,
    Jared