Skip to contentSkip to conversation

arm: ti: boot: Fix U-Boot environment partition address

PATCH In review Sam Protsenko 3 participants 4 messages Nov 15, 2018 – Nov 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: ti: boot: Fix U-Boot environment partition address

Recent removal of obsolete partition led to shifting of starting address of "reserved" partition (which reflects U-Boot environment). Fix its start address to keep it in sync with ENV_OFFSET and DFU environment.

This patch also provides fixed start address for "reserved" partition, so that we can track when it's shifted next time.

While at it, move it before "misc" partition to keep all Android partitions together.

---
 include/environment/ti/boot.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/environment/ti/boot.h +2 -2
index 3c9c87f21b..5891009a5a 100644
@@ -34,9 +34,9 @@
 	"partitions_android=" \
 	"uuid_disk=${uuid_gpt_disk};" \
 	"name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \
-	"name=bootloader,size=1792K,uuid=${uuid_gpt_bootloader};" \
+	"name=bootloader,size=2048K,uuid=${uuid_gpt_bootloader};" \
+	"name=reserved,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \
 	"name=misc,size=128K,uuid=${uuid_gpt_misc};" \
-	"name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \
 	"name=efs,size=16M,uuid=${uuid_gpt_efs};" \
 	"name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \
 	"name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/1 arm: ti: boot: Fix U-Boot environment partition address

Hi Tom,

Can you please pull this in? It fixes the regression I introduced by accident earlier...

Thanks!

Quoted 35 lines · Sam Protsenko

Recent removal of obsolete partition led to shifting of starting address of "reserved" partition (which reflects U-Boot environment). Fix its start address to keep it in sync with ENV_OFFSET and DFU environment.

This patch also provides fixed start address for "reserved" partition, so that we can track when it's shifted next time.

While at it, move it before "misc" partition to keep all Android partitions together.

---
 include/environment/ti/boot.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/environment/ti/boot.h +2 -3
index 3c9c87f21b..5891009a5a 100644
@@ -34,9 +34,9 @@
        "partitions_android=" \
        "uuid_disk=${uuid_gpt_disk};" \
        "name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \
-       "name=bootloader,size=1792K,uuid=${uuid_gpt_bootloader};" \
+       "name=bootloader,size=2048K,uuid=${uuid_gpt_bootloader};" \
+       "name=reserved,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \
        "name=misc,size=128K,uuid=${uuid_gpt_misc};" \
-       "name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \
        "name=efs,size=16M,uuid=${uuid_gpt_efs};" \
        "name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \
        "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \
--

2.19.1

#2 lore raw

PATCH 1/1 arm: ti: boot: Fix U-Boot environment partition address

Quoted 20 lines · Sam Protsenko

Hi Tom,

Can you please pull this in? It fixes the regression I introduced by accident earlier...

Thanks!

Quoted 11 lines · Sam Protsenko

Recent removal of obsolete partition led to shifting of starting address of "reserved" partition (which reflects U-Boot environment). Fix its start address to keep it in sync with ENV_OFFSET and DFU environment.

This patch also provides fixed start address for "reserved" partition, so that we can track when it's shifted next time.

While at it, move it before "misc" partition to keep all Android partitions together.

Quoted 23 lines
Quoted 23 lines
---
  include/environment/ti/boot.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
include/environment/ti/boot.h +2 -3
index 3c9c87f21b..5891009a5a 100644
@@ -34,9 +34,9 @@
         "partitions_android=" \
         "uuid_disk=${uuid_gpt_disk};" \
         "name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \
-       "name=bootloader,size=1792K,uuid=${uuid_gpt_bootloader};" \
+       "name=bootloader,size=2048K,uuid=${uuid_gpt_bootloader};" \
+       "name=reserved,start=2432K,size=256K,uuid=${uuid_gpt_reserved};" \
         "name=misc,size=128K,uuid=${uuid_gpt_misc};" \
-       "name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \
         "name=efs,size=16M,uuid=${uuid_gpt_efs};" \
         "name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \
         "name=recovery,size=40M,uuid=${uuid_gpt_recovery};" \
--

2.19.1

#3 lore raw
In reply to Sam Protsenko
Quoted 4 lines · Sam Protsenko

Recent removal of obsolete partition led to shifting of starting address of "reserved" partition (which reflects U-Boot environment). Fix its start address to keep it in sync with ENV_OFFSET and DFU environment.

Quoted 8 lines

This patch also provides fixed start address for "reserved" partition, so that we can track when it's shifted next time.

While at it, move it before "misc" partition to keep all Android partitions together.

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/20181127/fda4a2c4/attachment.sig>