[U-Boot] [PATCH] Support boot Android image without address on bootm command

Tom Rini trini at konsulko.com
Fri Feb 22 13:56:08 UTC 2019


On Fri, Feb 22, 2019 at 04:28:06PM +0800, Shawn Guo wrote:

> It works perfectly fine to boot an Android boot.img with bootm command
> followed by an explicit address argument that holds the image.  But if
> we have boot.img downloaded into default 'loadaddr', and then boot it
> using bootm command without the address argument, we will run into
> problem, because U-Boot fails to find ramdisk and fdt (second area) in
> boot.img.
> 
> The current Android image support assumes there is always an address
> argument on bootm command.  However just like booting any other images,
> 'loadaddr' should be used when address argument is missing from bootm
> command.  It patches boot_get_ramdisk() and boot_get_fdt() a bit to
> support this quite common usage of bootm command for Android image.
> 
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190222/84399db2/attachment.sig>


More information about the U-Boot mailing list