From 5d969ba3f387996b8c9cde37b15aaaf26c8bf235 Mon Sep 17 00:00:00 2001 From: Vicentiu Galanopulo Date: Tue, 4 Aug 2020 16:31:16 +0200 Subject: [PATCH] u-boot_%.bbappend: Increase CONFIG_SYS_BOOTM_LEN to 64M When booting the Nano PI Neo Air we got Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN Must RESET board to recover Increased CONFIG_SYS_BOOTM_LEN to 64M to fix the error Signed-off-by: Vicentiu Galanopulo --- ...2-Change_CONFIG_SYS_BOOTM_LEN_to_64M.patch | 33 +++++++++++++++++++ .../recipes-bsp/u-boot/u-boot_%.bbappend | 1 + 2 files changed, 34 insertions(+) create mode 100644 layers/meta-balena-allwinner/recipes-bsp/u-boot/files/0002-Change_CONFIG_SYS_BOOTM_LEN_to_64M.patch diff --git a/layers/meta-balena-allwinner/recipes-bsp/u-boot/files/0002-Change_CONFIG_SYS_BOOTM_LEN_to_64M.patch b/layers/meta-balena-allwinner/recipes-bsp/u-boot/files/0002-Change_CONFIG_SYS_BOOTM_LEN_to_64M.patch new file mode 100644 index 0000000..3513bc1 --- /dev/null +++ b/layers/meta-balena-allwinner/recipes-bsp/u-boot/files/0002-Change_CONFIG_SYS_BOOTM_LEN_to_64M.patch @@ -0,0 +1,33 @@ +From 7357ca0c303cc6986273470a550b5c37116e7f21 Mon Sep 17 00:00:00 2001 +From: Vicentiu Galanopulo +Date: Tue, 4 Aug 2020 16:06:23 +0200 +Subject: [PATCH] Update CONFIG_SYS_BOOTM_LEN to 64M + +When booting the Nano PI Neo Air we got +Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN +Must RESET board to recover + +Updated CONFIG_SYS_BOOTM_LEN to 64M to fix the error + +Upstream-Status: Inappropriate [configuration] +Signed-off-by: Vicentiu Galanopulo +--- + include/configs/sunxi-common.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h +index a5f5811275..97af50bafc 100644 +--- a/include/configs/sunxi-common.h ++++ b/include/configs/sunxi-common.h +@@ -34,6 +34,8 @@ + #ifdef CONFIG_ARM64 + #define CONFIG_BUILD_TARGET "u-boot.itb" + #define CONFIG_SYS_BOOTM_LEN (32 << 20) ++#else ++#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size 64M */ + #endif + + /* Serial & console */ +-- +2.17.1 + diff --git a/layers/meta-balena-allwinner/recipes-bsp/u-boot/u-boot_%.bbappend b/layers/meta-balena-allwinner/recipes-bsp/u-boot/u-boot_%.bbappend index 8c9a573..b2d783c 100644 --- a/layers/meta-balena-allwinner/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/layers/meta-balena-allwinner/recipes-bsp/u-boot/u-boot_%.bbappend @@ -10,4 +10,5 @@ SRC_URI_remove = "file://resin-specific-env-integration-kconfig.patch" SRC_URI_append = " \ file://0001-Add-Resin-specific-boot-command.patch \ file://resin-specific-env-integration-kconfig_reworked.patch \ + file://0002-Change_CONFIG_SYS_BOOTM_LEN_to_64M.patch \ "