From cd558f77b6b1a6d0fa15cd9558df0c0262d42c91 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 6 Mar 2025 19:14:10 +0200 Subject: [PATCH] u-boot_%.bbappend: Increase CONFIG_SYS_BOOTM_LEN Increase CONFIG_SYS_BOOTM_LEN for machine raspberrypi4 (32-bit) because the kernel size has increased. This fixes the following issue when booting an image with U-Boot: Image Name: Linux-6.6.63-v7l Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 8559752 Bytes = 8.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Booting using the fdt blob at 0x2eff2000 Working FDT set to 2eff2000 Loading Kernel Image to 8000 Image too large: increase CONFIG_SYS_BOOTM_LEN Must RESET board to recover Fixes: https://github.com/agherzan/meta-raspberrypi/issues/1306 Signed-off-by: Leon Anavi --- recipes-bsp/u-boot/files/maxsize.cfg | 1 + recipes-bsp/u-boot/u-boot_%.bbappend | 1 + 2 files changed, 2 insertions(+) create mode 100644 recipes-bsp/u-boot/files/maxsize.cfg diff --git a/recipes-bsp/u-boot/files/maxsize.cfg b/recipes-bsp/u-boot/files/maxsize.cfg new file mode 100644 index 0000000..1b09831 --- /dev/null +++ b/recipes-bsp/u-boot/files/maxsize.cfg @@ -0,0 +1 @@ +CONFIG_SYS_BOOTM_LEN=0x1000000 diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index 8c707b5..5dcd940 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -5,6 +5,7 @@ SRC_URI:append:rpi = " \ " SRC_URI:append:rpi = " file://0001-rpi-always-set-fdt_addr-with-firmware-provided-FDT-address.patch" +SRC_URI:append:raspberrypi4 = " file://maxsize.cfg" DEPENDS:append:rpi = " u-boot-default-script"