From: Tom Rini Date: Wed, 24 Jul 2019 16:05:50 -0400 Subject: [U-Boot] [PATCH] image: android: allow to wrap uImage into the Android boot image In-Reply-To: <20190603123813.48903-1-roman.stratiienko@globallogic.com> References: <20190603123813.48903-1-roman.stratiienko@globallogic.com> Message-ID: <20190724200550.GH20116@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 Mon, Jun 03, 2019 at 03:38:13PM +0300, roman.stratiienko at globallogic.com wrote: > From: Roman Stratiienko > > This allows to use any available compression format with Android boot image > > Since not all available compression formats have a magic number we should > explicitly specify type of compression. > > For this purpose using uImage format becomes very useful, as this format is > well-known by the community and mkimage tool is already available. > > Usage example: > mkimage -A ARM64 -T kernel -C lzma -d Image.lzma out/kernel > > At this moment only -C option is handled, but specifying -A and -T options > are recommended for compatibility reasons in the future. > > Kernel that compressed with LZ4 can be already used without wrapping into > the uImage, but I recommend wrapping it into the uImage in order to avoid > situations when by some mistake legacy LZ4 is used, that is interpreted as > raw Image and causes CPU to enter Exception Handler without providing any > meaningful explanation to the user. > > Signed-off-by: Roman Stratiienko 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: