From patchwork Tue Feb 21 19:51:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 94283 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp599603qgi; Tue, 21 Feb 2017 11:51:48 -0800 (PST) X-Received: by 10.28.6.78 with SMTP id 75mr16881416wmg.81.1487706708480; Tue, 21 Feb 2017 11:51:48 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id n19si29221196wra.126.2017.02.21.11.51.48; Tue, 21 Feb 2017 11:51:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DC5D14B372; Tue, 21 Feb 2017 20:51:46 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SHFj-8Rmkdw1; Tue, 21 Feb 2017 20:51:46 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7D174B64C; Tue, 21 Feb 2017 20:51:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4FE5F4B585 for ; Tue, 21 Feb 2017 20:51:38 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x-Bnn3welrpp for ; Tue, 21 Feb 2017 20:51:38 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by theia.denx.de (Postfix) with ESMTPS id 0D3FC4B372 for ; Tue, 21 Feb 2017 20:51:33 +0100 (CET) Received: by mail-lf0-f44.google.com with SMTP id l12so32260934lfe.0 for ; Tue, 21 Feb 2017 11:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=y56XX84gYT7m+Z1ebyAkpFDBPyS8IRqxDWg403rBh60=; b=hZvlxzBbbR29g8OJWZfG+xxM+zzrPVRmiBj7igLcHEc4KaXZLQ7DPueal6S6qnwJxp aAXRaeSCRix4R2+kSlPZChppJLZqHrPT17TkTGirNdqRZKNgSmudfQs1Zdm2nxTyUWtw Yo/3GPBMjwmycERoXYbvGzh/b8/AuVKlwgeRI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=y56XX84gYT7m+Z1ebyAkpFDBPyS8IRqxDWg403rBh60=; b=mYV4/wfIQfm4dqTQXc8yykqYmXYIw/7Byq8QuoFnSm6QkfgA04ApXzgbIzxqVkKRMl P8nVjaar2aJmLKWmIH9twjCSzrAE6+jOCtCSxbHpru5G4TKl84E/PVLxHNnMri2/sqIp c7S3RaI6eREnD7VvQ1iqRSIv6jP23SD/w8hhS3cpkclwpo4VfpSrrJkdSBj4GxbiRzYe 88dxsuV0tG2w3ttR5JmoGqO/LLV7Efj5m7JAqtds92i6WdnxgH5bYw2wcoPI6uq9Ggbj zfN2Yy9YniJ+PhzqFTJkQF16ylcRHhcdUxk6om3w8bSo2+65Wqdi/v46D7QXERi3BZuu RO6A== X-Gm-Message-State: AMke39lcAwrOcurB6fvvwT1aS/Z2ykXn6t2zHDtvXJ+InMjXLaAemAVFwt+H4AsfVec1Bq1I X-Received: by 10.46.33.75 with SMTP id h72mr7485838ljh.37.1487706693391; Tue, 21 Feb 2017 11:51:33 -0800 (PST) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id m16sm3058540lfj.3.2017.02.21.11.51.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Feb 2017 11:51:32 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 21 Feb 2017 21:51:31 +0200 Message-Id: <20170221195131.28852-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.11.0 Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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(-) -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Signed-off-by: Praneeth Bajjuri 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. */ #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};" \