mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] fixup! ARM: i.MX8M: implement bootrom log viewing command
Date: Wed, 7 Dec 2022 08:03:17 +0100	[thread overview]
Message-ID: <20221207070317.GD29728@pengutronix.de> (raw)
In-Reply-To: <20221206115839.1847916-1-a.fatoum@pengutronix.de>

On Tue, Dec 06, 2022 at 12:58:39PM +0100, Ahmad Fatoum wrote:
> 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(-)

Applied, thanks

Sascha

> 
> 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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      reply	other threads:[~2022-12-07  7:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06 11:58 Ahmad Fatoum
2022-12-07  7:03 ` Sascha Hauer [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=20221207070317.GD29728@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=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