Skip to main content
Visitor II
March 8, 2020
Solved

Xinit configuration in st-example-image-x11 image

  • March 8, 2020
  • 6 replies
  • 3499 views

Hello,

I want to use SDL2 to run some application on stm32mp157 DK2.

I build st-example-image-x11 and when LDME service started I can run startX and run my application.

I want turn off LDME manager and only run startX but when I do this I get error:

  • last dlopen error /usr/lib/dri/stm_dri.so: cannot open shared object file: No such file or directory
  • failed to open any driver (search paths /usr/lib/dri
  • last dlopen error /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
  • failed to load driver: kms_swrast

In /usr/lib/dri I have only swrast_dri.so

My xorg.conf is empty.

Do I need add some driver configurations in xinitrc /etc/X11/xinit ??

Regards,

Adrian

    This topic has been closed for replies.
    Best answer by Adrian1

    Ok I found solution. In background was running psplash-drm-start which used kms driver.

    6 replies

    Adrian1Author
    Visitor II
    March 9, 2020

    I found in log that I have problem with modeset(0):

    modeset(0): drmSetMaster failed: Invalid argument

    Adrian1AuthorAnswer
    Visitor II
    March 10, 2020

    Ok I found solution. In background was running psplash-drm-start which used kms driver.

    Visitor II
    March 21, 2020

    Hi, I also build st-example-image-x11 and flashed it on stm32mp157 DK2. But when device boots, it shows login screen with "root" user and i can't log in and move to desktop. Did you have same problem ? How you logged in ? Did you change something in local.conf file or bblayers.conf ?

    Here is the screen:0693W000000UR1zQAG.jpg

    Adrian1Author
    Visitor II
    March 22, 2020

    Hi, You must configure start-up files in / etc / lxdm:

    https://wiki.archlinux.org/index.php/LXDM

    Regards,

    Adrian

    Visitor II
    March 22, 2020

    Ok, thanks, i will try :)

    Visitor II
    March 23, 2020

    When you deploy your image on board, you was able to log in, or do something ?

    Maybe i compiled it wrong. When i click on root user, black screen appear for few seconds and then system again return to login page.

    Adrian1Author
    Visitor II
    March 23, 2020

    Lxdm after click to root, runs PreLogin and PostLogin files, when it is empty it back to logging page. You moust to configure them like in instructions on:

    https://wiki.archlinux.org/index.php/LXDM

    Regards,

    Adrian

    Visitor II
    April 24, 2020

    Hi La!

    I have the same problem.

    You solved the login problem?

    Best regards

    Alexander