[U-Boot] [PATCH v3 2/2] imx: hab: Provide hab_auth_img_or_fail command

Breno Matheus Lima breno.lima at nxp.com
Wed Mar 28 00:57:44 UTC 2018


Hi All,

-----Original Message-----
From: Bryan O'Donoghue [mailto:bryan.odonoghue at linaro.org] 
Sent: segunda-feira, 26 de março de 2018 11:37
To: u-boot at lists.denx.de; Fabio Estevam <fabio.estevam at nxp.com>
Cc: rui.silva at linaro.org; sbabic at denx.de; Bryan O'Donoghue <bryan.odonoghue at linaro.org>; Utkarsh Gupta <utkarsh.gupta at nxp.com>; Breno Matheus Lima <breno.lima at nxp.com>
Subject: [PATCH v3 2/2] imx: hab: Provide hab_auth_img_or_fail command

This patch adds hab_auth_img_or_fail() a command line function that encapsulates a common usage of authenticate and failover, namely if authenticate image fails, then drop to BootROM USB recovery mode.

For secure-boot systems, this type of locked down behavior is important to ensure no unsigned images can be run.

It's possible to script this logic but, when done over and over again the environment starts get very complex and repetitive, reducing that script repetition down to a command line function makes sense.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue at linaro.org>
Cc: Utkarsh Gupta <utkarsh.gupta at nxp.com>
Cc: Breno Lima <breno.lima at nxp.com>
Cc: Fabio Estevam <fabio.estevam at nxp.com>

Tested-by: Breno Lima <breno.lima at nxp.com>

Thanks,
Breno


More information about the U-Boot mailing list