From patchwork Tue Nov 28 10:34:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119835 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2920245edl; Tue, 28 Nov 2017 02:40:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMaXReEnaAZoNKTYkG6pYz7Ax/buZJ6S17lnsbQyda7oIUbbNX2WkHjEzpUxx5uoiujZcOTO X-Received: by 10.80.219.69 with SMTP id b5mr2030074edl.218.1511865622003; Tue, 28 Nov 2017 02:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511865621; cv=none; d=google.com; s=arc-20160816; b=WOXGZQdci7a/177o+oqgrgGTdnTqu3CWu/Y0y7IluLS+g4/xHFlSXpbN7pCzwEcW5e nB9Mhy4tDN9R+a5JIa9c35reE/ySk0fVD/uQit80gh4ocIEeHMBGQoLr70E0zKFat8UW WtIGHSZsrbl+qi7y4VSZH+WMTv6vyyghjEhFTUS09OnV/dbUWuKUXXz4KeQ0j8NQ5Ru2 KtB+zujdI4a99DPYoaDi0U40W6Ngor1YVmYjW6b7yvRfVlKjnL0DAFMgnFiUFHFqiunE KePpk9fjZdPwG/Q7k5JxKuLHWaqMMdloSyancj7bKCUuEBAsTQ7RnaD8KacHe2/gFGDr MP9Q== 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=SLny1HRIPX0v7oulEioUsIBcCaADZV6Sk5fOx6mvb7Q=; b=zcd4zek70inrjf/I/+CM8TFA/gxck1wsds/eEBr7hFvQHJLfNAdrHzzIQ/DSz1q0GC SeeBr1gqL2hwxV06toOI9pHpAsW5IlAvGlmfcEaTg0o0V4ueitXrbKh8M+hjdkR1VxrM /i5G6+RMnbjqCVxFO7tUqsG12H0ln1aZzBqTrgRVNMhrg1UhY6zLNxz584RyBLcjfD9O zBflR0i0Pcd5I1B6qr+U1vUL+zi6LrzsDt9UKVyg5p08Kr83qhaLimKlxj91Tu798x09 SyYX1WYtHhGgncVmtPJvjcJP0zow9tTI5xN1r8/yO91VaIZYWiKxoFk/byc5yneaNs3d 0Biw== 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 b52si2844272ede.102.2017.11.28.02.40.21; Tue, 28 Nov 2017 02:40:21 -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 9232BC21EA6; Tue, 28 Nov 2017 10:36:52 +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 B70A1C21E40; Tue, 28 Nov 2017 10:36:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EA9DFC21E57; Tue, 28 Nov 2017 10:34:44 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 4618BC21E35 for ; Tue, 28 Nov 2017 10:34:44 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 97DD82073F; Tue, 28 Nov 2017 11:34:43 +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 6C0D620373; Tue, 28 Nov 2017 11:34:43 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 28 Nov 2017 11:34:38 +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 1/4] part: efi: Add a Kconfig option for the number of partition entries 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" On some SoCs, the SPL needs to be located right in the middle of the GPT partition entries. One way to work around that is to create partition entries for a smaller number of partitions to accomodate with where the SPL will be. Create a Kconfig option to allow to do that. Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini Reviewed-by: Andre Przywara --- disk/Kconfig | 13 +++++++++++++ include/part_efi.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/disk/Kconfig b/disk/Kconfig index 939656212065..f82beef6e689 100644 --- a/disk/Kconfig +++ b/disk/Kconfig @@ -78,6 +78,19 @@ config EFI_PARTITION common when EFI is the bootloader. Note 2TB partition limit; see disk/part_efi.c +config EFI_PARTITION_ENTRIES_NUMBERS + int "Number of the EFI partition entries" + depends on EFI_PARTITION + default 128 + help + Specify the number of partition entries in the GPT. This is + meant to allow less than the standard specifies for devices + that might need to place their first-stage bootloader in the + middle of a regular GPT. + + If unsure, leave at 128 entries, which is the standard + number. + config EFI_PARTITION_ENTRIES_OFF int "Offset (in bytes) of the EFI partition entries" depends on EFI_PARTITION diff --git a/include/part_efi.h b/include/part_efi.h index 31e6bc6e140f..4c8f6cc473c8 100644 --- a/include/part_efi.h +++ b/include/part_efi.h @@ -27,7 +27,7 @@ #define GPT_HEADER_SIGNATURE 0x5452415020494645ULL #define GPT_HEADER_REVISION_V1 0x00010000 #define GPT_PRIMARY_PARTITION_TABLE_LBA 1ULL -#define GPT_ENTRY_NUMBERS 128 +#define GPT_ENTRY_NUMBERS CONFIG_EFI_PARTITION_ENTRIES_NUMBERS #define GPT_ENTRY_SIZE 128 #define PARTITION_SYSTEM_GUID \ From patchwork Tue Nov 28 10:34:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119836 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2921431edl; Tue, 28 Nov 2017 02:41:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMb25CiPSvUXyWvoJ8sNCxCGzRF18GZaviS8HO9rCSI2oRjzp2YXqsIapYyeKDeT5QjIxhnz X-Received: by 10.80.245.26 with SMTP id t26mr1949529edm.301.1511865712700; Tue, 28 Nov 2017 02:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511865712; cv=none; d=google.com; s=arc-20160816; b=YMkLwcLzNaiO69pXtXu2j+uD++Qty0m3pH2HdbcZGM2yJYoeqhNa4kJmvJPrRx8fFT U3xZF9cHu28j//xw0NuQpwMwiAuvM0UNHEgYygkB5MyM9Blt517QaJaJeol+txM3YImQ YsQ+ZQCHtz5+ZPhBD7d/BcUZEzHO7HFHyucQ1slnFlOkA2t7UoEvU3VEZdgolM6k6ARX SjDAulyduKne0scPuVd05uFGSrQexYMpbfXzqoLHAchNug3RzXydBVhm9rMBHbt6ERcC G6n2/8P9etIa37TABUXxOgNtwuGCu8qXz0cHYiLnv4PyASb0TzbkDJk1s61/TyaWLykR 68hw== 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=Y0HAAHHpBIHIsplxrKXanEC6sznLQcFkl03PE4fDb1c=; b=fD6B1Z4KS4YZdDi7HeDN11TNTCkeBdaO9rZtUT0hIgX1RVwL2C5ZTHZDKMthBCPykQ XxoBEg+dvflJ1qxrloCHxmIrty/ye7mJlXHmwfswRkUWU7a1++9CgQU6QzEQBAmXtkDJ PFQEDrRbYwVPydzbc0izjoJ4ZcERe0mg+4/Y/hBVxgodtHo04WG3uuTKOCBp4v2A+iFB Pc2CjnSFpfPAVwOHcgfwc1yZQFFChOJzrPSwEnk9R8ucx3UQLJfvKYrGIqKSXAF+J/Te SDhhVy1KUbtWUAo330yO906/z2hsfXJLYJTFICTmY73eEvo5wveE37QvoUf/uV/arAGN Q2Kw== 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 w24si2714644edl.471.2017.11.28.02.41.52; Tue, 28 Nov 2017 02:41:52 -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 59CD6C21E90; Tue, 28 Nov 2017 10:39:01 +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 70B8AC21E18; Tue, 28 Nov 2017 10:38:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3E21AC21DA5; 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 9C972C21E1E for ; Tue, 28 Nov 2017 10:34:44 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id F053020742; Tue, 28 Nov 2017 11:34:43 +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 CDA4F20373; Tue, 28 Nov 2017 11:34:43 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 28 Nov 2017 11:34:39 +0100 Message-Id: <37a595033868e6633ac50c6190e5636e3462db8a.1511865262.git-series.maxime.ripard@free-electrons.com> 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 2/4] part: efi: Add default number of partition entries for sunxi 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 SPL must be located at 8kB (16 sectors) offset. That's right in the middle of the GPT, so we need to define a smaller amount of partitions to accomodate for that location. Signed-off-by: Maxime Ripard Reviewed-by: Andre Przywara --- disk/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/disk/Kconfig b/disk/Kconfig index f82beef6e689..0446bb63ca7e 100644 --- a/disk/Kconfig +++ b/disk/Kconfig @@ -81,6 +81,7 @@ config EFI_PARTITION config EFI_PARTITION_ENTRIES_NUMBERS int "Number of the EFI partition entries" depends on EFI_PARTITION + default 56 if ARCH_SUNXI default 128 help Specify the number of partition entries in the GPT. This is 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 From patchwork Tue Nov 28 10:34:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119837 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2921650edl; Tue, 28 Nov 2017 02:42:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMYynb321MKsU3MX+VWfb5kYl76WC/7p0kMtgJbOwinO8uecScuQjBNqJEDeZ5TVcX1Ko1LA X-Received: by 10.80.179.15 with SMTP id q15mr1973651edd.166.1511865727122; Tue, 28 Nov 2017 02:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511865727; cv=none; d=google.com; s=arc-20160816; b=byqTcvQC5wILEXdWbxgVw+kYiB05ZhZw5mb3YYVEPzS1lQaBnNphAG+GRxO+1NNBLM Hnni+4CGIViZp3sjviuaD82f6ZtAWTwvQbtgE5e895eW7uq3pJNdetdB67D+5hXoSusZ LU0Vl4rI/GbdYIDm3/s889eoex0nr8nY5L8Pt4uI2XX4i9tKop7e7Ysn+/5rQ0UJUnSC ynPPVWWF7pPTfVRBkKwy9HZEZ8TFp5W/YgxlijUvTk6DsMGSVMRu9uXNF6/Mh212VwAS XypgQWuI2zB0hZwD4KDN3fLqKuDZhOQJ8Ogqkw1/ggc7mR/dxkueUAUMRRCKPkPwHjyv ppxQ== 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=iOBdNKtrnB/NfP9r/lHbFpIxzSHoJtjYqbnROaIxCMM=; b=i95/Bt9SXWjq03KSYtcS3lYtCoGsPiXJMBvm3DopbJsGbn+y7JUHZXCEhU8hYG0zTM k8WjKDHWfAgraROGQvRv90fj9ft5f+8zA2eXwMsj/1lNU+tc5Ije+uhZoxamaknABVSO oCkOj8XTdmBJc1UniBJOqnh5XDLaPW5Q5r0Om37TBKq5n6IyOXqGd/H4539PEQQgf0mf WZt87I2fxWtS3h33CTrJnlKiXkZZnEuZG1LVW0sT2f3UpEP1RZfwyqN2RVfFX9CfI1cz igRz7Zmjxr4vKbNHkU/3NNM1cKWwI3wS6Sab/taAWDSu7wD1Dhi4vKvQT+0zfg3Xga20 FQ9w== 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 x13si376672edk.420.2017.11.28.02.42.06; Tue, 28 Nov 2017 02:42:07 -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 A58C4C21E90; Tue, 28 Nov 2017 10:40:58 +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 41C1EC21E2F; Tue, 28 Nov 2017 10:40:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 196E2C21EBA; 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 75011C21E32 for ; Tue, 28 Nov 2017 10:34:45 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id C560620746; 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 9C94520373; Tue, 28 Nov 2017 11:34:44 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 28 Nov 2017 11:34:41 +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 4/4] fastboot: Enable flashing by default on sunxi 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" Now that more and more devices are built using eMMC, providing a way to easily flash the system without too much hassle seems like a right thing to do. Since fastboot is the most deployed tool to do that these days, we can just rely on it to provide a way to flash the various components in the system (SPL, U-Boot and the system itself) easily, especially since you can upload the U-Boot hosting the fastboot "server" through FEL. Signed-off-by: Maxime Ripard Reviewed-by: Andre Przywara --- cmd/fastboot/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/fastboot/Kconfig b/cmd/fastboot/Kconfig index 4ce7a775e28e..cbb9183ea266 100644 --- a/cmd/fastboot/Kconfig +++ b/cmd/fastboot/Kconfig @@ -66,6 +66,7 @@ config FASTBOOT_USB_DEV config FASTBOOT_FLASH bool "Enable FASTBOOT FLASH command" + default y if ARCH_SUNXI help The fastboot protocol includes a "flash" command for writing the downloaded image to a non-volatile storage device. Define