From patchwork Tue Dec 5 15:56: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: 120706 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5918003qgn; Tue, 5 Dec 2017 07:58:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMYTyH3zMmU0r9m6T/Wqu2NVvAr9KFXeeFhr7lc2JVJ1LPazGMpgE6TLRSxdKvRgiTusyG6U X-Received: by 10.80.137.106 with SMTP id f39mr37236270edf.148.1512489516806; Tue, 05 Dec 2017 07:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512489516; cv=none; d=google.com; s=arc-20160816; b=YwHpWq1B1ntEIVWS7H5vzCcTu30CRvHidvYgjkpvVDAhTac74r3gsPJQgkDefVgt38 qJc0p4HAplRoML+XXKCgc8rNcMp8c75T1pucDkhUhwpJAtI+HGh5bZcBas7ygf95keUp ExeZ7V5PTbMRQLYWKViRJV49lPyJuA7s9dyf9k384TJILtpVMGFK02XBbothUiGiyhu2 bcJSGSdEhMz0OX2qta8eIHfyi1WK73dSEoxp5IdlT4Okr4Z7cXb91GCY9UbZ2rNZVriJ bB+/JUfZKh9hNiSobrlftqHR3OWEdHoqCCe8cPzsBYGd4r8QL2zMw93T+Xwmf3BbmFCM R9FQ== 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=Q6cz9IMSInNMA+tJ1rKE+piioc4PYZ6rf75i9ZCLn8g=; b=haardMH9oEJmfHckUvfYOXOnJGlneBDoPLqtZOsN4/rBk/4v6iKLQ392octmCLFRoA w/3zJsVQl88igDIPthkqQFpF/9PBGajafsCLv1hT6/hNtx1Vn5Z8NHzdtpa4oQNXrRAd BVnexu5EZLwTU0t5SamXjAyXPKS8nDqwhfWfN5VuIraiSditkRFJ2h0ZGDR3OiutqhGy iWAxNMPhla46ZDqUkTCNqhCQ9K45TpsUG3amNALhD/flTxI9bt0EzgJMiiRN4UATw7jY PVyRQFV63Et2uiO50B/IMduiAGSB4hUv07zNVOuuv7cYu4LGjUPrSZFBb0oFBebQJeTu XLTg== 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 n30si482719edc.416.2017.12.05.07.58.36; Tue, 05 Dec 2017 07:58:36 -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 5955FC21FB8; Tue, 5 Dec 2017 15:57:16 +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 8E19BC21FB8; Tue, 5 Dec 2017 15:56:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0074FC21EDE; Tue, 5 Dec 2017 15:56:54 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 8F597C21F29 for ; Tue, 5 Dec 2017 15:56:54 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id C9FDC209A0; Tue, 5 Dec 2017 16:56:53 +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 8858720741; Tue, 5 Dec 2017 16:56:43 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 5 Dec 2017 16:56:38 +0100 Message-Id: <0eb5e02afca0e93c37eabd7e72161088e6eafda6.1512489372.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 v2 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. Reviewed-by: Andre Przywara Reviewed-by: Tom Rini 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 Tue Dec 5 15:56: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: 120708 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5918789qgn; Tue, 5 Dec 2017 07:59:24 -0800 (PST) X-Google-Smtp-Source: AGs4zMZjoHTTWyyzdxYNewfyo9gPdcXeiZ1/Qbph7dNqHiPju/f3cW32cCejGEzaQgyy6878QS4I X-Received: by 10.80.151.178 with SMTP id e47mr35897122edb.196.1512489564757; Tue, 05 Dec 2017 07:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512489564; cv=none; d=google.com; s=arc-20160816; b=QGLnff3Z7gQqhUpSOQDRAfE+eq2QzyKdhKr8imXx3TkyCx1itvhtcAgQHAydThvWyy IyZO3TZiJbnv57WHXylV7lfaCYFNme6aVFSA9DidOIKLGal8KzyCdnD07phEGUcf6Npa 0zPU/8HZustLSNgqm7fGrtyVA8tTW+26cRYhNtBLiYnLyrfnnkEijtdi0psBmluAtpRK YAQC8YDGlTLAJCWp4efPJp/7fDhr4zrul0XDtw4C49nVBk9cnu07vDAMWslYIFi6OaMR Ck6iQjSMaxJHO/7SC2LrkCeN1YL5Qe96OABgNAc6uIA4uEESsGE7P46OYTgQkoR3deuI LNag== 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=4P4IIi93EHFy/AIRd4tuu7lYKNjEST8I5CWZhKeGot8=; b=US913Dfk6WTdkkHgl6Vw17xK9hmwRsHpkOAzjZtnI+SyOEvyr0JwXans4AT/8dEsBr 8t/0EH8ntbNa3oqo5nW7Cbr3flC00aMg1PA2LnR/ddJXnEg10wly0CQEkb7/t858ydCO sv7CNTL3ap+ytc/2SA8+TFAz5XVkht9RDWYMIT+PDoa2UV5ne9kn/GRS22fr9u88H7d1 GapVD4NOLm8TRkDeOKoCJPNpSqo89YwNjeHYqnl6kDLdG+t+iCiDOnZ83jIFhhvn8haK IbDWbmW0a3K8YVtRXMPBEDXVuGFyWugHj+DqBJeivm9bsXnq48y2sQryTs4yJIhEzpwP S9xA== 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 36si446267edf.548.2017.12.05.07.59.24; Tue, 05 Dec 2017 07:59:24 -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 5E927C21E85; Tue, 5 Dec 2017 15:57:34 +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 BAFB5C21FE2; Tue, 5 Dec 2017 15:56:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9C1B7C21F45; Tue, 5 Dec 2017 15:56:55 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 4DF73C21EDE for ; Tue, 5 Dec 2017 15:56:55 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 8DF7E20741; Tue, 5 Dec 2017 16:56:54 +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 4DAB020750; Tue, 5 Dec 2017 16:56:44 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 5 Dec 2017 16:56:39 +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 v2 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. Reviewed-by: Andre Przywara 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 Tue Dec 5 15:56: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: 120707 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5918633qgn; Tue, 5 Dec 2017 07:59:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMajTp/dvGICFtGgBaL0eJ2vPzmqQL7WD4USb8avVwl5LlEYD6Uc8X3UnoCCrx+1bhEBg+ex X-Received: by 10.80.169.134 with SMTP id n6mr36654633edc.44.1512489553400; Tue, 05 Dec 2017 07:59:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512489553; cv=none; d=google.com; s=arc-20160816; b=oVMSVR6HUBDVbwj6hT9GwAJhq3aaoS8cQutEvmlnYD8XLKaLYeNKQsmdGfvmpOGXWv aBKDwaAn6qXa8L1zlm9kBMLUcBbi0u1SDVFfel7JhjsLcF2Drc5yBTjidHeim++Fm2w4 URzNFaYYsvsG3lyETHl6sHastmWdY431qP7/m6rxBJGLFUw7tAyhG+rsRuDbUaARqajB LRJ8ijgEl1gKtptj3eNGCi+LWGUh9vDKktWHGPTRjvCUoPSjexzQRTRx31GX9OMLi4jV mY9CYuvcBW+f6OuVnhOrOGaq5DpYl/AUCVoTVqB1gNQzc3QodGyezuxINRzUxaeQJfSY P++w== 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=KqXnjOUodix/hZ1e4vC0RyjP2rxQlI79LpdJ9JLK7+w=; b=jxXWBsN4BLG8h4eu2ky2uJNbRjMc2k7REKAdMRgnNmvhUw+Tqtu7t1cQhAekejmon1 GyUNWFmuCN0IRoQcyg/t4712RXvrDuFOmGoCueBwseEbjIqgJiuWiO7M9xbFcNG1CEW8 XjGGqXtvyszCLACH0+3KhRcubxtpSAH1khWBWXqWddPkZa7f/mtEKmoULww8L4NAOgil i8kNzYPAAdl7cpWkowyr4vV3A45Ou0mC8qC9DW2ddvkZeSXpZm5wYfHNp0Gu9BIvLJg2 ZNDCMUEkk2PRqX6fmY8kQAMzE2D5kvR41SeJP5DsTVZvmJ/SKbcL99k5twHbH7wH/w8A m6bw== 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 z15si460679eda.491.2017.12.05.07.59.13; Tue, 05 Dec 2017 07:59:13 -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 00225C220A4; Tue, 5 Dec 2017 15:57: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 4AA91C21FEB; Tue, 5 Dec 2017 15:57:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B80E9C21F89; Tue, 5 Dec 2017 15:57:07 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 7E32EC21FD0 for ; Tue, 5 Dec 2017 15:57:03 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id BFEB82055A; Tue, 5 Dec 2017 16:57:02 +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 04717207B1; Tue, 5 Dec 2017 16:56:45 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 5 Dec 2017 16:56:40 +0100 Message-Id: <03c9617e8dc759633a3300d8d16c13648d06d891.1512489372.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 v2 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 Reviewed-by: Andre Przywara --- include/configs/sunxi-common.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 4391a8cbc824..786155f1e15e 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -493,6 +493,20 @@ 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 UUID_GPT_ESP "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" + +#ifdef CONFIG_ARM64 +#define UUID_GPT_SYSTEM "b921b045-1df0-41c3-af44-4c6f280d3fae" +#else +#define UUID_GPT_SYSTEM "69dad710-2ce4-4e3c-b16c-21a1d49abed3" +#endif + #define CONSOLE_ENV_SETTINGS \ CONSOLE_STDIN_SETTINGS \ CONSOLE_STDOUT_SETTINGS @@ -511,6 +525,9 @@ extern int soft_i2c_gpio_scl; "console=ttyS0,115200\0" \ SUNXI_MTDIDS_DEFAULT \ SUNXI_MTDPARTS_DEFAULT \ + "uuid_gpt_esp=" UUID_GPT_ESP "\0" \ + "uuid_gpt_system=" UUID_GPT_SYSTEM "\0" \ + "partitions=" PARTS_DEFAULT "\0" \ BOOTCMD_SUNXI_COMPAT \ BOOTENV From patchwork Tue Dec 5 15:56: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: 120709 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5918971qgn; Tue, 5 Dec 2017 07:59:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMZypJB1fB649mogK4sI8WDLY2+7J5YKNgLVCAY9V8V4asAYccPLTOqv+he/2+4r81Bj70t2 X-Received: by 10.80.192.5 with SMTP id r5mr36527743edb.138.1512489576022; Tue, 05 Dec 2017 07:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512489576; cv=none; d=google.com; s=arc-20160816; b=I9vOy8WUCYrflxfIqxAPBa8KEySFdDbkeGVNqQE39TWLvqwBhV4A5NAkhUCijaBpJC mVTXc81Wm6SH/x84kry3XBEpEYzxjG8rbVBzJcH7wVNDLHixdcw3ENnAwkc3BvUQNTJC J7eAcw+HTsaoi5pn1n012iDCGhvCov5RRQitvFV0fAXUoZhRab9xt/ROl4FHhkm7u4ct rz3dCzgel6qGiIclrR3IbXkZvoBnkkMtJJ450L79vlQzsgvh4DEwGPGsRRGlinDJjTdn Pk9afj9AtZXHv8bbRf5+cePW8hNxhUs7sywfpbecbgnDBHkHriJzar5Uv4yn8bh/5+56 2fzA== 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=ycibv5Egmb+PuUs1+uDZrx+FqXMSbA8vNe96lnw7FHk=; b=RTZXLO28xNyLkTgSknA/4hQq5mLr5ZFPFXE4udladX6Eu/sxpn9VACKsJlYD9+hYjZ hi23MEg0Q31ZnirZmw3FdMuutLqDY7UBdI4uiYDnT/ZFdS8GJ0SdBfuuGuoGj0b6e5/+ r2AjQYT5iMNQMEOhLUfv6KYsI4uv1UstyvOp7p16LVJz/Yze/0Zbh5eYujkFdZOkFIMd qKsy+yVKOsxFWaU9pvVuwVrMGB7iWpOvekWv0B552nEYPIzdCOPfeVMzvThh0haw2HjI zLhdTc51ZScu/N1s00KxOJuerOJ5wYarlwQYVluzoDZpP9OnmQEcDXZOuUe8tPi9n6mL QFqw== 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 f23si535448edb.350.2017.12.05.07.59.35; Tue, 05 Dec 2017 07:59:36 -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 8C29FC21E85; Tue, 5 Dec 2017 15:58:24 +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 AC65EC220A7; Tue, 5 Dec 2017 15:58:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E7B7DC21F83; Tue, 5 Dec 2017 15:57:07 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 84D19C21F94 for ; Tue, 5 Dec 2017 15:57:03 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id C6B3B20741; Tue, 5 Dec 2017 16:57:02 +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 C2D7F20856; Tue, 5 Dec 2017 16:56:46 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 5 Dec 2017 16:56:41 +0100 Message-Id: <4ad8275cc5a8b4e526fe0e08beff0701d20c03a3.1512489372.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 v2 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. Reviewed-by: Andre Przywara 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