Skip to main content
Adrian1
Associate II
Mar 8, 2020 2:29 PM UTC
Solved

Xinit configuration in st-example-image-x11 image

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.
Adrian1
Adrian1Best answer
Associate II
Mar 10, 2020 1:02 PM UTC

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

8 replies

Adrian1
Adrian1Author
Associate II
Mar 9, 2020 9:50 AM UTC

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

modeset(0): drmSetMaster failed: Invalid argument

Adrian1
Adrian1AuthorBest answer
Associate II
Mar 10, 2020 1:02 PM UTC

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

La1
Associate III
Mar 21, 2020 10:59 AM UTC

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

Adrian1
Adrian1Author
Associate II
Mar 22, 2020 9:21 AM UTC

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

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

Regards,

Adrian

La1
Associate III
Mar 22, 2020 1:15 PM UTC

Ok, thanks, i will try :)

La1
Associate III
Mar 23, 2020 10:36 AM UTC

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.

Adrian1
Adrian1Author
Associate II
Mar 23, 2020 11:44 AM UTC

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

AShva.1
Associate III
Apr 24, 2020 12:15 PM UTC

Hi La!

I have the same problem.

You solved the login problem?

Best regards

Alexander