qt6 basic test for the imx93 embedded board
-
I try to set up qt6 for the imx93 custom board. I use software rasterizer softpipe and eglfs_kms.this is my configurations;
export QT_LOGGING_RULES=qt.qpa.*=true
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
export LIBGL_ALWAYS_SOFTWARE=1
export MESA_LOADER_DRIVER_OVERRIDE=swrast
export LANG=C.UTF-8
export LC_ALL=C.UTF-8After I execute example qt6. I get Kernel panic. Here is the output.
root@imx93-11x11-lpddr4x-evk:~# cd /usr/share/examples/widgets/widgets/analogclock/bin/ root@imx93-11x11-lpddr4x-evk:/usr/share/examples/widgets/widgets/analogclock/bin# ./analogclock qt.qpa.plugin: init_platform called with pluginNamesWithArguments "eglfs" platformPluginPath "" platformThemeName "" qt.qpa.plugin: Attempting to load Qt platform plugin "eglfs" with arguments QList() qt.qpa.plugin: Successfully loaded Qt platform plugin "eglfs" qt.qpa.theme: Adding platform integration's theme names to list of theme names: QList() qt.qpa.theme: Failed to create platform theme; using "null" platform theme qt.qpa.egldeviceintegration: EGL device integration plugin keys: QList("eglfs_kms", "eglfs_emu") qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): QList("eglfs_kms", "eglfs_emu") qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_kms" qt.qpa.eglfs.kms: New DRM/KMS via GBM integration created qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_kms" qt.qpa.eglfs.kms: platformInit: Load Screen Config qt.qpa.eglfs.kms: platformInit: Opening DRM device qt.qpa.input: udev device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_DRM|Device_VideoMask) qt.qpa.input: Found matching devices QList("/dev/dri/card0") qt.qpa.eglfs.kms: Found the following video devices: QList("/dev/dri/card0") qt.qpa.eglfs.kms: Using "/dev/dri/card0" qt.qpa.eglfs.kms: Using backend-provided DRM device /dev/dri/card0 qt.qpa.eglfs.kms: Creating GBM device for file descriptor 7 obtained from "/dev/dri/card0" did not find extension DRI_IMAGE_DRIVER version 1 failed to bind extensions qt.qpa.eglfs.kms: Using dedicated drm event reading thread qt.qpa.eglfs.kms: Initializing event reader for device 0xaaaafd680080 fd 7 qt.qpa.eglfs.kms: Querying EGLDisplay qt.qpa.eglfs.kms: Event reader thread: entering event loop qt.qpa.eglfs.kms: Atomic reported as supported qt.qpa.eglfs.kms: Atomic disabled qt.qpa.eglfs.kms: Found 1 planes qt.qpa.eglfs.kms: plane 0: id = 31 countFormats = 7 possibleCrtcs = 0x1 supported formats = XR24 AR24 RG16 XB24 AB24 AR15 XR15 qt.qpa.eglfs.kms: property 0: id = 8 name = 'type' qt.qpa.eglfs.kms: type is ENUM, value is 1, possible values are: qt.qpa.eglfs.kms: enum 0: Overlay - 0 qt.qpa.eglfs.kms: enum 1: Primary - 1 qt.qpa.eglfs.kms: enum 2: Cursor - 2 qt.qpa.eglfs.kms: property 1: id = 17 name = 'FB_ID' qt.qpa.eglfs.kms: type is OBJECT qt.qpa.eglfs.kms: property 2: id = 18 name = 'IN_FENCE_FD' qt.qpa.eglfs.kms: type is SIGNED_RANGE, value is -1, possible values are: qt.qpa.eglfs.kms: -1 qt.qpa.eglfs.kms: 2147483647 qt.qpa.eglfs.kms: property 3: id = 20 name = 'CRTC_ID' qt.qpa.eglfs.kms: type is OBJECT qt.qpa.eglfs.kms: property 4: id = 13 name = 'CRTC_X' qt.qpa.eglfs.kms: type is SIGNED_RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: -2147483648 qt.qpa.eglfs.kms: 2147483647 qt.qpa.eglfs.kms: property 5: id = 14 name = 'CRTC_Y' qt.qpa.eglfs.kms: type is SIGNED_RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: -2147483648 qt.qpa.eglfs.kms: 2147483647 qt.qpa.eglfs.kms: property 6: id = 15 name = 'CRTC_W' qt.qpa.eglfs.kms: type is RANGE, value is 320, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 2147483647 qt.qpa.eglfs.kms: property 7: id = 16 name = 'CRTC_H' qt.qpa.eglfs.kms: type is RANGE, value is 240, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 2147483647 qt.qpa.eglfs.kms: property 8: id = 9 name = 'SRC_X' qt.qpa.eglfs.kms: type is RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 4294967295 qt.qpa.eglfs.kms: property 9: id = 10 name = 'SRC_Y' qt.qpa.eglfs.kms: type is RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 4294967295 qt.qpa.eglfs.kms: property 10: id = 11 name = 'SRC_W' qt.qpa.eglfs.kms: type is RANGE, value is 20971520, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 4294967295 qt.qpa.eglfs.kms: property 11: id = 12 name = 'SRC_H' qt.qpa.eglfs.kms: type is RANGE, value is 15728640, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 4294967295 qt.qpa.eglfs.kms: property 12: id = 32 name = 'zpos' qt.qpa.eglfs.kms: type is RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: "LVDS1" mode count: 1 crtc index: 0 crtc id: 33 qt.qpa.eglfs.kms: mode 0 320 x 240 @ 62 hz qt.qpa.eglfs.kms: Selected mode 0 : 320 x 240 @ 62 hz for output "LVDS1" qt.qpa.eglfs.kms: Physical size is QSizeF(70, 52) mm for output "LVDS1" qt.qpa.eglfs.kms: Format is 34325258 requested_by_user = false for output "LVDS1" qt.qpa.eglfs.kms: Output "LVDS1" framebuffer size is QSize(320, 240) qt.qpa.eglfs.kms: property 0: id = 1 name = 'EDID' qt.qpa.eglfs.kms: type is BLOB qt.qpa.eglfs.kms: property 1: id = 2 name = 'DPMS' qt.qpa.eglfs.kms: type is ENUM, value is 0, possible values are: qt.qpa.eglfs.kms: enum 0: On - 0 qt.qpa.eglfs.kms: enum 1: Standby - 1 qt.qpa.eglfs.kms: enum 2: Suspend - 2 qt.qpa.eglfs.kms: enum 3: Off - 3 qt.qpa.eglfs.kms: property 2: id = 5 name = 'link-status' qt.qpa.eglfs.kms: type is ENUM, value is 0, possible values are: qt.qpa.eglfs.kms: enum 0: Good - 0 qt.qpa.eglfs.kms: enum 1: Bad - 1 qt.qpa.eglfs.kms: property 3: id = 6 name = 'non-desktop' qt.qpa.eglfs.kms: type is RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 1 qt.qpa.eglfs.kms: property 4: id = 4 name = 'TILE' qt.qpa.eglfs.kms: type is BLOB qt.qpa.eglfs.kms: property 5: id = 20 name = 'CRTC_ID' qt.qpa.eglfs.kms: type is OBJECT qt.qpa.eglfs.kms: property 0: id = 22 name = 'ACTIVE' qt.qpa.eglfs.kms: type is RANGE, value is 1, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 1 qt.qpa.eglfs.kms: property 1: id = 23 name = 'MODE_ID' qt.qpa.eglfs.kms: type is BLOB qt.qpa.eglfs.kms: property 2: id = 19 name = 'OUT_FENCE_PTR' qt.qpa.eglfs.kms: type is RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 18446744073709551615 qt.qpa.eglfs.kms: property 3: id = 24 name = 'VRR_ENABLED' qt.qpa.eglfs.kms: type is RANGE, value is 0, possible values are: qt.qpa.eglfs.kms: 0 qt.qpa.eglfs.kms: 1 qt.qpa.eglfs.kms: Output LVDS1 can use 1 planes: 31 qt.qpa.eglfs.kms: Chose plane 31 for output LVDS1 (crtc id 33) (may not be applicable) qt.qpa.eglfs.kms: No EDID data for output "LVDS1" qt.qpa.eglfs.kms: Creating new global GBM mouse cursor qt.qpa.eglfs.kms: Initializing cursor atlas from ":/cursor.json" Failed to move cursor on screen LVDS1: -14 qt.qpa.eglfs.kms: Sorted screen list: QList(OrderedScreen(QPlatformScreen=0xaaaafd695600 ("LVDS1") : 2147483647 / QPoint(0,0) / primary: false)) qt.qpa.eglfs.kms: Adding QPlatformScreen 0xaaaafd695600 ( "LVDS1" ) to QPA with geometry QRect(0,0 320x240) and isPrimary= false qt.qpa.eglfs.kms: virtual position is QPoint(0,0) Failed to move cursor on screen LVDS1: -14 qt.qpa.input: libinput: event0 - 44440000.bbnsm:pwrkey: is tagged by udev as: Keyboard qt.qpa.input: libinput: event0 - 44440000.bbnsm:pwrkey: device is a keyboard qt.qpa.input: Using xkbcommon for key mapping qt.qpa.backingstore: Check for forced use of QRhi resulted in enable false with api Null qt.qpa.eglfs.kms: Creating gbm_surface for screen LVDS1 qt.qpa.eglfs.kms: Got native format 34325258 from eglGetConfigAttrib() with return code true qt.qpa.backingstore: Setting up RHI support in 0xaaaafd71bea0 for QWidgetWindow(0xaaaafd728220, name="AnalogClockClassWindow") with QSurface::RasterSurface and requested API QPlatformBackingStoreRhiConfig::OpenGL [ 30.892195] kauditd_printk_skb: 8 callbacks suppressed [ 30.892207] audit: type=1701 audit(1709055821.132:18): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=230 comm="analogclock" exe="/usr/share/examples/widgets/widgets/analogclock/bin/analogclock" sig=4 res=1 [ 30.892684] EXT4-fs warning (device mmcblk1p2): dx_probe:891: inode #502: comm kworker/u4:3: dx entry: limit 0 != root limit 508 [ 30.897517] audit: type=1701 audit(1709055821.132:19): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=121 comm="systemd-journal" exe="/usr/lib/systemd/systemd-journald" sig=4 res=1 [ 30.915880] EXT4-fs warning (device mmcblk1p2): dx_probe:965: inode #502: comm kworker/u4:3: Corrupt directory, running e2fsck is recommended [ 30.927310] audit: type=1701 audit(1709055821.160:20): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=188 comm="klogd" exe="/usr/bin/busybox.nosuid" sig=4 res=1 [ 30.943382] Core dump to |/bin/false pipe failed [ 30.956188] Core dump to |/bin/false pipe failed [ 30.970296] Core dump to |/bin/false pipe failed [ 31.007224] audit: type=1701 audit(1709055821.248:21): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1 comm="systemd" exe="/usr/lib/systemd/systemd" sig=11 res=1 [ 31.009858] Core dump to |/bin/false pipe failed [ 31.026567] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 31.028082] audit: type=1701 audit(1709055821.272:22): auid=0 uid=0 gid=0 ses=1 pid=232 comm="dbus-daemon" exe="/usr/bin/dbus-daemon" sig=4 res=1 [ 31.028308] audit: type=1701 audit(1709055821.272:23): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=224 comm="sh" exe="/usr/bin/bash.bash" sig=4 res=1 [ 31.028745] Core dump to |/bin/false pipe failed [ 31.029577] Core dump to |/bin/false pipe failed [ 31.030672] audit: type=1701 audit(1709055821.272:24): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=196 comm="login" exe="/usr/bin/login.shadow" sig=4 res=1 [ 31.030691] Core dump to |/bin/false pipe failed [ 31.070393] audit: type=1701 audit(1709055821.312:25): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=191 comm="systemd-logind" exe="/usr/lib/systemd/systemd-logind" sig=4 res=1 [ 31.070558] Core dump to |/bin/false pipe failed [ 31.071982] audit: type=1701 audit(1709055821.312:26): auid=0 uid=0 gid=0 ses=1 pid=218 comm="systemd" exe="/usr/lib/systemd/systemd" sig=4 res=1 [ 31.072275] Core dump to |/bin/false pipe failed [ 31.073907] audit: type=1701 audit(1709055821.312:27): auid=4294967295 uid=999 gid=999 ses=4294967295 pid=190 comm="dbus-daemon" exe="/usr/bin/dbus-daemon" sig=4 res=1 [ 31.075274] Core dump to |/bin/false pipe failed [ 31.076912] Core dump to |/bin/false pipe failed [ 31.078550] Core dump to |/bin/false pipe failed [ 31.130394] Core dump to |/bin/false pipe failed [ 31.160170] CPU: 1 PID: 1 Comm: systemd Not tainted 6.6.52-lts-next-ge0f9e2afd4cf-dirty #1 [ 31.168418] Hardware name: NXP i.MX93 11X11 EVK board (DT) [ 31.173887] Call trace: [ 31.176322] dump_backtrace+0x90/0xe8 [ 31.179988] show_stack+0x18/0x24 [ 31.183298] dump_stack_lvl+0x48/0x60 [ 31.186955] dump_stack+0x18/0x24 [ 31.190257] panic+0x324/0x380 [ 31.193308] do_exit+0x7e8/0x8cc [ 31.196523] do_group_exit+0x34/0x90 [ 31.200085] get_signal+0x8a8/0x8d4 [ 31.203570] do_notify_resume+0x244/0x12d4 [ 31.207660] el0_undef+0x74/0x84 [ 31.210884] el0t_64_sync_handler+0xd8/0x12c [ 31.215148] el0t_64_sync+0x190/0x194 [ 31.218798] SMP: stopping secondary CPUs [ 31.222711] Kernel Offset: disabled [ 31.226190] CPU features: 0x0,c0000000,40028143,1000721b [ 31.231485] Memory Limit: none [ 31.234530] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---Can you help me about it to solve it?
Thanks