Hey everyone,
I am currently trying to get a x11 application running (with accelerated graphics, 2d and 3d) on the verdin-imx8m-plus-quad and eventually apalis-imx8-quad-max. It uses GLFW which tries to access OpenGL through GLX. And i’m in the process of gauging what my option are going forward.
-
Are the verdin and apalis modules (or imx8m and imx8) similar enough, so that getting my application to run on verdin, means it will run on apalis as well? Of course it would be better to test on the system it should run on but since i have physical access to a verdin module and only remote access to a apalis module, i’m testing on verdin for now.
-
Which combinations of Protocols and APIs are supported to accelerate graphical application?
- native X11 / GLX: not supported
- XWayland / GXL: not supported
I did some further research and ran this across with the team internally. Unfortunately this might not be as simple as it seems.
To summarize, OpenGL with GLX is tied to X11. X11 isn’t something that the i.MX8 graphic drivers support. Not to say that it isn’t impossible but you’d require some additional logic or in-between software that uses opengles which should work with i.MX8 graphics. Either way that is to say this won’t work out of the box as is.
- XWayland / EGL: not supported
-
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
- 5.1 Build configurations, Page 9 / 27
-
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
Here are the list of DISTRO configurations. Note that fsl-imx-fb is not supported on
i.MX 8 and fsl-imx-x11 is not supported anymore.
• fsl-imx-wayland: Wayland weston graphics.
• fsl-imx-xwayland: Wayland graphics and X11. X11 applications using EGL are not
supported.
• fsl-imx-fb: Frame Buffer graphics - no X11 or Wayland. Frame Buffer is not
supported on i.MX 8 and i.MX 9.
- frame buffer graphics: not supported
-
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
- 5.1 Build configurations, Page 9 / 27
-
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
- Torizon/Docker Container: seems possible, although i’m not sure about accelerated graphics
- Wayland / EGL / OpenGL ES: supported (recommended default)
- OpenGL ES / DRM: seems supported
- Am i missing any or have i misunderstood any of the options?
Kind Regards
Ben