diff mbox series

ARM: ti: Increase the allocated size for MLO.raw

Message ID 20200207103906.12760-1-faiz_abbas@ti.com
State Rejected
Delegated to: Tom Rini
Headers show
Series ARM: ti: Increase the allocated size for MLO.raw | expand

Commit Message

Faiz Abbas Feb. 7, 2020, 10:39 a.m. UTC
MLO has increased to a size greater than the allocated
128 kB in dfu_alt_info_emmc and _mmc.

Therefore, double the allocated size for MLO.raw in
the default environment.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
---
 include/environment/ti/dfu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini Feb. 7, 2020, 4:03 p.m. UTC | #1
On Fri, Feb 07, 2020 at 04:09:06PM +0530, Faiz Abbas wrote:

> MLO has increased to a size greater than the allocated
> 128 kB in dfu_alt_info_emmc and _mmc.
> 
> Therefore, double the allocated size for MLO.raw in
> the default environment.
> 
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>

128KiB was chosen as it's also a ROM-enforced max size for some
locations on (at least) am335x and older SoCs.  Possibly am43xx.  NAK.
diff mbox series

Patch

diff --git a/include/environment/ti/dfu.h b/include/environment/ti/dfu.h
index 720c3453af..3c90570107 100644
--- a/include/environment/ti/dfu.h
+++ b/include/environment/ti/dfu.h
@@ -13,7 +13,7 @@ 
 	"boot part 0 1;" \
 	"rootfs part 0 2;" \
 	"MLO fat 0 1;" \
-	"MLO.raw raw 0x100 0x100;" \
+	"MLO.raw raw 0x100 0x200;" \
 	"u-boot.img.raw raw 0x300 0x1000;" \
 	"u-env.raw raw 0x1300 0x200;" \
 	"spl-os-args.raw raw 0x1500 0x200;" \
@@ -29,7 +29,7 @@ 
 	"boot part 1 1;" \
 	"rootfs part 1 2;" \
 	"MLO fat 1 1;" \
-	"MLO.raw raw 0x100 0x100;" \
+	"MLO.raw raw 0x100 0x200;" \
 	"u-boot.img.raw raw 0x300 0x1000;" \
 	"u-env.raw raw 0x1300 0x200;" \
 	"spl-os-args.raw raw 0x1500 0x200;" \