Bug 15703 - [5.2 M1 RC2] Fail to start matchbox-desktop on beaglebone
Summary: [5.2 M1 RC2] Fail to start matchbox-desktop on beaglebone
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: 5.2
Hardware: BeagleBone Multiple
: High normal
Target Milestone: 5.2 M1
Assignee: Kevin Hao
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-12-23 06:05 UTC by Yi Zhao
Modified: 2025-01-26 07:08 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
xorg.0.log (14.36 KB, text/x-log)
2024-12-23 06:07 UTC, Yi Zhao
no flags Details
log (31.88 KB, text/plain)
2024-12-23 06:08 UTC, Yi Zhao
no flags Details
dmesg (17.81 KB, text/plain)
2024-12-23 06:08 UTC, Yi Zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2024-12-23 06:05:56 UTC
Image Location: https://valkyrie.yocto.io/pub/releases/yocto-5.2_M1.rc2/machines/beaglebone-yocto/

Git rev: master/fafd1db382cc24c53c17170df82780f9d593ca1f

Steps:
1. Download beaglebone core-image-sato-sdk wic image from the above link.
2. Deploy wic image to MircoSD card and boot up system.

The matchbox-desktop fails to start, leaving only a black screen. But I can connect the system via serial port.

The X server process is running but there is an error in Xorg.log:

root@beaglebone-yocto:~# ps aux|grep X
root       508  0.0  0.4   3236  2040 ?        S    05:50   0:00 xinit /etc/X11/Xsession -- /usr/bin/Xorg :0 -br -pn
root       518  0.0  2.5  30688 12468 tty2     S<sl+ 05:50   0:00 /usr/bin/Xorg :0 -br -pn

root@beaglebone-yocto:~# cat /var/log/Xorg.0.log |grep "EE" | grep "fail"
[    17.928] (EE) modeset(0): failed to set mode: Invalid argument
root@beaglebone-yocto:~# 

root@beaglebone-yocto:/var/log# uname -a
Linux beaglebone-yocto 6.12.3-yocto-standard #1 PREEMPT Thu Dec 12 17:25:00 UTC 2024 armv7l GNU/Linux


This issue is very similar to bug 15440
Comment 1 Yi Zhao 2024-12-23 06:07:01 UTC
Created attachment 5089 [details]
xorg.0.log
Comment 2 Yi Zhao 2024-12-23 06:08:23 UTC
Created attachment 5090 [details]
log
Comment 3 Yi Zhao 2024-12-23 06:08:50 UTC
Created attachment 5091 [details]
dmesg
Comment 4 Richard Purdie 2025-01-03 14:39:24 UTC
Possible fix posted: https://lists.yoctoproject.org/g/linux-yocto/message/14691
Comment 5 Randy MacLeod 2025-01-09 15:40:54 UTC
If we can test this and prove that we have a fix in master, then we can release M1. 

Kevin, Yi, what's the plan?
Comment 6 Kevin Hao 2025-01-10 02:00:16 UTC
The kernel fix has already been merged into linux-yocto, but it is not yet included in the SRCREV_machine in the oe-core recipe. I have just sent out a patch [1] to set a machine specific SRCREV_machine for beaglebone to pull in this fix.


[1] https://lists.yoctoproject.org/g/poky/message/13501
Comment 7 Kevin Hao 2025-01-14 13:01:34 UTC
Bruce has updated the kernel to v6.12.9, which includes the fix for this issue.
Comment 8 Denys Dmytriyenko 2025-01-15 20:03:36 UTC
FWIW, I built my own Sato images from latest Poky/master and can confirm that this issue is now resolved - X starts fine on BBB and displays Sato desktop.
Comment 9 Yi Zhao 2025-01-26 07:08:19 UTC
Verified with 5.2 M2 RC1. Git rev: 59db27de565fb33f9e4326e76ebd6fa3935557b9