[U-Boot] [PATCH 1/2] env: ti: Increase boot partition

linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel. Let's increase boot partition twice, so that boot_fit.img (with new zImage in it) can fit into "boot" partition.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org --- include/environment/ti/boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 05bdbbc23e..a6b245b1c7 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boot.h @@ -38,7 +38,7 @@ "name=uboot-env,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \ "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \ - "name=boot,size=10M,uuid=${uuid_gpt_boot};" \ + "name=boot,size=20M,uuid=${uuid_gpt_boot};" \ "name=system,size=1024M,uuid=${uuid_gpt_system};" \ "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \ VBMETA_PART \

linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel and bootm will fail to load it. Let's increase max kernel size up to 64 MiB to make it possible to run such kernel.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org --- include/configs/am57xx_evm.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index 2c651aab17..9a39cd6351 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -24,6 +24,8 @@ #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#define CONFIG_SYS_BOOTM_LEN SZ_64M + #define CONSOLEDEV "ttyO2" #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */ #define CONFIG_SYS_NS16550_COM2 UART2_BASE /* UART2 */

Hi Sam,
On Tue, Jul 2, 2019 at 8:56 PM Sam Protsenko semen.protsenko@linaro.org wrote:
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel and bootm will fail to load it. Let's increase max kernel size up to 64 MiB to make it possible to run such kernel.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org
include/configs/am57xx_evm.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h index 2c651aab17..9a39cd6351 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -24,6 +24,8 @@ #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#define CONFIG_SYS_BOOTM_LEN SZ_64M
#define CONSOLEDEV "ttyO2" #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */
#define CONFIG_SYS_NS16550_COM2 UART2_BASE /* UART2 */
2.20.1
Reviewed-by: Igor Opaniuk igor.opaniuk@gmail.com

On 02/07/19 11:26 PM, Sam Protsenko wrote:
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel and bootm will fail to load it. Let's increase max kernel size up to 64 MiB to make it possible to run such kernel.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org
Reviewed-by: Lokesh Vutla lokeshvutla@ti.com
Thanks and regards, Lokesh

On Tue, Jul 02, 2019 at 08:56:09PM +0300, Sam Protsenko wrote:
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel and bootm will fail to load it. Let's increase max kernel size up to 64 MiB to make it possible to run such kernel.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org Reviewed-by: Igor Opaniuk igor.opaniuk@gmail.com Reviewed-by: Lokesh Vutla lokeshvutla@ti.com
Applied to u-boot/master, thanks!

Hi Sam
On Tue, Jul 2, 2019 at 8:56 PM Sam Protsenko semen.protsenko@linaro.org wrote:
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel. Let's increase boot partition twice, so that boot_fit.img (with new zImage in it) can fit into "boot" partition.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org
include/environment/ti/boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 05bdbbc23e..a6b245b1c7 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boot.h @@ -38,7 +38,7 @@ "name=uboot-env,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \ "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \
"name=boot,size=10M,uuid=${uuid_gpt_boot};" \
"name=boot,size=20M,uuid=${uuid_gpt_boot};" \ "name=system,size=1024M,uuid=${uuid_gpt_system};" \ "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \ VBMETA_PART \
-- 2.20.1
Reviewed-by: Igor Opaniuk igor.opaniuk@gmail.com

On 02/07/19 11:26 PM, Sam Protsenko wrote:
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel. Let's increase boot partition twice, so that boot_fit.img (with new zImage in it) can fit into "boot" partition.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org
Reviewed-by: Lokesh Vutla lokeshvutla@ti.com
Thanks and regards, Lokesh

On Tue, Jul 2, 2019 at 8:56 PM Sam Protsenko semen.protsenko@linaro.org wrote:
linux-mainline with multi_v7_defconfig + Android configs takes more space than regular TI Android kernel. Let's increase boot partition twice, so that boot_fit.img (with new zImage in it) can fit into "boot" partition.
Signed-off-by: Sam Protsenko semen.protsenko@linaro.org
Already merged as part of: https://patchwork.ozlabs.org/patch/1128012/
include/environment/ti/boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 05bdbbc23e..a6b245b1c7 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boot.h @@ -38,7 +38,7 @@ "name=uboot-env,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \ "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \
"name=boot,size=10M,uuid=${uuid_gpt_boot};" \
"name=boot,size=20M,uuid=${uuid_gpt_boot};" \ "name=system,size=1024M,uuid=${uuid_gpt_system};" \ "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \ VBMETA_PART \
-- 2.20.1
participants (4)
-
Igor Opaniuk
-
Lokesh Vutla
-
Sam Protsenko
-
Tom Rini