spl: fit: assume the max size of U-Boot/tee/atf is 2MB
RK3568 U-Boot is over 1MB size. Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I743cf403ddfb63d9452a2d6781d99ebdd5313e9c
This commit is contained in:
parent
ac6373ccc8
commit
3e9875cd72
|
|
@ -196,9 +196,9 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
||||||
load_addr = image_info->load_addr;
|
load_addr = image_info->load_addr;
|
||||||
|
|
||||||
if (image_comp != IH_COMP_NONE && image_comp != IH_COMP_ZIMAGE) {
|
if (image_comp != IH_COMP_NONE && image_comp != IH_COMP_ZIMAGE) {
|
||||||
/* Empirically, 1MB is enough for U-Boot, tee and atf */
|
/* Empirically, 2MB is enough for U-Boot, tee and atf */
|
||||||
if (fit_image_get_comp_addr(fit, node, &comp_addr))
|
if (fit_image_get_comp_addr(fit, node, &comp_addr))
|
||||||
comp_addr = load_addr + SZ_1M;
|
comp_addr = load_addr + FIT_MAX_SPL_IMAGE_SZ;
|
||||||
} else {
|
} else {
|
||||||
comp_addr = load_addr;
|
comp_addr = load_addr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -948,6 +948,7 @@ int bootz_setup(ulong image, ulong *start, ulong *end);
|
||||||
#define FIT_STANDALONE_PROP "standalone"
|
#define FIT_STANDALONE_PROP "standalone"
|
||||||
|
|
||||||
#define FIT_MAX_HASH_LEN HASH_MAX_DIGEST_SIZE
|
#define FIT_MAX_HASH_LEN HASH_MAX_DIGEST_SIZE
|
||||||
|
#define FIT_MAX_SPL_IMAGE_SZ SZ_2M
|
||||||
|
|
||||||
#if IMAGE_ENABLE_FIT
|
#if IMAGE_ENABLE_FIT
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue