Skip to contentSkip to conversation

env: ti: Increase boot partition

PATCH New Sam Protsenko 4 participants 8 messages Jul 2, 2019 – Jul 28, 2019

lore
Share & tools
lore
#0 lore raw

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.

---
 include/environment/ti/boot.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/environment/ti/boot.h +1 -1
index 05bdbbc23e..a6b245b1c7 100644
@@ -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 \
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 env: ti: Increase boot partition

Quoted 8 lines · Sam Protsenko

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.

---

Already merged as part of: https://patchwork.ozlabs.org/patch/1128012/

Quoted 19 lines
 include/environment/ti/boot.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/environment/ti/boot.h +1 -2
index 05bdbbc23e..a6b245b1c7 100644
@@ -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

#2 lore raw

PATCH 1/2 env: ti: Increase boot partition

In reply to Sam Protsenko

Hi Sam

Quoted 25 lines · Sam Protsenko

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.

---
 include/environment/ti/boot.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/environment/ti/boot.h +1 -2
index 05bdbbc23e..a6b245b1c7 100644
@@ -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 \
--
Quoted 2 lines

2.20.1

Signature · 8 lines
Best regards - Freundliche Grüsse - Meilleures salutations

Igor Opaniuk

mailto: igor.opaniuk at gmail.com
skype: igor.opanyuk
+380 (93) 836 40 67
http://ua.linkedin.com/in/iopaniuk
#4 lore raw

PATCH 2/2 arm: am57xx: Allow bootm to load larger kernels

In reply to Sam Protsenko

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.

---
 include/configs/am57xx_evm.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/am57xx_evm.h +2 -0
index 2c651aab17..9a39cd6351 100644
@@ -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 */
Signature · 1 line
2.20.1
#5 lore raw

PATCH 2/2 arm: am57xx: Allow bootm to load larger kernels

Hi Sam,

Quoted 25 lines · Sam Protsenko

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.

---
 include/configs/am57xx_evm.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/am57xx_evm.h +2 -1
index 2c651aab17..9a39cd6351 100644
@@ -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 */
--
Quoted 2 lines

2.20.1

Signature · 8 lines
Best regards - Freundliche Grüsse - Meilleures salutations

Igor Opaniuk

mailto: igor.opaniuk at gmail.com
skype: igor.opanyuk
+380 (93) 836 40 67
http://ua.linkedin.com/in/iopaniuk
#6 lore raw

PATCH 2/2 arm: am57xx: Allow bootm to load larger kernels

In reply to Sam Protsenko
Quoted 6 lines · Sam Protsenko

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.

Thanks and regards,
Lokesh

#7 lore raw

PATCH 2/2 arm: am57xx: Allow bootm to load larger kernels

In reply to Sam Protsenko
Quoted 8 lines · Sam Protsenko

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190728/16746d42/attachment.sig>