From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org,
poky@lists.yoctoproject.org,
Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>,
Jon Mason <Jon.Mason@arm.com>, Ross Burton <ross.burton@arm.com>
Subject: Re: [poky] [PATCH 2/2] psplash: start via udev if framebuffer device detected
Date: Thu, 20 Feb 2025 18:19:58 +0200 [thread overview]
Message-ID: <Z7dWLjK7SqsewS92@nuoska> (raw)
In-Reply-To: <d3e2d988c109520827afe6a514375e5510075cc2.camel@linuxfoundation.org>
Hi,
On Thu, Feb 20, 2025 at 09:20:16AM +0000, Richard Purdie wrote:
> On Thu, 2025-02-20 at 10:35 +0200, Mikko Rapeli wrote:
> > On Wed, Feb 19, 2025 at 03:59:59PM +0000, Richard Purdie wrote:
> > > On Thu, 2025-02-06 at 16:44 +0200, Mikko Rapeli via lists.yoctoproject.org wrote:
> > > > psplash-start.service expected to find /dev/fb0 and failed
> > > > if device was not found. This failure breaks systemd
> > > > oeqa runtime test with "runqemu nographic". Starting
> > > > psplash based on detected framebuffer device fixes systemd
> > > > boot status and systemd oeqa runtime tests for qemu
> > > > boots with and without graphics support.
> > > >
> > > > Note that psplash-systemd.service still depends on /dev/fb0
> > > > so startup with multiple framebuffer devices may not work
> > > > correctly. I don't have devices with multiple framebuffer
> > > > devices to test with.
> > > >
> > > > On qemu machine with graphics, psplash displays yocto
> > > > logo correctly and boot progress bar as well. Once boot completes
> > > > to systemd "running" state, the logo is replaced by login prompt.
> > > > On qemu machine without graphics, boot completes without psplash
> > > > or failures and login over serial console works normally.
> > > > Tested with genericarm64 machine poky-altcfg distro and core-image-base
> > > > image on qemu. AMD kv260 tested as well but graphics stack is not yet
> > > > working there so boot is similar to qemu without graphics.
> > > >
> > > > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> > > > ---
> > > > �meta/recipes-core/psplash/files/fb.rules���������������� | 1 +
> > > > �.../{psplash-start.service => psplash-start@.service}��� | 5 ++---
> > > > �meta/recipes-core/psplash/files/psplash-systemd.service� | 8 +++-----
> > > > �meta/recipes-core/psplash/psplash_git.bb���������������� | 9 ++++++---
> > > > �4 files changed, 12 insertions(+), 11 deletions(-)
> > > > �create mode 100644 meta/recipes-core/psplash/files/fb.rules
> > > > �rename meta/recipes-core/psplash/files/{psplash-start.service => psplash-start@.service} (84%)
> > >
> > > Unfortunately I think this has introduced an intermittent QA test
> > > failure showing up in meta-arm in particular. Examples:
> > >
> > > https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/994/steps/22/logs/stdio
> >
> > Feb 19 01:26:42 sbsa-ref psplash-systemd[261]: Error unable to open fifo
> >
> > This means psplash.service did not start or did not yet create it. Can I somehow see the
> > build and boot configuration?
>
> If you shorten the url you can see the list of steps taken:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/994
>
>
> The failure in this case is from sbsa-ref and the "Write config" just
> before that is step 20 which is:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/994/steps/20/logs/stdio
>
> That at least gives you the config of the build. Step 21 builds it,
> then step 22 runs the tests which fail.
Thanks, this clarifies things.
> > Feb 19 01:27:12 sbsa-ref systemd[1]: /usr/lib/systemd/system/psplash-systemd.service:8: Unknown key 'ConditionFileExists' in section [Unit], ignoring.
> > Feb 19 01:27:26 sbsa-ref systemd[1]: /usr/lib/systemd/system/psplash-systemd.service:8: Unknown key 'ConditionFileExists' in section [Unit], ignoring.
> >
> > psplash.service is of type notify and fifo is created before systemd is notified, but
> > the fifo creation could also fail due to other reasons which I can't see from the logs.
> >
> > Fixing the condition will fix the systemd test failure but plsplash and progress
> > bar may have functional failures.
> >
> > I will send a patch.
> >
> > > https://gitlab.com/jonmason00/meta-arm/-/jobs/9155263483
> >
> > This looks like something completely different:
> >
> > 2025-02-17 22:43:20 - INFO���� - AssertionError: 3 != 0 : SYSTEMD_BUS_TIMEOUT=240s systemctl status --full --failed
> > 2025-02-17 22:43:20 - INFO���� - x dev-disk-by\x2duuid-38d0b388\x2d9989\x2d4744\x2d8a0a\x2d3e6be1135f5a.swap - /dev/disk/by-uuid/38d0b388-9989-4744-8a0a-3e6be1135f5a
> > 2025-02-17 22:43:20 - INFO���� - Loaded: loaded (/etc/fstab; generated)
> > 2025-02-17 22:43:20 - INFO���� - Active: failed (Result: exit-code) since Mon 2025-02-17 22:41:32 UTC; 20min left
> > 2025-02-17 22:43:20 - INFO���� - Invocation: 6e51ad1d846f4e8cbb129f05d75ac240
> > 2025-02-17 22:43:20 - INFO���� - What: /dev/disk/by-uuid/38d0b388-9989-4744-8a0a-3e6be1135f5a
> > 2025-02-17 22:43:20 - INFO���� - Docs: man:fstab(5)
> > 2025-02-17 22:43:20 - INFO���� - man:systemd-fstab-generator(8)
> > 2025-02-17 22:43:20 - INFO���� - Mem peak: 1.7M
> > 2025-02-17 22:43:20 - INFO���� - CPU: 198ms
> > 2025-02-17 22:43:20 - INFO���� -
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref systemd[1]: Activating swap /dev/disk/by-uuid/38d0b388-9989-4744-8a0a-3e6be1135f5a...
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref swapon[210]: swapon: /dev/sda3: swap format pagesize does not match.
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref swapon[210]: swapon: /dev/sda3: reinitializing the swap.
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref swapon[212]: mkswap: invalid option -- 'U'
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref swapon[212]: BusyBox v1.37.0 () multi-call binary.
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref swapon[212]: Usage: mkswap [-L LBL] BLOCKDEV [KBYTES]
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref systemd[1]: dev-disk-by\x2duuid-38d0b388\x2d9989\x2d4744\x2d8a0a\x2d3e6be1135f5a.swap: Swap process exited, code=exited, status=255/EXCEPTION
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref systemd[1]: dev-disk-by\x2duuid-38d0b388\x2d9989\x2d4744\x2d8a0a\x2d3e6be1135f5a.swap: Failed with result 'exit-code'.
> > 2025-02-17 22:43:20 - INFO���� - Feb 17 22:41:32 sbsa-ref systemd[1]: Failed to activate swap /dev/disk/by-uuid/38d0b388-9989-4744-8a0a-3e6be1135f5a.
> >
> > So these could be fixed by adding util-linux-mkswap to the images instead of
> > relying on busybox?
> >
> > I will send a patch.
>
> Thanks, and sorry, I thought that was the same failure for some reason.
No worries, patches out for both. Hope that helps.
> >
> > > but it doesn't always fail. There were other failures if you look
> > > through the meta-arm builds.
> >
> > Link to the builds?
>
> The builds for meta-arm can be found by going to the autobuilder main page:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/
>
> then "Builds" on the LHS sidebar, "Builders", "meta-arm", i.e.:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75
>
> where the failing builds are:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/986
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/991
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/992
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/994
These are psplash failures and patch is out.
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/1001
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/1003
In these two ssh communication with target timed out:
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/meta-arm/build/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/meta-arm/build/meta/lib/oeqa/core/decorator/__init__.py", line 35, in wrapped_f
return func(*args, **kwargs)
File "/srv/pokybuild/yocto-worker/meta-arm/build/meta/lib/oeqa/runtime/cases/ssh.py", line 38, in test_ssh
self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status))
AssertionError: ssh failed with "
Process killed - no output for 30 seconds. Total running time: 35 seconds." (exit code -15)
Either target did not boot correctly or was slow to respond, or I've seen these also
when no sshd was on target at all, which is the default for core-image-minimal.
Thus something in build config must be adding them to target. dropbear was built
but I don't see
IMAGE_FEATURES += "ssh-server-dropbear"
in the build configuration
https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/1545775/raw_inline
Also https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/1545905/raw_inline shows
"Test requires dropbear, or openssh-sshd to be installed"
To me this indicates that image doesn't have sshd at all.
For meta-arm kas builds this is added by ci/testimage.yml.
So this is a bit confusing to me. I don't think the target image has
any ssh daemon installed and thus all tests apart from ping and parselog prepare
fail. Some tests depend on ssh test but many just try to run ssh commands
which time out.
One way to fix this is to add sshd/dropbear to the images or make ssh test depend on either
one in the image. This is a bit problematic for anyone who tries to run these
tests for local builds. The default configs and images will fail tests.
Cheers,
-Mikko
prev parent reply other threads:[~2025-02-20 16:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 14:44 [PATCH 2/2] psplash: start via udev if framebuffer device detected Mikko Rapeli
2025-02-19 15:59 ` [poky] " Richard Purdie
2025-02-20 8:35 ` Mikko Rapeli
2025-02-20 9:20 ` Richard Purdie
2025-02-20 16:19 ` Mikko Rapeli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z7dWLjK7SqsewS92@nuoska \
--to=mikko.rapeli@linaro.org \
--cc=Jon.Mason@arm.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=poky@lists.yoctoproject.org \
--cc=richard.purdie@linuxfoundation.org \
--cc=ross.burton@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox