工具/软件:
Hello Im、使用 TISDK 09.01.00.001 (2023年10月)
我正在尝试将 wpewebkit 应用程序包含到映像中。
Im 在启动 COG (网络浏览器)时出现问题。
问题似乎与 PVR 驱动程序有关。 这是日志:
root@am437x-alx:~# cog -P drm http://example.com MESA: info: Loaded libpvr_dri_support.so (cog:1115): Cog-DRM-WARNING **: 19:10:30.599: Renderer 'modeset' does not support rotation 0 (0 degrees). (cog:1115): GLib-GIO-WARNING **: 19:10:30.685: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal. It should do one of these. MESA: info: Loaded libpvr_dri_support.so Cog-Core-Message: 19:10:31.509: <http://example.com/> Load started. Cog-Core-Message: 19:10:31.631: <http://example.com/> Loading... Cog-Core-Message: 19:10:32.404: <http://example.com/> Loaded successfully. PVR:(Error): PVRDisplayBufferCreateFromFd: Failed to create display buffer from handle (err=22) [0, ] PVR:(Error): PVRDRIPlaneCreateFromFd: Failed to create display buffer from fd [0, ] PVR:(Error): PVRDRIBufferCreateFromFds: Failed to create plane from name [0, ] MESA: error: CreateImageSharedFromDmaBufs: Failed to create buffer for shared image error in client communication (pid 1115)
在日志中、您可以看到页面已加载、但在呈现时会失败
如果在运行命令之前卸载 pvrsrvkm.ko 驱动程序、它仍然会出现错误、但我认为它默认为软件渲染。
root@am437x-alx:~# modprobe -r pvrsrvkm root@am437x-alx:~# cog -P drm http://example.com MESA: info: Loaded libpvr_dri_support.so PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ] PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ] PVR:(Error): Couldn't connect to services [0, ] PVR:(Error): PVRDRIEGLGlobalDataInit: PVR Services initialisation failed [0, ] PVR:(Error): PVRDRICreateScreenImpl: Couldn't create EGL global data [0, ] MESA: info: Unloaded libpvr_dri_support.so MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri) failed to load driver: zink (cog:1220): Cog-DRM-WARNING **: 19:13:02.191: Renderer 'modeset' does not support rotation 0 (0 degrees). (cog:1220): GLib-GIO-WARNING **: 19:13:02.325: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal. It should do one of these. MESA: info: Loaded libpvr_dri_support.so PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ] PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ] PVR:(Error): Couldn't connect to services [0, ] PVR:(Error): PVRDRIEGLGlobalDataInit: PVR Services initialisation failed [0, ] PVR:(Error): PVRDRICreateScreenImpl: Couldn't create EGL global data [0, ] MESA: info: Unloaded libpvr_dri_support.so libEGL warning: egl: failed to create dri2 screen Cog-Core-Message: 19:13:06.827: <http://example.com/> Load started. Cog-Core-Message: 19:13:07.009: <http://example.com/> Loading... Cog-Core-Message: 19:13:07.762: <http://example.com/> Loaded successfully.
类似地、如果我在命令之前导出此变量以强制软件呈现、它将起作用:
导出 LIBGL_ALWAYS_SOFTWARE=1
我将向 wpewebkit 添加 gles2和 EGL 软件包配置(在它未运行之前)。 我找不到任何好的提示的错误消息,我真的不想依赖软件渲染 我会感激你的支持.