Referring to Solved: Re: Chromium crashes at start on iMX93 EVK - Yocto Rev: LF 6.6.23_2.0.0 - NXP Community for commands to start Chromium on i.MX93
When the Chromium is starting, there is error message appearing:
root@imx93evk:~# cd /usr/lib/chromium && ./chromium-bin --use-gl=egl --ozone-platform=wayland --disable-features=VizDisplayCompositor --no-sandbox chrome:/gpu &
[5] 1380
[4] Done cd /usr/lib/chromium && ./chromium-bin --use-gl=egl --ozone-platform=wayland --disable-features=VizDisplayCompositor --no-sandbox www.google.com
root@imx93evk:~# [1381:1381:0521/145927.037830:ERROR:policy_logger.cc(154)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[1405:1405:0521/145927.084130:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglInitialize: eglInitialize
[1405:1405:0521/145927.090998:ERROR:gl_display.cc(795)] eglInitialize Default failed with error EGL_NOT_INITIALIZED
[1405:1405:0521/145927.091227:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[1405:1405:0521/145927.091350:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1405:1405:0521/145927.092265:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglInitialize: eglInitialize
[1405:1405:0521/145927.092532:ERROR:gl_display.cc(795)] eglInitialize Default failed with error EGL_NOT_INITIALIZED
[1405:1405:0521/145927.092663:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[1405:1405:0521/145927.092931:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1405:1405:0521/145927.119523:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[1381:1381:0521/145927.790085:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
[1460:1460:0521/145927.994620:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglInitialize: eglInitialize
[1460:1460:0521/145928.007477:ERROR:gl_display.cc(795)] eglInitialize Default failed with error EGL_NOT_INITIALIZED
[1460:1460:0521/145928.008986:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[1460:1460:0521/145928.009474:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1460:1460:0521/145928.010596:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglInitialize: eglInitialize
[1460:1460:0521/145928.022473:ERROR:gl_display.cc(795)] eglInitialize Default failed with error EGL_NOT_INITIALIZED
[1460:1460:0521/145928.025155:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[1460:1460:0521/145928.025787:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1460:1460:0521/145928.058304:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[1489:1489:0521/145928.375092:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglInitialize: eglInitialize
[1489:1489:0521/145928.375412:ERROR:gl_display.cc(795)] eglInitialize Default failed with error EGL_NOT_INITIALIZED
[1489:1489:0521/145928.377926:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[1489:1489:0521/145928.378197:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1489:1489:0521/145928.391596:ERROR:gl_display.cc(520)] EGL Driver message (Error) eglInitialize: eglInitialize
[1489:1489:0521/145928.391904:ERROR:gl_display.cc(795)] eglInitialize Default failed with error EGL_NOT_INITIALIZED
[1489:1489:0521/145928.393431:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[1489:1489:0521/145928.397895:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1489:1489:0521/145928.422468:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[1522:1522:0521/145928.529821:ERROR:egl_util.cc(44)] Failed to load GLES library: /usr/lib/chromium/libGLESv2.so: /usr/lib/chromium/libGLESv2.so: cannot open shared object file: No such file or directory
[1522:1522:0521/145928.555438:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
The Chromium is looking for libGLESv2.so. However i.MX93 has no GPU 2D/3D, therefore I am not sure why there is '--use-gl=egl' option for Chromium here?
I also found libGLES in the file system:
root@imx93evk:/usr/lib/chromium# ls /usr/lib/libGL*
/usr/lib/libGL.so.1 /usr/lib/libGL.so.1.2.0 /usr/lib/libGLESv2.so /usr/lib/libGLESv2.so.2 /usr/lib/libGLESv2.so.2.0.0
May I know why OpenGL ES files are here for i.MX93?
THanks
Hello,
Please refer to the following community thread:
https://community.nxp.com/t5/i-MX-Processors/Yocto-Rev-LF6-6-36-2-1-0-bitbake-fails-when-building-wi...
Here it is specified how to build and run chromium on the i.MX93. Also, as said ther we will stop giving support to Chromium on the i.MX93. The last BSP where Chromium runs without any issue is on 6.1.55-2.2.0 (this is due of hardware limitation on 93, it doesn't have GPU).
Best regards/Saludos,
Aldo.