From patchwork Thu Oct 27 19:12:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 79785 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp799011qge; Thu, 27 Oct 2016 12:12:26 -0700 (PDT) X-Received: by 10.28.63.199 with SMTP id m190mr223820wma.96.1477595546789; Thu, 27 Oct 2016 12:12:26 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id uq5si10196047wjc.264.2016.10.27.12.12.26; Thu, 27 Oct 2016 12:12:26 -0700 (PDT) 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 dis=NONE) header.from=linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 34339A752D; Thu, 27 Oct 2016 21:12:26 +0200 (CEST) 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 qxxVqyrGvDeR; Thu, 27 Oct 2016 21:12:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A9B134BF90; Thu, 27 Oct 2016 21:12:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7BB69A7549 for ; Thu, 27 Oct 2016 21:12:22 +0200 (CEST) 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 IyRANaUUYIgC for ; Thu, 27 Oct 2016 21:12:22 +0200 (CEST) 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-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by theia.denx.de (Postfix) with ESMTPS id 33C6D4BF90 for ; Thu, 27 Oct 2016 21:12:18 +0200 (CEST) Received: by mail-lf0-f53.google.com with SMTP id b75so39925781lfg.3 for ; Thu, 27 Oct 2016 12:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=K2VecrMHdp3oPNRsqT6PJjoShHIypAE1baQfdUKi8B0=; b=LQBkILTAE+MVzmWEbH0nYxqaTeVWe6zePq9PR7c80VbeujGBD7XWY0ud6Uh4Fs1+Dm Y9PccJrTJVJsdXeD8uLVE+fCoi8bIzbx7nelpyEdAr0B9upaQ6H9c+VOGUD+B1dNbF2w XyVM9wIE4IlQUdoAdhm2amfHkknyImKOAyp/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K2VecrMHdp3oPNRsqT6PJjoShHIypAE1baQfdUKi8B0=; b=h2HfbtS6T1ZwdOBxZgGoFtGTXgHJQfrmwZ5QagkAoeRCjULzeQdgOOkGIe5AwVPMpE uIcclxnE84QqOTLfBpIG0Ta1S+iX5n8JVF60XuEoCblhEtM7zO/ZOqid1miB6b3dVye6 X2gnnCnUCJQkJwL/b39EN6wvGNIKETgTT7edpHU3aSI/AhDNlmCYnZzpzXDwI64KttRz No8xwou3YcKwRJDG6dKxAfW+0LX09VT6uP+MnRKYsKHIWHOmHAEH7l6hSPG7ubYidnAX S/VCJDuS4KiWgUve718rOGCTwwqzepUOA7zp+a0XnljmfpgeWoo4uhx3TGFgC8myf3I/ VhJA== X-Gm-Message-State: ABUngvf56GXNXkm7VW9PpIyE9i3hwqDQjSyeWiWPfRSfmvE7kULhKc5aJnAZ+JOKiU3P8XTf X-Received: by 10.25.160.206 with SMTP id j197mr6842116lfe.114.1477595537577; Thu, 27 Oct 2016 12:12:17 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id b29sm1488321lfh.8.2016.10.27.12.12.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Oct 2016 12:12:17 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 27 Oct 2016 22:12:16 +0300 Message-Id: <20161027191216.27889-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH 3/3] arm: dra7xx: Unify Android partition table 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" Make Android partition table the same as for AM57x EVM. 1. Make "bootloader" partition start from 0x300 sectors offset, so DRA7 is bootable in Android mode (see CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR option). 2. Increase "bootloader" partition size, because size of u-boot.img is about 632 KiB (when building DT defconfig, with FIT image enabled). 3. Specify "reserved" partition explicitly, rather than specifying "efs" partition start. Reserved area will be used to store U-Boot environment on eMMC. It's convenient to have it exposed explicitly so we can read/write U-Boot environment. 4. Keep all Android partitions locations intact, by reducing "reserved" partition size. CONFIG_ENV_SIZE is considered. Signed-off-by: Sam Protsenko --- include/configs/dra7xx_evm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.9.3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Tom Rini diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index 798002d..1834d04 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -54,11 +54,12 @@ /* Android partitions */ \ "partitions_android=" \ "uuid_disk=${uuid_gpt_disk};" \ - "name=xloader,start=128K,size=128K,uuid=${uuid_gpt_xloader};" \ - "name=bootloader,size=384K,uuid=${uuid_gpt_bootloader};" \ + "name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \ + "name=bootloader,size=768K,uuid=${uuid_gpt_bootloader};" \ "name=environment,size=128K,uuid=${uuid_gpt_environment};" \ "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ - "name=efs,start=1280K,size=16M,uuid=${uuid_gpt_efs};" \ + "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=10M,uuid=${uuid_gpt_recovery};" \ "name=boot,size=10M,uuid=${uuid_gpt_boot};" \