From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! ARM: i.MX8M: implement bootrom log viewing command
Date: Tue, 6 Dec 2022 12:58:39 +0100 [thread overview]
Message-ID: <20221206115839.1847916-1-a.fatoum@pengutronix.de> (raw)
FAIL is reported even for non-HAB boot, so skip that.
0x82 is apparently documented wrongly in application note, see:
https://patchwork.ozlabs.org/project/uboot/patch/20220414163623.16500-1-fedor.ross@ifm.com/
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm/mach-imx/bootrom-cmd.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-imx/bootrom-cmd.c b/arch/arm/mach-imx/bootrom-cmd.c
index 6269f86cbc0d..0238d09b169f 100644
--- a/arch/arm/mach-imx/bootrom-cmd.c
+++ b/arch/arm/mach-imx/bootrom-cmd.c
@@ -117,7 +117,8 @@ static int imx8m_bootrom_decode_log(const u32 *rom_log)
rom_log[++i]);
continue;
case 0x82:
- printf("Start to execute boot device driver pre-config\n");
+ printf("Start to execute boot device driver pre-config @%u ticks\n",
+ rom_log[++i]);
continue;
case 0x83:
printf("Boot device driver pre-config completes\n");
@@ -144,8 +145,8 @@ static int imx8m_bootrom_decode_log(const u32 *rom_log)
continue;
case 0xa0:
- printf("Image authentication result: %s (0x%08x) @%u ticks\n",
- (rom_log[i+1] & 0xFF) == 0xF0 ? "PASS" : "FAIL",
+ printf("Image authentication result: %s(0x%08x) @%u ticks\n",
+ (rom_log[i+1] & 0xFF) == 0xF0 ? "PASS " : "",
rom_log[i+1], rom_log[i+2]);
i += 2;
continue;
--
2.30.2
next reply other threads:[~2022-12-06 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-06 11:58 Ahmad Fatoum [this message]
2022-12-07 7:03 ` Sascha Hauer
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=20221206115839.1847916-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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