From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: Setting up test.py for a platform with 2 U-Boots?
Date: Thu, 7 May 2020 17:17:15 -0600 [thread overview]
Message-ID: <567dcba1-cbc2-2ca6-c6fa-ea537c772ea1@wwwdotorg.org> (raw)
In-Reply-To: <20200507184820.GN12564@bill-the-cat>
On 5/7/20 12:48 PM, Tom Rini wrote:
> Hey,
>
> So I'm trying to enable our test.py framework on am65x_evm_r5 +
> am65x_evm_a53. The short version is this platform has an R5 core that
> sets things up and fires off the A53 cores. So there's two U-Boots and
> the console log looks like this (I used SOURCE_DATE_EPOCH to give both
> binaries the same timestamp):
...
> And that's even with:
> env__spl_skipped = True
> in u_boot_boardenv_am65x_evm_a53_na.py for the platform. Any ideas on what to
> do here? I even tried turning off serial support in the R5 side of things, but
> it still failed. Thanks!
It's odd that disabling serial support on the R5 didn't fix this; are
you sure that patch actually prevented the serial output from appearing,
and the board still booted without issue?
Anyway, u_boot_console_base.py:ConsoleBase:ensure_spawned() does roughly
this:
if SPL will print signon message:
Wait for SPL signon message
Wait for main U-Boot signon message
Maybe we need to expand that to a loop that iterates over a list of
signon messages, with the default list value being either [spl, main] or
[main] as configured by the current logic, but if the env file provides
an alternate list, that's used instead, e.g. [spl, main, spl, main] (or
whatever)?
e.g. very roughly:
msgs = self.config.env.get('env__boot_signon_msgs')
if msgs:
signons = parse(msgs)
else if spl:
signons = [spl, main]
else:
signons = [main]
for signon in signons:
self.p.expect(signon)
next prev parent reply other threads:[~2020-05-07 23:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 18:48 Setting up test.py for a platform with 2 U-Boots? Tom Rini
2020-05-07 23:17 ` Stephen Warren [this message]
2020-05-11 19:18 ` Tom Rini
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=567dcba1-cbc2-2ca6-c6fa-ea537c772ea1@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.