From patchwork Mon Oct 31 17:53:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 80243 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp241595qge; Mon, 31 Oct 2016 10:54:08 -0700 (PDT) X-Received: by 10.28.156.10 with SMTP id f10mr12762129wme.57.1477936448279; Mon, 31 Oct 2016 10:54:08 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id y145si25695875wmd.15.2016.10.31.10.54.07; Mon, 31 Oct 2016 10:54:08 -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 AD4E3A756F; Mon, 31 Oct 2016 18:54:03 +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 bqKluCTvbyzn; Mon, 31 Oct 2016 18:54:03 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED9F24BF90; Mon, 31 Oct 2016 18:53:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6804A7535 for ; Mon, 31 Oct 2016 18:53:53 +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 T-WQiFJntXLP for ; Mon, 31 Oct 2016 18:53:53 +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-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by theia.denx.de (Postfix) with ESMTPS id 11959A7549 for ; Mon, 31 Oct 2016 18:53:48 +0100 (CET) Received: by mail-lf0-f51.google.com with SMTP id t196so23201720lff.3 for ; Mon, 31 Oct 2016 10:53:48 -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=Yx015yRTUcwuZna+wKl7nZyjZSDnI8ME9iLB+7WuDbs=; b=eCnF9DBGijWlbVMh+jX2oMtOIfIjHPc+ofeHVgyTck+yOomejlX3dHHm6IW89TKEES 3ow7a5XcdxeGOuLtaOoTFi5/7LJ4Jtldy9M1x2FJVyLF1ia7/zUf7VJfS+KBKZIgN4JG Uaa1T5xrojMfCFL7H8N4UEL2mah397Ignk1qE= 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=Yx015yRTUcwuZna+wKl7nZyjZSDnI8ME9iLB+7WuDbs=; b=hDZrF1YEQOa69R8lAM0r0KCfD+V0OLYv4XbrX0c6cC1M4nFVepaEEE8Sgo9EVpQSSa AGUsZ4C7Ugb0uF6BCQG3hGuW01G8JL73E8sFFTb4IOcpttykI9pEik3R/7kWnrkQ4oEe P9QyFvHIlJmP5hRjeuAbnvUUPEGdZ+MYRfhZRHMJ17ENaqICSVymPN4GBgzWQYCogBzO xcFtqlo+SuAPutPmnioAVOTZkFeBYJe4BeJI6Wcs89egDezfrsvnr//Yp8XCsNuQl7VD lkyWa+LZxXPUKky7mhwL9igdqDfZtlN2W2oS7m1UHu3KlWUcHGhDq/TbNUgskEsOmPwl uRVw== X-Gm-Message-State: ABUngveQ3BZIIODWzNJtpr9qdzJnB7qpL/WC1JExiGBDklQGFn+3bDNTf8zqGSbANvp6crLp X-Received: by 10.25.43.130 with SMTP id r124mr4398070lfr.122.1477936428106; Mon, 31 Oct 2016 10:53:48 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id o194sm4763055lfo.42.2016.10.31.10.53.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Oct 2016 10:53:47 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 31 Oct 2016 19:53:46 +0200 Message-Id: <20161031175346.6943-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH v2 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 --- Changes in v2: None 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 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};" \