cancel
Showing results for 
Search instead for 
Did you mean: 

Xinit configuration in st-example-image-x11 image

Adrian1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Adrian1
Associate III

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

View solution in original post

8 REPLIES 8
Adrian1
Associate III

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

modeset(0): drmSetMaster failed: Invalid argument

Adrian1
Associate III

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

La1
Associate III

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
Associate III

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

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

Regards,

Adrian

La1
Associate III

Ok, thanks, i will try :)

La1
Associate III

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
Associate III

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 II

Hi La!

I have the same problem.

You solved the login problem?

Best regards

Alexander