Re: [PATCH 1/2] scripts: imx-image: super_root_key command depends on header_version 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 30, 2016 at 11:10:19AM +0200, Alexander Kurz wrote:
> The Super Root Key pointer exclusively exists in flash header version 1
> which is used for i.MX25, i.MX35 and i.MX51 SOC as described in freescales
> AN4547 document. Simplify the code a little bit.
> 
> Signed-off-by: Alexander Kurz <akurz@xxxxxxxx>
> ---
>  scripts/imx/imx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c
> index 70936ba..f1accc4 100644
> --- a/scripts/imx/imx.c
> +++ b/scripts/imx/imx.c
> @@ -327,7 +327,7 @@ static int do_super_root_key(struct config_data *data, int argc, char *argv[])
>  		return -EINVAL;
>  	}
>  
> -	if (data->cpu_type != 35 && data->cpu_type != 25) {
> +	if (data->header_version != 1) {
>  		fprintf(stderr, "Warning: The super_root_key command is meaningless "
>  			"on non HABv3 based SoCs\n");
>  		return 0;
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux