aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-06-12 04:06:40 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-07-13 12:05:28 +0100
commit5bd5be03bb5a80338824f7bc9223261a5a14f59d (patch)
tree589c9a0255a4710f0a6f148fc2102799c2e30424 /package/boot
parent40a26239ff00ad7bc271e33dbbef0e402eebe325 (diff)
downloadupstream-5bd5be03bb5a80338824f7bc9223261a5a14f59d.tar.gz
upstream-5bd5be03bb5a80338824f7bc9223261a5a14f59d.tar.bz2
upstream-5bd5be03bb5a80338824f7bc9223261a5a14f59d.zip
uboot-mediatek: support classic uImage.FIT with internal images in imszb
The side-effect and main motivation is to also drop the FIT structure size limit because with multiple device tree overlays it may easily grow beyond the previous 4kB limit in the future. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 98e3f82c3fb729c1d9de78fef215322528b50cb4)
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-mediatek/patches/200-cmd-add-imsz-and-imszb.patch7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/boot/uboot-mediatek/patches/200-cmd-add-imsz-and-imszb.patch b/package/boot/uboot-mediatek/patches/200-cmd-add-imsz-and-imszb.patch
index 7cf0778e47..fcbb6b28a0 100644
--- a/package/boot/uboot-mediatek/patches/200-cmd-add-imsz-and-imszb.patch
+++ b/package/boot/uboot-mediatek/patches/200-cmd-add-imsz-and-imszb.patch
@@ -70,7 +70,7 @@
{
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
-@@ -2051,6 +2051,50 @@ static const char *fit_get_image_type_pr
+@@ -2051,6 +2051,49 @@ static const char *fit_get_image_type_pr
return "unknown";
}
@@ -89,9 +89,8 @@
+
+ hdrsize = fdt_totalsize(fit);
+
-+ /* simple FIT with internal images */
-+ if (hdrsize > 0x1000)
-+ return hdrsize;
++ /* take care of simple FIT with internal images */
++ max_size = hdrsize;
+
+ images_noffset = fdt_path_offset(fit, FIT_IMAGES_PATH);
+ if (images_noffset < 0) {