{"id":800473,"url":"http://patchwork.ozlabs.org/api/1.2/patches/800473/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1502441568-22896-6-git-send-email-pantelis.antoniou@konsulko.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/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":"<1502441568-22896-6-git-send-email-pantelis.antoniou@konsulko.com>","list_archive_url":null,"date":"2017-08-11T08:52:43","name":"[U-Boot,v2,05/10] doc: Document how to apply fdt overlays","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"ab8a29ef9109350b59a066232b54ed64c393b5db","submitter":{"id":64098,"url":"http://patchwork.ozlabs.org/api/1.2/people/64098/?format=json","name":"Pantelis Antoniou","email":"pantelis.antoniou@konsulko.com"},"delegate":{"id":3184,"url":"http://patchwork.ozlabs.org/api/1.2/users/3184/?format=json","username":"sjg","first_name":"Simon","last_name":"Glass","email":"sjg@chromium.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1502441568-22896-6-git-send-email-pantelis.antoniou@konsulko.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/800473/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/800473/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>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=konsulko.com header.i=@konsulko.com\n\theader.b=\"l5KDywpD\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xTJpQ4hLzz9t2W\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 11 Aug 2017 18:59:10 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 60252C21DA4; Fri, 11 Aug 2017 08:56:50 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E3032C21DCE;\n\tFri, 11 Aug 2017 08:55:59 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 314BFC21DDD; Fri, 11 Aug 2017 08:55:50 +0000 (UTC)","from mail-wr0-f180.google.com (mail-wr0-f180.google.com\n\t[209.85.128.180])\n\tby lists.denx.de (Postfix) with ESMTPS id D454BC21D70\n\tfor <u-boot@lists.denx.de>; Fri, 11 Aug 2017 08:55:44 +0000 (UTC)","by mail-wr0-f180.google.com with SMTP id 33so11110755wrz.4\n\tfor <u-boot@lists.denx.de>; Fri, 11 Aug 2017 01:55:44 -0700 (PDT)","from localhost.localdomain ([195.97.110.117])\n\tby smtp.gmail.com with ESMTPSA id\n\to71sm759811wmg.15.2017.08.11.01.55.42\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 11 Aug 2017 01:55:44 -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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=DrYoOkLaWECmvPnekePqhNyfHsLsGNqw0DfDaJr61q4=;\n\tb=l5KDywpDXwa6mPdPMZGFSR65FuY1dqE6nEQ/uz+D+82NYplYYhnGlKK2vl1AMUokbI\n\tXZ1pHB3vGnqex+DTWoyI1LTqV1tBt2qvotFHpcNgRU1pm0YZ4TGHWiELd3B2l7q978se\n\tGIQhKXxiAa5QNJCN1r7i4bkPtVJa1pRbiKTJ4=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=DrYoOkLaWECmvPnekePqhNyfHsLsGNqw0DfDaJr61q4=;\n\tb=Pwiuh5LYjQdU6q675J4xqm42T+8QQHqI6dp/4OvWbFVbDep+I5q8Wade5v8VSrCuMS\n\t5FpZUMvdaaYI796CSmTnSSt8xGo0QjDbTJLL1ZKTqPZKPX5OLzdKc2CFDS7eyczlX4IY\n\taeGcqjdKE00CCWxy6c2yNz38wGeB6Xzan8cNwWUNsz8A9aATir16nDXHQcYq0vDPcOty\n\t9ZJRvEIWHpUVJ9sOWt8bwkMYRIsz4udPrWCUfHw5ogT3DErcoyWiH2U2as7Qkqi5B5kq\n\ttYcBU1qRs0+JIEEYF0LY/aU5F8wNKXy4lmOn0m4W5Eeoj+frSTtPn+N/+AwiunVQJ6HW\n\t85NA==","X-Gm-Message-State":"AHYfb5ipv5TqdG19dkb9dYAZar8fDsSd/lVDh51aqOwrXiBXsC47omde\n\tPHmyv8YvyF27EvsA","X-Received":"by 10.223.169.100 with SMTP id u91mr9672601wrc.290.1502441744559;\n\tFri, 11 Aug 2017 01:55:44 -0700 (PDT)","From":"Pantelis Antoniou <pantelis.antoniou@konsulko.com>","To":"Tom Rini <trini@konsulko.com>","Date":"Fri, 11 Aug 2017 11:52:43 +0300","Message-Id":"<1502441568-22896-6-git-send-email-pantelis.antoniou@konsulko.com>","X-Mailer":"git-send-email 2.1.4","In-Reply-To":"<1502441568-22896-1-git-send-email-pantelis.antoniou@konsulko.com>","References":"<1502441568-22896-1-git-send-email-pantelis.antoniou@konsulko.com>","Cc":"Marek Vasut <marex@denx.de>,\n\tPantelis Antoniou <pantelis.antoniou@konsulko.com>,\n\tTero Kristo <t-kristo@ti.com>, u-boot@lists.denx.de,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tStefan Roese <sr@denx.de>, Alan Ott <alan@signal11.us>","Subject":"[U-Boot] [PATCH v2 05/10] doc: Document how to apply fdt overlays","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":"We have the capability to apply overlays on the command line but\nwe didn't have a document explaining how.\n\nSigned-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>\n---\n doc/README.fdt-overlays | 37 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 37 insertions(+)\n create mode 100644 doc/README.fdt-overlays","diff":"diff --git a/doc/README.fdt-overlays b/doc/README.fdt-overlays\nnew file mode 100644\nindex 0000000..ee868ec\n--- /dev/null\n+++ b/doc/README.fdt-overlays\n@@ -0,0 +1,37 @@\n+U-Boot FDT Overlay usage (without FIT images)\n+=============================================\n+\n+FDT overlays are now available for use even without FIT images.\n+It is not as automagic as with FIT images though and require a few\n+manual steps.\n+\n+1. Figure out where to place both the base device tree blob and the\n+overlay. Make sure you have enough space to grow the base tree without\n+overlapping anything.\n+\n+=> setenv fdtaddr 0x87f00000\n+=> setenv fdtovaddr 0x87fc0000\n+\n+2. Load the base blob and overlay blobs\n+\n+=> load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/base.dtb\n+=> load ${devtype} ${bootpart} ${fdtovaddr} ${bootdir}/overlay.dtb\n+\n+3. Set it as the working fdt tree.\n+\n+=> fdtaddr $fdtaddr\n+\n+4. Grow it enough so it can 'fit' all the applied overlays\n+\n+=> fdt resize 8192\n+\n+5. You are now ready to apply the overlay.\n+\n+=> fdt apply $fdtovaddr\n+\n+Please note that in case of an error, both the base and overlays are going\n+to be invalidated, so keep copies to avoid reloading.\n+\n+Pantelis Antoniou\n+pantelis.antoniou@konsulko.com\n+11/7/2017\n","prefixes":["U-Boot","v2","05/10"]}