From patchwork Thu Oct 27 19:11:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 79782 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp798569qge; Thu, 27 Oct 2016 12:11:33 -0700 (PDT) X-Received: by 10.28.136.10 with SMTP id k10mr252517wmd.24.1477595493015; Thu, 27 Oct 2016 12:11:33 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id l72si4926004wmd.112.2016.10.27.12.11.32; Thu, 27 Oct 2016 12:11:33 -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 790D9A752D; Thu, 27 Oct 2016 21:11:31 +0200 (CEST) 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 bU6K4SQjvzbQ; Thu, 27 Oct 2016 21:11:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9304D4B98A; Thu, 27 Oct 2016 21:11:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8DBC34B98A for ; Thu, 27 Oct 2016 21:11:26 +0200 (CEST) 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 bc9gvBovxTIW for ; Thu, 27 Oct 2016 21:11:26 +0200 (CEST) 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-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by theia.denx.de (Postfix) with ESMTPS id 3A7BC4B951 for ; Thu, 27 Oct 2016 21:11:23 +0200 (CEST) Received: by mail-lf0-f41.google.com with SMTP id b75so39907338lfg.3 for ; Thu, 27 Oct 2016 12:11:23 -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=Tcm8QKOMx4zFAaVNSBn4nrDmm327PnRSBgdDYHsEphw=; b=gCETDAN/xQbOhhHIUD8cuAMYYYdKrijwP7vqWnzkdB6qEtZB/vjAHLLwMr4fIf7hZ+ PvdyaKCo/o79gkI8IfyYhxLq/XyVFSvYEzvTp0Cu3aF6hVDQ2PmdASBTu1S5e0t0MKal T2imqiWZwSVB3q2eTzF5kuyomk2vhxkrmYjvM= 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=Tcm8QKOMx4zFAaVNSBn4nrDmm327PnRSBgdDYHsEphw=; b=aJuyX7e2xVM49TtInukbjAS5vG9emw+BU5DdFq6CJWpkqRm9kQbCetPbcHoJ+olRiK ii2QuS9P7UgBX+ZJY58nT8W4QG2DN/70boaji1aIRZVlQgGMjkZ6kj5dZxXwXube+jyS i8dgHomTGE8nS00dp75uB0xx3P0jNS1hixduNpxApTy6aIkOEMxLOIYB4vsLWM5BAkGI R0MuMsSco3MXxzD+aM6Xk706zmmwqWIRJ/0eSuuKhZN8VE0ZNeFY++Hu2eHEGdlElNI4 c+yfBCY60+gVe/NS3Nzs0T5fnQWuHX3vGqn18NPslDJFm8Lz87h/itSOLo4qRGyPvRUu XPpQ== X-Gm-Message-State: ABUngvePfFvXpD4N6W+r67sbiY3Cki5C2MhsJHKFYbqgYJA8KVoTVSmKiUnGrbcLlrRFHmo5 X-Received: by 10.25.160.21 with SMTP id j21mr7353125lfe.166.1477595482454; Thu, 27 Oct 2016 12:11:22 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id u14sm1447879lja.46.2016.10.27.12.11.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Oct 2016 12:11:21 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 27 Oct 2016 22:11:17 +0300 Message-Id: <20161027191117.25874-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: Tom Rini , Praneeth Bajjuri Subject: [U-Boot] [PATCH 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 --- include/configs/am57xx_evm.h | 23 ++++++++++++++++++++++- 1 file changed, 22 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..72d8099 100644 --- a/include/configs/am57xx_evm.h +++ b/include/configs/am57xx_evm.h @@ -36,16 +36,37 @@ #define CONFIG_SYS_OMAP_ABE_SYSCK +#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=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}" +#endif #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 */