【Linux】
Build rootfs for ITX-3588J using yocto
Posted at 11/15/2022 14:42:03
View:1499
|
Replies:0
Print
Only Author
[Copy Link]
1 #
Type:
Self-Compiled Firmware
SDK Package Name:
NULL
Last Commit:
0000-00-00 00:00:00
Modification Content:
NULL
Log:
log.zip
Problem description and steps to reproduce:
Last edited by CheetahLee In 11/15/2022 14:49 Editor
I use yocto to build rootfs for ITX-3588J, with gnome desktop base wayland ; the system can start normally,But HDMI external monitor can't display;
meta-rockchip:
https://github.com/JeffyCN/meta-rockchip.git
mutter: 41.6
gnome-shell: 41.6
when display is connected,Error stack:
Thread 1 "gnome-shell" received signal SIGSEGV, Segmentation fault.
meta_kms_crtc_predict_state (crtc=0x55c7ca7410 [MetaKmsCrtc], update=0x55c9a00170) at ../mutter-41.6/src/backends/native/meta-kms-crtc.c:307
307 meta_fixed_16_rectangle_to_rectangle (plane_assignment->src_rect);
(gdb) bt
#0 meta_kms_crtc_predict_state (crtc=0x55c7ca7410 [MetaKmsCrtc], update=0x55c9a00170) at ../mutter-41.6/src/backends/native/meta-kms-crtc.c:307
#1 0x0000007fbb8ea6f8 in g_list_foreach (list=<optimized out>, func=0x7fbac01100 <meta_kms_crtc_predict_state>, user_data=user_data@entry=0x55c9a00170) at ../glib-2.70.0/glib/glist.c:1090
#2 0x0000007fbac07504 in meta_kms_impl_device_predict_states (impl_device=<optimized out>, update=update@entry=0x55c9a00170) at ../mutter-41.6/src/backends/native/meta-kms-impl-device.c:782
#3 0x0000007fbac01f0c in meta_kms_device_predict_states_in_impl (device=<optimized out>, update=update@entry=0x55c9a00170) at ../mutter-41.6/src/backends/native/meta-kms-device.c:270
#4 0x0000007fbac0b9a8 in meta_kms_process_update_in_impl (error=0x0, user_data=<synthetic pointer>, impl=<optimized out>) at ../mutter-41.6/src/backends/native/meta-kms.c:266
#5 meta_kms_run_impl_task_sync (error=0x0, user_data=<synthetic pointer>, func=<optimized out>, kms=0x55c7c6f660 [MetaKms]) at ../mutter-41.6/src/backends/native/meta-kms.c:448
#6 meta_kms_post_pending_update_sync (kms=kms@entry=0x55c7c6f660 [MetaKms], device=device@entry=0x55c7c5aca0 [MetaKmsDevice], flags=flags@entry=META_KMS_UPDATE_FLAG_NONE)
at ../mutter-41.6/src/backends/native/meta-kms.c:296 Copy the code
Mutter log:
KMS: Updating device state for /dev/dri/card0
KMS: Read CRTC 68 state: active: 0, mode: (nil), changed: no
KMS: Read CRTC 85 state: active: 0, mode: (nil), changed: no
KMS: Read CRTC 102 state: active: 0, mode: (nil), changed: no
KMS: Read CRTC 119 state: active: 1, mode: 1200x1920, changed: no
KMS: Queue mode set
WORKAREA: Invalidating work area for workspace 0
WORKAREA: Adding work area hint computation function
WORKAREA: Work area for workspace 1 is already invalid
WORKAREA: Computed work area for workspace 0: 0,64 3120 x 1856
WORKAREA: Computed work area for workspace 0 monitor 0: 0,64 1200 x 1856
WORKAREA: Computed work area for workspace 0 monitor 1: 1200,64 1920 x 1016
VERBOSE: Binding monitor 0x55a20935e0/DELL D2421H (1200, 0, 1920, 1080) x 60.000000
VERBOSE: Binding monitor 0x55a20935e0/DELL D2421H (1200, 0, 1920, 1080) x 60.000000
VERBOSE: Binding monitor 0x55a20935e0/DELL D2421H (1200, 0, 1920, 1080) x 60.000000
VERBOSE: Binding monitor 0x55a20935e0/DELL D2421H (1200, 0, 1920, 1080) x 60.000000
WORKAREA: Invalidating work area for workspace 0
WORKAREA: Work area for workspace 1 is already invalid
WORKAREA: Running work area hint computation function
WORKAREA: Computed work area for workspace 0: 0,32 3120 x 1888
WORKAREA: Computed work area for workspace 0 monitor 0: 0,32 1200 x 1888
WORKAREA: Computed work area for workspace 0 monitor 1: 1200,0 1920 x 1080
BACKEND: Unclipped stage paint
BACKEND: cogl_onscreen_swap_buffers (onscreen: 0x55a101c620)
BACKEND: Acquiring device file '/dev/dri/card0'
KMS: Setting CRTC (119) mode to 1200x1920
KMS: Postponing primary plane composite update for CRTC 119 (/dev/dri/card0)
BACKEND: Unclipped stage paint
BACKEND: cogl_onscreen_swap_buffers (onscreen: 0x55a101cda0)
BACKEND: Acquiring device file '/dev/dri/card0'
KMS: Setting CRTC (68) mode to 1920x1080
KMS: Posting global mode set updates on /dev/dri/card0
KMS: [atomic] Processing update 55
KMS: [atomic] Setting connector 185 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting connector 195 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting connector 205 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting connector 208 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 71 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 71 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 88 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 88 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 105 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 105 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 122 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 122 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 136 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 136 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 150 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 150 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting plane 164 (/dev/dri/card0) property 'CRTC_ID' (20) to 0
KMS: [atomic] Setting plane 164 (/dev/dri/card0) property 'FB_ID' (17) to 0
KMS: [atomic] Setting mode of CRTC 68 (/dev/dri/card0) to 1920x1080
KMS: [atomic] Setting CRTC 68 (/dev/dri/card0) property 'MODE_ID' (23) to 227
KMS: [atomic] Setting CRTC 68 (/dev/dri/card0) property 'ACTIVE' (22) to 1
KMS: [atomic] Setting connector 185 (/dev/dri/card0) property 'CRTC_ID' (20) to 68
KMS: [atomic] Setting mode of CRTC 119 (/dev/dri/card0) to 1200x1920
KMS: [atomic] Setting CRTC 119 (/dev/dri/card0) property 'MODE_ID' (23) to 228
KMS: [atomic] Setting CRTC 119 (/dev/dri/card0) property 'ACTIVE' (22) to 1
KMS: [atomic] Setting connector 205 (/dev/dri/card0) property 'CRTC_ID' (20) to 119
KMS: [atomic] Assigning primary plane (54, /dev/dri/card0) to 226, 1920x1080+0+0 -> 1920x1080+0+0
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'FB_ID' (17) to 226
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'CRTC_ID' (20) to 68
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'SRC_X' (9) to 0.00
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'SRC_Y' (10) to 0.00
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'SRC_W' (11) to 1920.00
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'SRC_H' (12) to 1080.00
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'CRTC_X' (13) to 0
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'CRTC_Y' (14) to 0
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'CRTC_W' (15) to 1920
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'CRTC_H' (16) to 1080
KMS: [atomic] Setting plane (54, /dev/dri/card0) rotation to 1
KMS: [atomic] Setting plane 54 (/dev/dri/card0) property 'rotation' (56) to 1
KMS: [atomic] Committing update 55, flags: ATOMIC_ALLOW_MODESET|PAGE_FLIP_EVENT
KMS: [atomic] KMS update failed: drmModeAtomicCommit: Invalid argument
KMS: [atomic] Creating transient page flip data for (68, /dev/dri/card0): 0x55a30fb690
KMS: [atomic] Creating transient page flip data for (119, /dev/dri/card0): 0x55a2097c10 Copy the code
But i use ITX-3588J_Ubuntu20.04-Gnome-r211_v0.0.1c_220402.img can display normally;
What do I need to modify to get the HDMI monitor to work properly like the firmware above.