From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Jacques Hiblot Date: Wed, 22 Feb 2017 09:16:42 +0100 Subject: [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size In-Reply-To: References: <20170221195131.28852-1-semen.protsenko@linaro.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 22/02/2017 06:01, Lokesh Vutla wrote: > + jj > > On Wednesday 22 February 2017 01:21 AM, 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 >> --- >> 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 >> +#include >> >> #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. */ > There might be lot of side effects with this. Is it verified that this > is not overlapping with any other section? Also dfu parameters needs to > be updated. It does overlap with other regions used by DFU. I have patch queued for posting that does change the layout of MMC and eMMC to give more room to u-boot, args (dtb) and fixes the overlaps. I'll post it now. > Thanks and regards, > Lokesh >