From patchwork Mon Oct 31 17:53:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 80241 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp241459qge; Mon, 31 Oct 2016 10:53:48 -0700 (PDT) X-Received: by 10.194.88.131 with SMTP id bg3mr28569622wjb.32.1477936428898; Mon, 31 Oct 2016 10:53:48 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id e133si25683251wma.123.2016.10.31.10.53.48; Mon, 31 Oct 2016 10:53:48 -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 E86904BDBD; Mon, 31 Oct 2016 18:53:47 +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 Y4ZHZFiGLA9W; Mon, 31 Oct 2016 18:53:47 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 67E324B9F9; Mon, 31 Oct 2016 18:53:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E87AD4B9F9 for ; Mon, 31 Oct 2016 18:53:44 +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 6i_ULnJYyJ0b for ; Mon, 31 Oct 2016 18:53:44 +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-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by theia.denx.de (Postfix) with ESMTPS id A0E7B4B811 for ; Mon, 31 Oct 2016 18:53:40 +0100 (CET) Received: by mail-lf0-f49.google.com with SMTP id f134so104372722lfg.2 for ; Mon, 31 Oct 2016 10:53:40 -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=SOtLhAzLs1oB4rht5+29PmINJsKegKwcjeG0xYpyP6Y=; b=My9CW4jZ/c4i3TeQv6GecRvsak2wX2/q2xj2lSne8Ckaii/ZvecVQ9OUhvBAC4ZjO8 4z82QrqE+tQ0nEdZHjbjhRUZbgRxM/vQH+dOJKLXTSxCKVlp63JYPEFDHPcYaFLiThtf JIEleZb/rawHGuC+Temk8QGR9TB0pRMgRg7U8= 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=SOtLhAzLs1oB4rht5+29PmINJsKegKwcjeG0xYpyP6Y=; b=V1p25BdeU+z6k8ZI3yus/U1z/rwrIPEqORHOuKLSRVSOn26G2NdAEs+tD22yWQZJzh 7qYcCy7CkwOm3L7cGiqlKoe9/X8RssLympM2C6aiiLhuR+7Kk0PWP6/3teCEewxSDtle uNcV9kW+y9XIyn7OsmE/z/clllZfuoDwyr7udavlHSr/Bac+JpT4eg5+GVKcoKacsCwp RHr8HuSann7ieg2ED5jPnbOvG9/CG7TYMTICQcbnU1VMJzerq+e9diXbDG2PCg/wDpCN cgUBt345Bu9LViIvnp9dWHGH8e3enSAEmNTBsJSFIIWCS1kCHrfpPZgahQhkzOvGD7eC ZWXQ== X-Gm-Message-State: ABUngvd1FfPolQ7OTIkkb3eqYguK+A393auiv2PvSYZ8Glh1au5aX5qnKrd5uFKPfMo79GyZ X-Received: by 10.25.196.18 with SMTP id u18mr1697726lff.125.1477936419864; Mon, 31 Oct 2016 10:53:39 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id u126sm2865898lja.12.2016.10.31.10.53.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Oct 2016 10:53:39 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 31 Oct 2016 19:53:38 +0200 Message-Id: <20161031175338.6598-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH v2 1/3] arm: am57xx: Define 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" "fastboot oem format" command reuses "gpt write" command, which in turn requires correct partitions defined in $partitions variable. This patch adds such definition of Android partitions for DRA7XX EVM board. By default $partitions variable contains Linux partition table. In order to prepare Android environment one can run next commands from U-Boot shell: => env set partitions $partitions_android => env save After those operations one can go to fastboot mode and perform "fastboot oem format" to create Android partition table. While at it, enable CONFIG_RANDOM_UUID to spare user from providing UUIDs for each partition manually. Signed-off-by: Sam Protsenko --- Changes in v2: - do not wrap PARTS_DEFAULT in #ifndef CONFIG_SPL_BUILD include/configs/am57xx_evm.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) -- 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/am57xx_evm.h b/include/configs/am57xx_evm.h index d865f41..bcbe3cd 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -38,14 +38,33 @@ /* Define the default GPT table for eMMC */ #define PARTS_DEFAULT \ + /* Linux partitions */ \ "uuid_disk=${uuid_gpt_disk};" \ - "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}" + "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}\0" \ + /* Android partitions */ \ + "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=environment,size=128K,uuid=${uuid_gpt_environment};" \ + "name=misc,size=128K,uuid=${uuid_gpt_misc};" \ + "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};" \ + "name=system,size=768M,uuid=${uuid_gpt_system};" \ + "name=cache,size=256M,uuid=${uuid_gpt_cache};" \ + "name=ipu1,size=1M,uuid=${uuid_gpt_ipu1};" \ + "name=ipu2,size=1M,uuid=${uuid_gpt_ipu2};" \ + "name=userdata,size=-,uuid=${uuid_gpt_userdata}" #include /* Enhance our eMMC support / experience. */ #define CONFIG_CMD_GPT #define CONFIG_EFI_PARTITION +#define CONFIG_RANDOM_UUID /* CPSW Ethernet */ #define CONFIG_BOOTP_DNS /* Configurable parts of CMD_DHCP */