MA-18913 Load dtb according to kernel address
authorJi Luo <ji.luo@nxp.com>
Tue, 13 Apr 2021 05:03:57 +0000 (13:03 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:19 +0000 (09:49 +0800)
commit27badbeb3b47c1151cc4d4eab3675ee839b5f716
tree78ffd2602c386a273518ba25e6580a72db193d6a
parent581fd80c340e4ea5d6ecf778ddf14b48309dc657
MA-18913 Load dtb according to kernel address

As the kernel image will get bigger after enabling some debug
tools, 64MB kernel max size is not enough. Load the dtb to the
address right after linux kernel instead of setting fixed offset
to the start of kernel image.

The "kernel_size" in boot image header is the physical size of
"Image" instead of the memory size which the linux requires to
boot.

Test: boots on imx8mp/imx8qm.

Change-Id: I5946c8530610ff0742f2a911aaeccf7636938b94
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Reviewed-by: Wang Haoran <elven.wang@nxp.com>
(cherry picked from commit c1f83790077516a64397467fce5880be0871f615)
common/image-android.c
drivers/fastboot/fb_fsl/fb_fsl_boot.c
include/image.h