mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <m.felsch@pengutronix.de>
To: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] scripts: imx: fix header entry offset
Date: Thu, 18 Apr 2024 10:40:58 +0200	[thread overview]
Message-ID: <20240418084058.lyeaxm7hm5gy2pkg@pengutronix.de> (raw)
In-Reply-To: <20240418083436.171366-1-benjamin.gaignard@collabora.com>

Hi Benjamin,

On 24-04-18, Benjamin Gaignard wrote:
> Header entry is at a fixed offset and doesn't rely on header lenght.
> Use header lenght create a bug when adding a signed firmware like
> the HDMI firmware for IMX8MQ.

NAK, please see b6e2b263f304 ("scripts: imx-image: header_v2: add
header_len parameter") and following commits. We would need to fix the
issue for i.MX8MQ differently.

Regards,
  Marco

> Fixes: 1c18863354dc ("scripts: imx-image: header_v2: add header_len parameter")
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
> ---
>  scripts/imx/imx-image.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
> index bc2e7af5d6..4f4d5526ed 100644
> --- a/scripts/imx/imx-image.c
> +++ b/scripts/imx/imx-image.c
> @@ -322,7 +322,7 @@ add_header_v2(const struct config_data *data, void *buf, uint32_t offset,
>  	hdr->header.length	= htobe16(32);
>  	hdr->header.version	= IVT_VERSION;
>  
> -	hdr->entry		= loadaddr + header_len;
> +	hdr->entry		= loadaddr + HEADER_LEN;
>  	if (dcdsize)
>  		hdr->dcd_ptr = loadaddr + offset + offsetof(struct imx_flash_header_v2, dcd_header);
>  	if (create_usb_image) {
> -- 
> 2.40.1
> 
> 
> 



      reply	other threads:[~2024-04-18  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18  8:34 Benjamin Gaignard
2024-04-18  8:40 ` Marco Felsch [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=20240418084058.lyeaxm7hm5gy2pkg@pengutronix.de \
    --to=m.felsch@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=benjamin.gaignard@collabora.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