From patchwork Tue Nov 28 10:34:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119834 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2919753edl; Tue, 28 Nov 2017 02:39:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMYu3pvnBRZON/lNRGI/SUzMR7nORgTX4Rdu6u0XtaTzeZ6ZzAC5AsvspXt3sdrIRuNtTNZi X-Received: by 10.80.137.147 with SMTP id g19mr1953290edg.293.1511865585574; Tue, 28 Nov 2017 02:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511865585; cv=none; d=google.com; s=arc-20160816; b=ag79vefwo6uv/snONedkQEFTsWBoNgn7FbZ7rUpWA37TmAuYLnWmC5xwDIWLPfMQ/B L0BLvOSFIoBajXR0OGOcCJMGAO5L/6POtNPGtdOogivPRHQM+xdL5imXPi0N6O4Z1aKJ DYa8taCOKKMUyxyGgFk73Fmi4DYNJOWepHuHH9ylEfn6uHmjMXNRn5uPENlCYxbtp0bo YxQYkdB1ECGaVp1P+odxbxwhIDUllec/8dkZtOW2yDjvSPTUuYDa41adRbFLS5MB6d9b lhl1oh8YUQy2bCt9FJ5koYV6cOjjbGOhoi2s3XiVHSqEmdP2BVmxZ+CJw5ACuGpfuu6R 3l5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:references :in-reply-to:message-id:date:to:from:arc-authentication-results; bh=DHSbk3fCnPx62TcxvavKe4b8ra7rL+8w7n1OKlKHlZA=; b=ZVHyy2mRRrPsAN0OlUvvcHAiOevoKZUemhXjCcO3G3/mQ3ztdReJkXcvfP1LnVphKr Qg3fr7/P2sKloJl44lCKj2YqAezOB/sfkS7wG2dTV2nBvuelLnCUplw3NjyHufDon7Rq bLbzkCfl5dQRy/+/ERuFcs6yZuHa5qVeqSgagjvJUo0Xb7RJxMBexPMwMdkWDSJBuv2b cuO/Fc1AgewmFy3wrFFcgaAOEd3vp1s+HOFDIm6dDMZPz8U3Udj2W+jHkmks2/IeNsnp a8oOvhR+L63MLabi8JR51kxpJSo71iJNPc4X1kuOnGQ2rhS094mr3O/OR2G5yEJnZyae LkQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m13si7117472edd.71.2017.11.28.02.39.45; Tue, 28 Nov 2017 02:39:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 0F309C21E57; Tue, 28 Nov 2017 10:36:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1AEC3C21E90; Tue, 28 Nov 2017 10:36:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 80D44C21E32; Tue, 28 Nov 2017 10:34:45 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 124B3C21DB2 for ; Tue, 28 Nov 2017 10:34:45 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 6256020743; Tue, 28 Nov 2017 11:34:44 +0100 (CET) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 3B2B020373; Tue, 28 Nov 2017 11:34:44 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 28 Nov 2017 11:34:40 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Cc: Andre Przywara , agraf@suse.de, u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH 3/4] sunxi: Add default partition scheme X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" The partitions variable is especially useful to create a partition table from U-Boot, either directly from the U-Boot shell, or through flashing tools like fastboot and its oem format command. This is especially useful on devices with an eMMC you can't take out to flash from another system, and booting a Linux system first to flash our system then is not really practical. Signed-off-by: Maxime Ripard --- include/configs/sunxi-common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 4391a8cbc824..c9214a709221 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -493,6 +493,12 @@ extern int soft_i2c_gpio_scl; #define SUNXI_MTDPARTS_DEFAULT #endif +#define PARTS_DEFAULT \ + "name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};" \ + "name=loader2,size=984k,uuid=${uuid_gpt_loader2};" \ + "name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};" \ + "name=system,size=-,uuid=${uuid_gpt_system};" + #define CONSOLE_ENV_SETTINGS \ CONSOLE_STDIN_SETTINGS \ CONSOLE_STDOUT_SETTINGS @@ -511,6 +517,9 @@ extern int soft_i2c_gpio_scl; "console=ttyS0,115200\0" \ SUNXI_MTDIDS_DEFAULT \ SUNXI_MTDPARTS_DEFAULT \ + "uuid_gpt_esp=C12A7328-F81F-11D2-BA4B-00A0C93EC93B\0" \ + "uuid_gpt_system=0FC63DAF-8483-4772-8E79-3D69D8477DE4\0" \ + "partitions=" PARTS_DEFAULT "\0" \ BOOTCMD_SUNXI_COMPAT \ BOOTENV