From patchwork Tue Mar 8 11:42:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 63675 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1975170lbc; Tue, 8 Mar 2016 03:43:29 -0800 (PST) X-Received: by 10.28.104.131 with SMTP id d125mr17464710wmc.99.1457437409174; Tue, 08 Mar 2016 03:43:29 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id e3si3261982wjn.27.2016.03.08.03.43.28; Tue, 08 Mar 2016 03:43:29 -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 3D426A76FC; Tue, 8 Mar 2016 12:43:16 +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 M6GbAS86aEwK; Tue, 8 Mar 2016 12:43:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5CCB2A7701; Tue, 8 Mar 2016 12:43:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 42996A76F1 for ; Tue, 8 Mar 2016 12:43:04 +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 rlP0ZYg2zrHV for ; Tue, 8 Mar 2016 12:43:04 +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-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by theia.denx.de (Postfix) with ESMTPS id B5BA3A76D7 for ; Tue, 8 Mar 2016 12:43:00 +0100 (CET) Received: by mail-pa0-f47.google.com with SMTP id fl4so11115194pad.0 for ; Tue, 08 Mar 2016 03:43:00 -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=Lq2Tg1qf9aXmWj2b4ePzRT+EXkJxxD3xAGqZ6bigxUs=; b=ZKEsr0UIYkgNPMQOmmqlSfQA/xV/yQdUy8h0dy35f2axkhi5JF1tvyZwrc044I1cvO k5y/7RI5DRfhZCJdFJHkLQSXNnQ1tK5lmX/gUTeClAJeNfRE4/wccUO+XTAp9EsRRIhR ynYnFHKRCT+q7wz5xVwnyILw9jv1pMd2QVStk= 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=Lq2Tg1qf9aXmWj2b4ePzRT+EXkJxxD3xAGqZ6bigxUs=; b=mckWz15zgLuvJ0H8Fqg4OjZwTWrely8V0Epv+R/0Kum5ozH0xPGO+9q/D1oHKCAASB sSupiBPkp0pBKtr/+9QcuUHQsbDdWDSzBe8HnzExOPW1nQrONHDQaRq9JQzmvrXlSZhe DlgORPbe/H1/jeuT9tvjcyLIYBnwduQYPEbUwukM2PONfsvDhgUB90mnImgOigKX0c1u n0EY3/f9R4VjNHDlP8cLIy+fV5aL231LqtuGr51eIHmKGYH0isg0KpE+b9435xgvJhS6 keuvcLz+FmQlcQ/zIw5OgUH2EAktouvwFl0BNGt6e+h7IztqWpmjUpstqHjtBygJo7HG X1XQ== X-Gm-Message-State: AD7BkJKV0j8kzYasjXaPR4bf29daCTSNPEF0QvVDTCmacvyZ9n6w+BMgxNjbc/Bul9TfnPr0 X-Received: by 10.66.140.39 with SMTP id rd7mr40923364pab.92.1457437379404; Tue, 08 Mar 2016 03:42:59 -0800 (PST) Received: from localhost (110-170-137-3.static.asianet.co.th. [110.170.137.3]) by smtp.gmail.com with ESMTPSA id fk10sm4487142pab.33.2016.03.08.03.42.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Mar 2016 03:42:58 -0800 (PST) From: Semen Protsenko To: u-boot@lists.denx.de Date: Tue, 8 Mar 2016 18:42:25 +0700 Message-Id: <1457437348-31327-4-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457437348-31327-1-git-send-email-semen.protsenko@linaro.org> References: <1457437348-31327-1-git-send-email-semen.protsenko@linaro.org> Cc: Praneeth Bajjuri , Tom Rini , Felipe Balbi Subject: [U-Boot] [PATCH 3/6] 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" 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 AM57XX 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/am57xx_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/am57xx_evm.h b/include/configs/am57xx_evm.h index 9a740d4..d075d61 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -39,8 +39,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}" /* Fastboot */ #define CONFIG_USB_FUNCTION_FASTBOOT @@ -57,6 +74,7 @@ /* Enhance our eMMC support / experience. */ #define CONFIG_CMD_GPT #define CONFIG_EFI_PARTITION +#define CONFIG_RANDOM_UUID /* CPSW Ethernet */ #define CONFIG_CMD_DHCP