From: Tom Rini Date: Mon, 29 Jul 2019 21:21:36 -0400 Subject: [U-Boot] [PATCH v2] arm: mach-keystone: Use appended original image size in image processing In-Reply-To: <20190716134938.7257-1-afd@ti.com> References: <20190716134938.7257-1-afd@ti.com> Message-ID: <20190730012136.GR16910@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jul 16, 2019 at 09:49:38AM -0400, Andrew F. Davis wrote: > When an image is signed/encrypted on K2 devices the image may get padded > to meet alignment requirements for the signature/encryption type. The > original size is appended as 4 bytes little-endian to the end of the > final image. > > Normally the trailing extra bytes are ignored and so restoring the > exact original size is not important. In the case of initrd the > original size is important as the kernel uses it to look for > additional filesystem data and can do the wrong thing when the > size is not correct. > > Read off the original size and report it back from the image post > processing stage. > > Signed-off-by: Andrew F. Davis > Reviewed-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: