From: Stefano Babic Date: Sat, 8 Dec 2018 18:41:33 +0100 Subject: [U-Boot] [PATCH V2 1/2] SPL: Add HAB image authentication to FIT In-Reply-To: <20181117091828.23787-1-peng.fan@nxp.com> References: <20181117091828.23787-1-peng.fan@nxp.com> Message-ID: <1d5aab44-6036-b984-03be-da4eefb98586@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17/11/18 10:10, Peng Fan wrote: > From: Ye Li > > Introduce two board level callback functions to FIT image loading process, and > a SPL_FIT_FOUND flag to differentiate FIT image or RAW image. > > Implement functions in imx common SPL codes to call HAB funtion > to authenticate the FIT image. Generally, we have to sign multiple regions > in FIT image: > 1. Sign FIT FDT data (configuration) > 2. Sign FIT external data (Sub-images) > > Because the CSF supports to sign multiple memory blocks, so that we can use one > signature to cover all regions in FIT image and only authenticate once. > The authentication should be done after the entire FIT image is loaded into > memory including all sub-images. > We use "-p" option to generate FIT image to reserve a space for FIT IVT > and FIT CSF, also this help to fix the offset of the external data (u-boot-nodtb.bin, > ATF, u-boot DTB). > > The signed FIT image layout is as below: > -------------------------------------------------- > | | | | | | | | > | FIT | FIT | FIT | | U-BOOT | ATF | U-BOOT | > | FDT | IVT | CSF | | nodtb.bin | | DTB | > | | | | | | | | > -------------------------------------------------- > > Signed-off-by: Ye Li > Reviewed-by: Peng Fan > Reviewed-by: Tom Rini > Signed-off-by: Peng Fan > --- Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================