From patchwork Fri Feb 19 19:25:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 62381 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1338921lbl; Fri, 19 Feb 2016 11:25:54 -0800 (PST) X-Received: by 10.194.91.233 with SMTP id ch9mr14818498wjb.121.1455909954200; Fri, 19 Feb 2016 11:25:54 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id j9si19874623wjs.83.2016.02.19.11.25.53; Fri, 19 Feb 2016 11:25:54 -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 552BFA76C9; Fri, 19 Feb 2016 20:25:48 +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 1ryPLHx17cOP; Fri, 19 Feb 2016 20:25:48 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 56897A76BB; Fri, 19 Feb 2016 20:25:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 69F92A75BA for ; Fri, 19 Feb 2016 20:25:40 +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 DSUo8oQF-QG6 for ; Fri, 19 Feb 2016 20:25:40 +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-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by theia.denx.de (Postfix) with ESMTPS id 3558DA745C for ; Fri, 19 Feb 2016 20:25:37 +0100 (CET) Received: by mail-lb0-f180.google.com with SMTP id bc4so52783243lbc.2 for ; Fri, 19 Feb 2016 11:25:37 -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:in-reply-to:references; bh=vUj+57JLilaGX6m1LrSSrzXTjKvxmCj6beBV2Yd9CM0=; b=H2Jt2cvt19n0Zz45wAkkAMnMKUYfCmGQG2NWLY47A96/foOsjYJqT6gQm/32gvZSp4 gHPxCwVewGQMqipw1BiAHTmsnr3H0Qf16MywZoPS0AP7dafDqdBoxiHQA0ijF3eHKc+Z 0jb/kxH7NvgXigAx9DjgNHChdeR1InAmGzAVA= 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:in-reply-to :references; bh=vUj+57JLilaGX6m1LrSSrzXTjKvxmCj6beBV2Yd9CM0=; b=ada6jW10TaqyixCOhkRr4XbwYKLYLX5McuS/pYneKCZ1atjrIQVUwnEWoVumKBV/L8 hsMUiYreBjv5VCt16dKROOfFim8CWUyx8Qm56pULl+7drChBu5ZnQ4gnAgAIzuUdedJB 0z7zTNWPUJbNTtqYWPfaeNL0QkZBaoyybPFG/uJRBmsTNRfeknt2EznV/58S4WlQIhPj 3FluP5BeUx9cpZubfcE9eRXpHk6NPcvVtyU6ut6sERGftudSWr2pmoMX/irwYwP4Dwpc ZMYWPMA3ABeNaDlKQK1KZNbUF2THWkHfEO2EclNIFWqlg30sZSxmd2xesYbA7Z0Sq8hp ZumA== X-Gm-Message-State: AG10YOTwdPVkyc1gcL1Qqf/PQ7+MIp1F6vbYPSlm8ugzOmnfQGF/2EEyzPuyXzmIc2qVDrBa X-Received: by 10.112.144.226 with SMTP id sp2mr5939159lbb.70.1455909936739; Fri, 19 Feb 2016 11:25:36 -0800 (PST) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id i186sm917882lfb.30.2016.02.19.11.25.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 11:25:36 -0800 (PST) From: Semen Protsenko To: u-boot@lists.denx.de Date: Fri, 19 Feb 2016 21:25:32 +0200 Message-Id: <1455909933-18961-2-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455909933-18961-1-git-send-email-semen.protsenko@linaro.org> References: <1455909933-18961-1-git-send-email-semen.protsenko@linaro.org> Cc: Tom Rini , Praneeth Bajjuri , Joe Hershberger Subject: [U-Boot] [PATCH 2/3] 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. 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, 20 insertions(+) -- 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..e7e074d 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -42,10 +42,29 @@ #define CONFIG_SYS_OMAP_ABE_SYSCK #ifndef CONFIG_SPL_BUILD + /* Define the default GPT table for eMMC */ +#ifndef CONFIG_ANDROID_BOOT #define PARTS_DEFAULT \ "uuid_disk=${uuid_gpt_disk};" \ "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}" +#else +#define PARTS_DEFAULT \ + "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}" +#endif #define DFU_ALT_INFO_MMC \ "dfu_alt_info_mmc=" \ @@ -116,6 +135,7 @@ /* Enhance our eMMC support / experience. */ #define CONFIG_CMD_GPT #define CONFIG_EFI_PARTITION +#define CONFIG_RANDOM_UUID #define CONFIG_HSMMC2_8BIT /* CPSW Ethernet */