From patchwork Wed Nov 15 10:11:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 118928 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4118403qgn; Wed, 15 Nov 2017 02:13:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMZxD52b+LliCC2iWCye8YP1EavFJ/JkPsZVgESYkwCP7Bj9+dD5DQDtUI7/t7WmucMN+/aW X-Received: by 10.80.241.218 with SMTP id y26mr13792676edl.120.1510740799536; Wed, 15 Nov 2017 02:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510740799; cv=none; d=google.com; s=arc-20160816; b=zXOYPiFrCBQcLVe4dVvAmyT6FLJTkAhd2yrhcuSW8YRHUds6jMAFEqLQk9AahZZmQJ wkDEKRgqTdpS44Nf1uEBUoXtLFLSeZo5kVEDdzRG2WatT8NhpqvLrVpbpOhmpoL5AeaO sa5lzqXgXUR/cWzYktF9YvoiUszTHNEPCcPXzqqNpgxudYZMh/T2Eu9dxqNJHNvIeh11 1vvUtxyYHWYNFkCsRXTAj/QOr//aBmLfZVnhOdrgqfIpPH6gsMu4u2HlcM8ezXtdVRAW 2KkoOnwEYlhxAMpiD0TNtERN6M6uyO0iHAFXRXXKSEjmm64zchvzGKvTwnowfdBlYYcZ sVAA== 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:message-id :date:to:from:arc-authentication-results; bh=3LzM5uEDJqbaMokd5Eqh8XofOkaJKH7bj8951KJHWuI=; b=jZ5VJoleJqlng0s0PplxfrdVIz2d/KKxNgtiPC2AehvduRkinuGHkzDpwfsgUkFlTK vep0kvkOHNDP6Y5bwP2Wg2M9PvV8gvozaNU39r/TIINO8kGSRepxPc6mOKICnelcO4i1 FXVEd9Bo/lBiJqJ+jiZBRfHQ5Ly7CNaX4WEoacffQSJSbo4EG7yD2SA/FfgrFp6Q+DS/ Tda+1ROiGsaQTnJ8RajaY6JBTVdxuRKE/3tIUOzsIzLSX0So91foaiGJWlc6z3yunnuF W25N94GmwGs7z3Yq17xRF+ODTXEap6yjTilWLZi0fOc3H3gFCDNZSV3JynoEZ/zJI9Jk sHHg== 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 g24si15649857edj.173.2017.11.15.02.13.19; Wed, 15 Nov 2017 02:13:19 -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 06D94C21C73; Wed, 15 Nov 2017 10:12:31 +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 8089DC21D90; Wed, 15 Nov 2017 10:12:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 42445C21D88; Wed, 15 Nov 2017 10:12:19 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 0A23FC21DA2 for ; Wed, 15 Nov 2017 10:12:15 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id F0E932037F; Wed, 15 Nov 2017 11:12:13 +0100 (CET) Received: from localhost (unknown [185.94.189.188]) by mail.free-electrons.com (Postfix) with ESMTPSA id 46E9220946; Wed, 15 Nov 2017 11:11:54 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Wed, 15 Nov 2017 11:11:48 +0100 Message-Id: <20171115101151.11382-2-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171115101151.11382-1-maxime.ripard@free-electrons.com> References: <20171115101151.11382-1-maxime.ripard@free-electrons.com> 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 --- 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 Wed Nov 15 10:11:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 118929 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4119291qgn; Wed, 15 Nov 2017 02:14:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMbiA0ZtZQQaq/SWRhzhFFMlsHiXB9e7jg+85KmeJUI41VNZkunHWutXVk5Y1fOdcypH4Y4h X-Received: by 10.80.206.79 with SMTP id k15mr21581357edj.145.1510740861917; Wed, 15 Nov 2017 02:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510740861; cv=none; d=google.com; s=arc-20160816; b=AVBNBOkcpypMoEX4suaUm4R9vVjiU4FSa4q1nqg9pE1RRshEou1Oe1qtK63bAJekVN qQKmBndy+nFu22rvXOZHNFCfBkdXE/vImKjcNrLK9N2BFDB4qq4TDzJ0NmUXv6540U0B 8E2yAiqqmEebsII4ngHYKbLrCZSUjqp7p7hwayjT5o1sV0gk2T4KvCYKoo64jKHlrPyw ynhMTrfVxY3NZlFy3iSlc2TTvjTmN4Spnqp4v7jRcrlxglrJGngTuBG+NTIMrjl+wr4N aO20YoluF1O9zXZLCmYli2gDx8qjRWoymJPQFd7Ca2msr+8B29ziurCD0vT42Rq7Cx1g WJGw== 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:message-id :date:to:from:arc-authentication-results; bh=R/BBonIxsQNvsgA6siXmsLrrHjJYWG3nw18dtkYQz9E=; b=QlEmfZwbWeiDw5mfSkb1LVT1qz3/5f212+ILWhDJqt1pbyXCKh6R3aXSDq5MxYL0wT XbkYxzGZUHR/neKFfWlwEg0B/RfmZ//s3nGFOYZpoFnZzJQbRKC/8Tak2rebvJNyEhvU 3PpdRdNiiYs4kmLwFCxo3irIsmsbwMLxfM5YLoa1zkL/sGy3EuRudq2xbWFczCtc83zj uQUjDYnRrjRX2cyVbMVH7OYTksuWWeoV+IqotpwQV4OBPxevOIqDL39xIdzj29oyoo39 0abfwuNhyouoqcwdB+hOwDV3sIpK1D/cDyINo0YrRB2L5A9pgcGb7NF0hGbkpKiJCpmQ 9Bkw== 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 p28si1725260eda.49.2017.11.15.02.14.21; Wed, 15 Nov 2017 02:14: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 8FFF4C21DA2; Wed, 15 Nov 2017 10:12:47 +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 7795CC21D88; Wed, 15 Nov 2017 10:12:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BCFD2C21D80; Wed, 15 Nov 2017 10:12:20 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 45262C21D93 for ; Wed, 15 Nov 2017 10:12:16 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 376BC20810; Wed, 15 Nov 2017 11:12:15 +0100 (CET) Received: from localhost (unknown [185.94.189.188]) by mail.free-electrons.com (Postfix) with ESMTPSA id A789A212A2; Wed, 15 Nov 2017 11:11:55 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Wed, 15 Nov 2017 11:11:49 +0100 Message-Id: <20171115101151.11382-3-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171115101151.11382-1-maxime.ripard@free-electrons.com> References: <20171115101151.11382-1-maxime.ripard@free-electrons.com> 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 --- 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 Wed Nov 15 10:11:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 118931 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4119674qgn; Wed, 15 Nov 2017 02:14:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMYCYv01R3ew5mhp8AbPkZ2RWpA64+wxLqm2XD0hPfrTZcd8AFuETsZI5kH8HJTiD7py4rjt X-Received: by 10.80.159.168 with SMTP id c37mr21515950edf.46.1510740890661; Wed, 15 Nov 2017 02:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510740890; cv=none; d=google.com; s=arc-20160816; b=uKb8EjnL3EcCpEkyjQ4nVlDCXip00M5pZ/JuGQg2JuH0JuV/Myun+i6IjfZcjahRaV c2vwwXCiHfUcG9GiG1aVyVMw19hlYkSoRYIp7391n5HkYeP56jCgUt2kUT9zb95YPLJy f6H5aJFVQZ0QVkC5nRnUtg5Yq21TWd/BSGe/rLL/+iB7mQ4+ONvU8POrXJFIxIU+B4Sk RrGdJamfIg604hgctJLn75RZdwVOKOlNV+18XolDU+NWFCzxXSKXL9enGDgscoi/cgQO oJZcsZ6ar3qkISxeTWDIbK6gSfAJGAigyR5rn4sn7iGjMHEH8q0b6miJ6E+hRybhKQc6 xibg== 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:message-id :date:to:from:arc-authentication-results; bh=HEZEweBJlCjCEOieWCydIi9sza11sOCybdmTy34Qb7E=; b=kpsqRtpcLbvzH3A4sWae64fg3TJGcvtXWaD0AJzEN/vZK+MZzLwafCiaiR6U0XQ6JZ 5TShX3ZJyFdIUomvVlYW1Luy7mQr4Y3SHixGAJ5wcKoA80vRdDXy7rtq7PodBv46qDDs aFj0gWN1o0YOWrh4vsqi2131YWOGuh5I5haFKa500IwlL2JeNsgqFm/bDtf9ujmJCeka AmHRa3xHb2ITLr6csDaJRAVEbBz+E3yixDgl9rk/OJWx+RcVX+xfLdoQcJrIpYrv09a0 5iOVnlfu3/aEJMdEMKwsZvQa2IQH38m2wIx6jTFOlpzRsCKkwOl2KVtuZZv1BYxRhy7J 6c2A== 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 a88si4386510edf.156.2017.11.15.02.14.50; Wed, 15 Nov 2017 02:14:50 -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 43E02C21D99; Wed, 15 Nov 2017 10:13:21 +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 5B3F2C21DA5; Wed, 15 Nov 2017 10:12:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 64297C21DB9; Wed, 15 Nov 2017 10:12:20 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 3F80FC21D80 for ; Wed, 15 Nov 2017 10:12:16 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 3347B2037B; Wed, 15 Nov 2017 11:12:15 +0100 (CET) Received: from localhost (unknown [185.94.189.188]) by mail.free-electrons.com (Postfix) with ESMTPSA id 16C7D20DD4; Wed, 15 Nov 2017 11:11:55 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Wed, 15 Nov 2017 11:11:50 +0100 Message-Id: <20171115101151.11382-4-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171115101151.11382-1-maxime.ripard@free-electrons.com> References: <20171115101151.11382-1-maxime.ripard@free-electrons.com> 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 4391a8cbc824..11da6ccfbf54 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;" \ + "name=loader2,size=984k;" \ + "name=boot,size=128M,bootable;" \ + "name=system,size=-;" + #define CONSOLE_ENV_SETTINGS \ CONSOLE_STDIN_SETTINGS \ CONSOLE_STDOUT_SETTINGS @@ -511,6 +517,7 @@ extern int soft_i2c_gpio_scl; "console=ttyS0,115200\0" \ SUNXI_MTDIDS_DEFAULT \ SUNXI_MTDPARTS_DEFAULT \ + "partitions=" PARTS_DEFAULT "\0" \ BOOTCMD_SUNXI_COMPAT \ BOOTENV From patchwork Wed Nov 15 10:11:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 118930 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4119630qgn; Wed, 15 Nov 2017 02:14:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMZW72h7ABn+cdkeqwyGJzv926x7V2xmfUGZ2OfZDKfKU0eYVCPuNUg29P6ub/mungrFIBlw X-Received: by 10.80.155.6 with SMTP id o6mr22548022edi.39.1510740885734; Wed, 15 Nov 2017 02:14:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510740885; cv=none; d=google.com; s=arc-20160816; b=aJG+IjaRA+vKroFrrijSjkT3TgZppNDsdGB4JT6Fvvh0Qt7KnBAi6chDkc60wMmVNQ hmp2bGOCEvejurS9V69uBzViaYE/9L1sYiwCbih+SJXg6EG7pg7XLbASm7s4z35r06Am dOr4IOFmlK+9t29jGTBcG6WvqjIKzcsguvpLmGWcEg2zeKkr4HxDOFUY0MUJHU76Z/Cs t+K2WcRVb1CqcqhJODUPBOXqByqkfF6DbqKPEKWqX+jhJ7593pYvT4BpwOs4Poib//hJ OaArV0+3GXdjLB4ip2X4C7ethzSzr9PaijAt0e8TuRKVxVf36cVwI9ZkAGhNtdCuMWdy WIIw== 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:message-id :date:to:from:arc-authentication-results; bh=S7mG+lR+8lA73kbDggZoWqTfufg6+tyRexjUNCZ97s0=; b=UcMBcZvpGAKOkIcLeNL1oBZimNKK4hJPk5qIL/cz9PW3+nWuLPAESqRY/cR6zdP1yU XqqoB3RmUIzCSSBGO2HKaI8RLCwr4emMrFBLRwpm+cZ06GxBv+mGWgdsdeuq5qtHX+JG WAm5EJbmArpIp3f4ecPmuSRkfDDuXWnRJhLoJpzIe/XBmKIURt6U4b6x65ETZ/pCiwuv WaYaxFRf9arX/RD27qvjaAFwg4lCzrYQ5spQ8tNVkJlsHHEmukP9HkSmSIhTlDzR1mEk uMkvfM7Pnv/1VICgNNSimZYY57Gd66WrMs4ucN4AZq6+ugUQTovs7anmhQQyET4ciD37 ThMA== 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 p6si1898341edk.106.2017.11.15.02.14.45; Wed, 15 Nov 2017 02:14: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 559A6C21C73; Wed, 15 Nov 2017 10:13:04 +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 21CC0C21DC5; Wed, 15 Nov 2017 10:12:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B24E7C21DA6; Wed, 15 Nov 2017 10:12:21 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 21DB0C21DA5 for ; Wed, 15 Nov 2017 10:12:17 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 0DAB72083D; Wed, 15 Nov 2017 11:12:16 +0100 (CET) Received: from localhost (unknown [185.94.189.188]) by mail.free-electrons.com (Postfix) with ESMTPSA id 6FE1D213DA; Wed, 15 Nov 2017 11:11:56 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Wed, 15 Nov 2017 11:11:51 +0100 Message-Id: <20171115101151.11382-5-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171115101151.11382-1-maxime.ripard@free-electrons.com> References: <20171115101151.11382-1-maxime.ripard@free-electrons.com> 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 --- 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