{"id":813633,"url":"http://patchwork.ozlabs.org/api/patches/813633/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170913214256.8031-4-vagrant@debian.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170913214256.8031-4-vagrant@debian.org>","list_archive_url":null,"date":"2017-09-13T21:42:55","name":"[U-Boot,v2,3/4] Switch odroid to use config_distro_bootcmd.","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"5bb5720ff8f5038dc23a62e521b8736e7cf4084a","submitter":{"id":64909,"url":"http://patchwork.ozlabs.org/api/people/64909/?format=json","name":"Vagrant Cascadian","email":"vagrant@debian.org"},"delegate":{"id":1728,"url":"http://patchwork.ozlabs.org/api/users/1728/?format=json","username":"prom","first_name":"Minkyu","last_name":"Kang","email":"promsoft@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170913214256.8031-4-vagrant@debian.org/mbox/","series":[{"id":2987,"url":"http://patchwork.ozlabs.org/api/series/2987/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=2987","date":"2017-09-13T21:42:52","name":"Switch odroid to use distro_bootcmd.","version":2,"mbox":"http://patchwork.ozlabs.org/series/2987/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/813633/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/813633/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xswGK75S3z9ryQ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 07:46:17 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid BFA8FC2256A; Wed, 13 Sep 2017 21:44:16 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 824C9C22548;\n\tWed, 13 Sep 2017 21:43:45 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 11138C22548; Wed, 13 Sep 2017 21:43:15 +0000 (UTC)","from cascadia.aikidev.net (cascadia.aikidev.net [173.255.214.101])\n\tby lists.denx.de (Postfix) with ESMTP id 5540FC22548\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 21:43:12 +0000 (UTC)","from localhost (unknown [75.164.166.0])\n\t(Authenticated sender: vagrant@aikidev.net)\n\tby cascadia.aikidev.net (Postfix) with ESMTPSA id A17301AB4C;\n\tWed, 13 Sep 2017 14:43:11 -0700 (PDT)"],"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\n\tautolearn_force=no version=3.4.0","From":"Vagrant Cascadian <vagrant@debian.org>","To":"u-boot@lists.denx.de","Date":"Wed, 13 Sep 2017 14:42:55 -0700","Message-Id":"<20170913214256.8031-4-vagrant@debian.org>","X-Mailer":"git-send-email 2.11.0","In-Reply-To":"<20170913214256.8031-1-vagrant@debian.org>","References":"<20170913214256.8031-1-vagrant@debian.org>","Cc":"Vagrant Cascadian <vagrant@debian.org>","Subject":"[U-Boot] [v2 PATCH 3/4] Switch odroid to use config_distro_bootcmd.","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"Using distro_bootcmd standardizes board behavior across many\nplatforms. This is particularly useful for distributions supporting\nmultiple boards without requiring custom configuration for each board.\n\nSigned-off-by: Vagrant Cascadian <vagrant@debian.org>\n---\n\n include/configs/odroid.h | 19 +++++++++++++++++--\n 1 file changed, 17 insertions(+), 2 deletions(-)","diff":"diff --git a/include/configs/odroid.h b/include/configs/odroid.h\nindex 573ccbdd36..731c607e70 100644\n--- a/include/configs/odroid.h\n+++ b/include/configs/odroid.h\n@@ -43,7 +43,6 @@\n \n /* Console configuration */\n \n-#define CONFIG_BOOTCOMMAND\t\t\"run autoboot\"\n #define CONFIG_DEFAULT_CONSOLE\t\t\"ttySAC1,115200n8\\0\"\n \n #define CONFIG_SYS_INIT_SP_ADDR\t(CONFIG_SYS_LOAD_ADDR \\\n@@ -85,6 +84,20 @@\n \t\"bl2 raw 0x1f 0x1d;\" \\\n \t\"tzsw raw 0x83f 0x138\\0\"\n \n+#define BOOT_TARGET_DEVICES(func) \\\n+\tfunc(MMC, mmc, 1) \\\n+\tfunc(MMC, mmc, 0)\n+\n+#include <config_distro_bootcmd.h>\n+\n+#define MEM_LAYOUT_ENV_SETTINGS \\\n+\t\"bootm_size=0x10000000\\0\" \\\n+\t\"kernel_addr_r=0x42000000\\0\" \\\n+\t\"fdt_addr_r=0x43000000\\0\" \\\n+\t\"ramdisk_addr_r=0x43300000\\0\" \\\n+\t\"scriptaddr=0x50000000\\0\" \\\n+\t\"pxefile_addr_r=0x51000000\\0\"\n+\n /*\n  * Bootable media layout:\n  * dev:    SD   eMMC(part boot)\n@@ -171,7 +184,9 @@\n \t\"initrdname=uInitrd\\0\" \\\n \t\"initrdaddr=42000000\\0\" \\\n \t\"scriptaddr=0x42000000\\0\" \\\n-\t\"fdtaddr=40800000\\0\"\n+\t\"fdtaddr=40800000\\0\" \\\n+\tMEM_LAYOUT_ENV_SETTINGS \\\n+\tBOOTENV\n \n /* GPT */\n #define CONFIG_RANDOM_UUID\n","prefixes":["U-Boot","v2","3/4"]}