rk3328 buildroot固件,QT eglfs 运行app报错

固件类型:自行编译的固件
SDK包名称:rk3328_linux_release_v2.5.1_20210301
SDK修改内容:rk3328 buildroot固件,QT增加eglfs
Log日志:log.zip

qt eglfs环境变量:
export QT_QPA_PLATFORM=eglfsexport QT_QPA_EGLFS_INTEGRATION=eglfs_kmsexport QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/pluginsexport QT_QPA_EGLFS_KMS_CONFIG=/etc/eglfs_kms.jsonexport QT_QPA_EGLFS_FORCE888=1export QT_LOGGING_RULES="qt.qpa.*=true"export QT_QPA_EGLFS_DEBUG=1

/etc/eglfs_kms.json内容:

{
  "device": "/dev/dri/card0",
  "hwcursor": false,
  "pbuffers": true,
  "outputs": [
    {
      "name": "HDMI-A-1",
      "mode": "1920x1080"
    }
  ]
}

QLauncher运行

报错日志:
qt.qpa.eglfs.kms: property 14: id = 57 name = ‘FEATURE’
qt.qpa.eglfs.kms: type is BITMASK, value is 0, possible bits are:
qt.qpa.eglfs.kms: bitmask 0: afbdc - 1
qt.qpa.eglfs.kms: Output HDMI1 can use 3 planes: 58 61 65
qt.qpa.eglfs.kms: Output eglfs plane is: 58
qt.qpa.eglfs.kms: Using plain OpenGL mouse cursor
qt.qpa.eglfs.kms: EDID data for output “HDMI1”: identifier ‘’, manufacturer ‘HWV’, model ‘SSN-24-’, serial ‘’, physical size: 530.00x300.00
qt.qpa.eglfs.kms: Sorted screen list: QVector(OrderedScreen(QPlatformScreen=0x31dd6780 (“HDMI1”) : 2147483647 / QPoint(0,0) / primary: false))
qt.qpa.eglfs.kms: Adding QPlatformScreen 0x31dd6780 ( “HDMI1” ) to QPA with geometry QRect(0,0 1920x1080) and isPrimary= false
qt.qpa.input: libinput: event1 -
qt.qpa.input: libinput: rk8xx_pwrkey:
qt.qpa.input: libinput: is tagged by udev as: Keyboard
qt.qpa.input: libinput: event1 -
qt.qpa.input: libinput: rk8xx_pwrkey:
qt.qpa.input: libinput: device is a keyboard
qt.qpa.input: libinput: event0 -
qt.qpa.input: libinput: ff1b0030.pwm:
qt.qpa.input: libinput: is tagged by udev as: Keyboard
qt.qpa.input: libinput: event0 -
qt.qpa.input: libinput: ff1b0030.pwm:
qt.qpa.input: libinput: device is a keyboard
qt.qpa.input: Using xkbcommon for key mapping
QLauncher available size : 1920 x 1080
Cannot find EGLConfig, returning null config
qt.qpa.eglfs.kms: Creating gbm_surface for screen HDMI1
qt.qpa.eglfs.kms: Got native format -1 from eglGetConfigAttrib() with return code false
qt.qpa.eglfs.kms: Could not create surface with EGL_NATIVE_VISUAL_ID, falling back to format 36314752
EGL Error : Could not create the egl surface: error = 0x3005

Aborted

tchip_askquestions
log.zip (2.94 KB)