From patchwork Fri Feb 26 19:37:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 63107 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp50500lbc; Fri, 26 Feb 2016 11:38:02 -0800 (PST) X-Received: by 10.194.234.41 with SMTP id ub9mr3312524wjc.17.1456515482952; Fri, 26 Feb 2016 11:38:02 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id q7si17644353wje.36.2016.02.26.11.38.02; Fri, 26 Feb 2016 11:38:02 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B6BBAA77D4; Fri, 26 Feb 2016 20:38:01 +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 nlNS9ChJcORV; Fri, 26 Feb 2016 20:38:01 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4038AA75BF; Fri, 26 Feb 2016 20:38:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6DA60A75BF for ; Fri, 26 Feb 2016 20:37:58 +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 txrLU4eCaxlN for ; Fri, 26 Feb 2016 20:37:58 +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-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by theia.denx.de (Postfix) with ESMTPS id 2DAF4A74BA for ; Fri, 26 Feb 2016 20:37:54 +0100 (CET) Received: by mail-lb0-f175.google.com with SMTP id ep2so20211839lbb.0 for ; Fri, 26 Feb 2016 11:37:54 -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=dOAvUbkobBNx+iOLrhsBO65pe8vqppuV/gkJh61AaBA=; b=D3yadW7qT/HSAcIGBORtncv94UqQhwdcXPCedGZ4lvxuFSiM6QGW9chkkDzjtAcqeJ 38Y6A7mIot/42Ha/ltvZVUjrixACrRAQmtSTNk3Bmq+VtnUu+aGknb7fhcRa8U7Q/GID kqrvhEC+FnKomDX0lTM52sDxKFp8WZUjDLUJw= 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=dOAvUbkobBNx+iOLrhsBO65pe8vqppuV/gkJh61AaBA=; b=kZjOAC9Ap2VXCfAU3+kWwRhCV6T59Y+XfOkSvmmZTBF005B8ecr32q/eFkIxEVx4sj AmmXFEiXWxgJsM6AoZL+BLh7p61vRweGODRPQBsgd/bWOYDyu/ypcOtkYdfzuCz4BGTJ c+7Nch/zdtF2Bb1FFCJILIoNZjdZD4ksR3+8gwIbFyv8Qo0MBNVZfKroUZxIBsBuwhwM nymD6quWTIhit5FK7UWU5732lYp3ZHJWrX3f6uKm8MVsa6DXuUppzqyByITqrdPHFiso 4VUHDYX8J3q0bgN9rZGxCv9HWaEZwredGmSvAdwC4BfxSCJouX/kgFr+QsMydxsZDQb5 TRhQ== X-Gm-Message-State: AD7BkJLbIGtG8Rt1/RJGO8qw54sA+S7C0c53Fi2jsRoKxgAi98wG7COdOQ/vm+xco2DpsGck X-Received: by 10.112.129.233 with SMTP id nz9mr1270994lbb.82.1456515474433; Fri, 26 Feb 2016 11:37:54 -0800 (PST) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id k76sm2076171lfb.37.2016.02.26.11.37.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 11:37:53 -0800 (PST) From: Semen Protsenko To: u-boot@lists.denx.de Date: Fri, 26 Feb 2016 21:37:52 +0200 Message-Id: <1456515472-21510-1-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.7.0 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH] arm: dra7xx: 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" From: Sam Protsenko "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 --- include/configs/dra7xx_evm.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) -- 2.7.0 _______________________________________________ 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 4658283..0196280 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -44,8 +44,25 @@ #ifndef CONFIG_SPL_BUILD /* 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=128K,uuid=${uuid_gpt_xloader};" \ + "name=bootloader,size=384K,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=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}" #define DFU_ALT_INFO_MMC \ "dfu_alt_info_mmc=" \ @@ -116,6 +133,7 @@ /* Enhance our eMMC support / experience. */ #define CONFIG_CMD_GPT #define CONFIG_EFI_PARTITION +#define CONFIG_RANDOM_UUID #define CONFIG_HSMMC2_8BIT /* CPSW Ethernet */