[PATCH] arm: imx: fix signature_block_hdr struct fields order

Peng Fan peng.fan at nxp.com
Wed Mar 27 03:00:49 CET 2024


+Ye
> Subject: [PATCH] arm: imx: fix signature_block_hdr struct fields order
> 
> According to the documentation (for example AN13994), for AHAB-enabled
> devices the format of the signature block is:
> 
>   +--------------+--------------+--------------+-------------+
>   | Tag          | Length - msb | Length - lsb | Version     |
>   +--------------+--------------+--------------+-------------+
>   | SRK Table offset            | Certificate offset         |
>   +-----------------------------+----------------------------+
>   | Blob offset                 | Signature offset           |
>   +-----------------------------+----------------------------+
> 
> Signed-off-by: Javier Viguera <javier.viguera at digi.com>
> ---
>  include/imx_container.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/imx_container.h b/include/imx_container.h index
> 54cd684e35d5..691c764b3e5b 100644
> --- a/include/imx_container.h
> +++ b/include/imx_container.h
> @@ -50,10 +50,10 @@ struct signature_block_hdr {
>  	u8 length_lsb;
>  	u8 length_msb;
>  	u8 tag;
> -	u16 srk_table_offset;
>  	u16 cert_offset;
> -	u16 blob_offset;
> +	u16 srk_table_offset;
>  	u16 signature_offset;
> +	u16 blob_offset;
>  	u32 reserved;
>  } __packed;
> 


More information about the U-Boot mailing list