{"id":818058,"url":"http://patchwork.ozlabs.org/api/patches/818058/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1506323661-30067-2-git-send-email-patrice.chotard@st.com/","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":"<1506323661-30067-2-git-send-email-patrice.chotard@st.com>","list_archive_url":null,"date":"2017-09-25T07:14:18","name":"[U-Boot,v3,1/3] board: STiH410-B2260: update environment variable","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"8f45547021cac847600805cd1464826df1ca3a38","submitter":{"id":63958,"url":"http://patchwork.ozlabs.org/api/people/63958/?format=json","name":"Patrice CHOTARD","email":"patrice.chotard@st.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1506323661-30067-2-git-send-email-patrice.chotard@st.com/mbox/","series":[{"id":4880,"url":"http://patchwork.ozlabs.org/api/series/4880/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=4880","date":"2017-09-25T07:14:17","name":"STiH410-B2260: update environment/configuration settings","version":3,"mbox":"http://patchwork.ozlabs.org/series/4880/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/818058/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/818058/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 3y0wMg06sHz9tXG\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Sep 2017 17:15:10 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid B712EC221FC; Mon, 25 Sep 2017 07:14:43 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 0A33FC221D5;\n\tMon, 25 Sep 2017 07:14:27 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 71BF5C21DB2; Mon, 25 Sep 2017 07:14:24 +0000 (UTC)","from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com\n\t[62.209.51.94]) by lists.denx.de (Postfix) with ESMTPS id 44FF0C21C50\n\tfor <u-boot@lists.denx.de>; Mon, 25 Sep 2017 07:14:24 +0000 (UTC)","from pps.filterd (m0046668.ppops.net [127.0.0.1])\n\tby mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv8P7E7qD007738; Mon, 25 Sep 2017 09:14:23 +0200","from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35])\n\tby mx07-00178001.pphosted.com with ESMTP id 2d5d2w9c4w-1\n\t(version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT);\n\tMon, 25 Sep 2017 09:14:23 +0200","from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9])\n\tby beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 11E1338;\n\tMon, 25 Sep 2017 07:14:23 +0000 (GMT)","from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18])\n\tby zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F144D12FF;\n\tMon, 25 Sep 2017 07:14:22 +0000 (GMT)","from localhost (10.75.127.50) by SFHDAG6NODE3.st.com (10.75.127.18)\n\twith Microsoft SMTP Server (TLS) id 15.0.1178.4;\n\tMon, 25 Sep 2017 09:14:22 +0200"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW\n\tautolearn=unavailable autolearn_force=no version=3.4.0","From":"<patrice.chotard@st.com>","To":"<u-boot@lists.denx.de>, <sjg@chromium.org>","Date":"Mon, 25 Sep 2017 09:14:18 +0200","Message-ID":"<1506323661-30067-2-git-send-email-patrice.chotard@st.com>","X-Mailer":"git-send-email 1.9.1","In-Reply-To":"<1506323661-30067-1-git-send-email-patrice.chotard@st.com>","References":"<1506323661-30067-1-git-send-email-patrice.chotard@st.com>","MIME-Version":"1.0","X-Originating-IP":"[10.75.127.50]","X-ClientProxiedBy":"SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG6NODE3.st.com\n\t(10.75.127.18)","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-25_02:, , signatures=0","Subject":"[U-Boot] [PATCH v3 1/3] board: STiH410-B2260: update environment\n\tvariable","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>","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":"From: Patrice Chotard <patrice.chotard@st.com>\n\nUpdate environment variable by updating:\n _ BOOT_TARGET_DEVICE\n _ CONFIGS_BOOTARGS\n _ kernel_addr_r, fdtfile, fdt_addr_r, scriptaddr, fdt_high, intird_high\n\nSigned-off-by: Patrice Chotard <patrice.chotard@st.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\n---\nv3: none\nv2: rebase on v2017.09\n\n configs/stih410-b2260_defconfig |  2 +-\n include/configs/stih410-b2260.h | 24 +++++++++++++++++++++---\n 2 files changed, 22 insertions(+), 4 deletions(-)","diff":"diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-b2260_defconfig\nindex 8fd1ff2..fe3dde3 100644\n--- a/configs/stih410-b2260_defconfig\n+++ b/configs/stih410-b2260_defconfig\n@@ -6,7 +6,7 @@ CONFIG_DISTRO_DEFAULTS=y\n CONFIG_FIT=y\n CONFIG_FIT_VERBOSE=y\n CONFIG_USE_BOOTARGS=y\n-CONFIG_BOOTARGS=\"console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel\"\n+CONFIG_BOOTARGS=\"console=ttyAS1,115200 CONSOLE=/dev/ttyAS1 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait mem=992M@0x40000000 vmalloc=256m\"\n # CONFIG_DISPLAY_CPUINFO is not set\n CONFIG_SYS_PROMPT=\"stih410-b2260 => \"\n CONFIG_FASTBOOT=y\ndiff --git a/include/configs/stih410-b2260.h b/include/configs/stih410-b2260.h\nindex 372c083..115488c 100644\n--- a/include/configs/stih410-b2260.h\n+++ b/include/configs/stih410-b2260.h\n@@ -18,10 +18,28 @@\n \n #define CONFIG_SYS_HZ_CLOCK\t\t1000000000\t/* 1 GHz */\n \n+#include <config_distro_defaults.h>\n /* Environment */\n-#define CONFIG_EXTRA_ENV_SETTINGS \\\n-\t\"board= B2260\" \\\n-\t\"load_addr= #CONFIG_SYS_LOAD_ADDR \\0\"\n+\n+#define CONFIG_LOADADDR\t\t\tCONFIG_SYS_LOAD_ADDR\n+\n+#define CONFIG_ENV_VARS_UBOOT_CONFIG\n+\n+#define BOOT_TARGET_DEVICES(func) \\\n+\tfunc(MMC, mmc, 0) \\\n+\tfunc(USB, usb, 0) \\\n+\tfunc(DHCP, dhcp, na)\n+#include <config_distro_bootcmd.h>\n+#define CONFIG_BOOTFILE\t\t\t\"uImage\"\n+#define CONFIG_EXTRA_ENV_SETTINGS\t\t\t\t\\\n+\t\t\t\"kernel_addr_r=0x40000000\\0\"\t\t\\\n+\t\t\t\"fdtfile=stih410-b2260.dtb\\0\"\t\t\\\n+\t\t\t\"fdt_addr_r=0x47000000\\0\"\t\t\\\n+\t\t\t\"scriptaddr=0x50000000\\0\"\t\t\\\n+\t\t\t\"fdt_high=0xffffffffffffffff\\0\"\t\t\\\n+\t\t\t\"initrd_high=0xffffffffffffffff\\0\"\t\\\n+\t\t\tBOOTENV\n+\n \n #define CONFIG_ENV_SIZE 0x4000\n \n","prefixes":["U-Boot","v3","1/3"]}