public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bajjuri, Praneeth <praneeth@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size
Date: Tue, 21 Feb 2017 14:05:28 -0600	[thread overview]
Message-ID: <da010261-5b5c-892c-e27f-ecdcb88e09dc@ti.com> (raw)
In-Reply-To: <20170221195131.28852-1-semen.protsenko@linaro.org>



On 2/21/2017 1:51 PM, Sam Protsenko wrote:
> The current size of U-Boot is already ~840 KiB.
>
> This patch is to increase bootloader partition size up to 1 MiB
> and thereby fix flashing error.
>
> Also fix U-Boot environment address on eMMC ("reserved" partition), as
> it's being shifted by above change.
>
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Verified
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
> ---
>   include/configs/dra7xx_evm.h | 7 ++++---
>   1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
> index 549439e8b4..1e67c386a0 100644
> --- a/include/configs/dra7xx_evm.h
> +++ b/include/configs/dra7xx_evm.h
> @@ -13,6 +13,7 @@
>   #define __CONFIG_DRA7XX_EVM_H
>   
>   #include <environment/ti/dfu.h>
> +#include <linux/sizes.h>
>   
>   #define CONFIG_DRA7XX
>   
> @@ -28,8 +29,8 @@
>   /* MMC ENV related defines */
>   #define CONFIG_ENV_IS_IN_MMC
>   #define CONFIG_SYS_MMC_ENV_DEV		1	/* SLOT2: eMMC(1) */
> -#define CONFIG_ENV_SIZE			(128 << 10)
> -#define CONFIG_ENV_OFFSET		0xE0000
> +#define CONFIG_ENV_SIZE			SZ_128K
> +#define CONFIG_ENV_OFFSET		0x1A0000	/* "reserved" part. */
>   #define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
>   #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
>   #endif
> @@ -56,7 +57,7 @@
>   	"partitions_android=" \
>   	"uuid_disk=${uuid_gpt_disk};" \
>   	"name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \
> -	"name=bootloader,size=768K,uuid=${uuid_gpt_bootloader};" \
> +	"name=bootloader,size=1M,uuid=${uuid_gpt_bootloader};" \
>   	"name=environment,size=128K,uuid=${uuid_gpt_environment};" \
>   	"name=misc,size=128K,uuid=${uuid_gpt_misc};" \
>   	"name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \

  reply	other threads:[~2017-02-21 20:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 19:51 [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size Sam Protsenko
2017-02-21 20:05 ` Bajjuri, Praneeth [this message]
2017-02-22  5:01 ` Lokesh Vutla
2017-02-22  8:16   ` Jean-Jacques Hiblot
2017-02-22  8:27     ` [U-Boot] [PATCH] ARM: ti: Update layout for MMC and eMMC (env and dfu) Jean-Jacques Hiblot
2017-02-23 13:46       ` Sam Protsenko
2017-02-23 15:14         ` Jean-Jacques Hiblot
2017-02-23 19:28           ` Sam Protsenko
2017-02-24  8:53             ` Jean-Jacques Hiblot
2017-02-24 12:59               ` Sam Protsenko
2017-02-24 13:06                 ` Jean-Jacques Hiblot
2017-02-24 19:35                   ` Sam Protsenko
2017-03-16 12:23                     ` Jean-Jacques Hiblot
2017-03-01 15:29 ` [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size Tom Rini
2017-03-01 18:50   ` Sam Protsenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da010261-5b5c-892c-e27f-ecdcb88e09dc@ti.com \
    --to=praneeth@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox