From patchwork Fri Aug 11 08:52:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 800473 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="l5KDywpD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xTJpQ4hLzz9t2W for ; Fri, 11 Aug 2017 18:59:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 60252C21DA4; Fri, 11 Aug 2017 08:56:50 +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=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID 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 E3032C21DCE; Fri, 11 Aug 2017 08:55:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 314BFC21DDD; Fri, 11 Aug 2017 08:55:50 +0000 (UTC) Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by lists.denx.de (Postfix) with ESMTPS id D454BC21D70 for ; Fri, 11 Aug 2017 08:55:44 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id 33so11110755wrz.4 for ; Fri, 11 Aug 2017 01:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DrYoOkLaWECmvPnekePqhNyfHsLsGNqw0DfDaJr61q4=; b=l5KDywpDXwa6mPdPMZGFSR65FuY1dqE6nEQ/uz+D+82NYplYYhnGlKK2vl1AMUokbI XZ1pHB3vGnqex+DTWoyI1LTqV1tBt2qvotFHpcNgRU1pm0YZ4TGHWiELd3B2l7q978se GIQhKXxiAa5QNJCN1r7i4bkPtVJa1pRbiKTJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DrYoOkLaWECmvPnekePqhNyfHsLsGNqw0DfDaJr61q4=; b=Pwiuh5LYjQdU6q675J4xqm42T+8QQHqI6dp/4OvWbFVbDep+I5q8Wade5v8VSrCuMS 5FpZUMvdaaYI796CSmTnSSt8xGo0QjDbTJLL1ZKTqPZKPX5OLzdKc2CFDS7eyczlX4IY aeGcqjdKE00CCWxy6c2yNz38wGeB6Xzan8cNwWUNsz8A9aATir16nDXHQcYq0vDPcOty 9ZJRvEIWHpUVJ9sOWt8bwkMYRIsz4udPrWCUfHw5ogT3DErcoyWiH2U2as7Qkqi5B5kq tYcBU1qRs0+JIEEYF0LY/aU5F8wNKXy4lmOn0m4W5Eeoj+frSTtPn+N/+AwiunVQJ6HW 85NA== X-Gm-Message-State: AHYfb5ipv5TqdG19dkb9dYAZar8fDsSd/lVDh51aqOwrXiBXsC47omde PHmyv8YvyF27EvsA X-Received: by 10.223.169.100 with SMTP id u91mr9672601wrc.290.1502441744559; Fri, 11 Aug 2017 01:55:44 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id o71sm759811wmg.15.2017.08.11.01.55.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Aug 2017 01:55:44 -0700 (PDT) From: Pantelis Antoniou To: Tom Rini 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 , Pantelis Antoniou , Tero Kristo , u-boot@lists.denx.de, Maxime Ripard , Stefan Roese , Alan Ott 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 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" We have the capability to apply overlays on the command line but we didn't have a document explaining how. Signed-off-by: Pantelis Antoniou Reviewed-by: Simon Glass --- doc/README.fdt-overlays | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 doc/README.fdt-overlays diff --git a/doc/README.fdt-overlays b/doc/README.fdt-overlays new file mode 100644 index 0000000..ee868ec --- /dev/null +++ b/doc/README.fdt-overlays @@ -0,0 +1,37 @@ +U-Boot FDT Overlay usage (without FIT images) +============================================= + +FDT overlays are now available for use even without FIT images. +It is not as automagic as with FIT images though and require a few +manual steps. + +1. Figure out where to place both the base device tree blob and the +overlay. Make sure you have enough space to grow the base tree without +overlapping anything. + +=> setenv fdtaddr 0x87f00000 +=> setenv fdtovaddr 0x87fc0000 + +2. Load the base blob and overlay blobs + +=> load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/base.dtb +=> load ${devtype} ${bootpart} ${fdtovaddr} ${bootdir}/overlay.dtb + +3. Set it as the working fdt tree. + +=> fdtaddr $fdtaddr + +4. Grow it enough so it can 'fit' all the applied overlays + +=> fdt resize 8192 + +5. You are now ready to apply the overlay. + +=> fdt apply $fdtovaddr + +Please note that in case of an error, both the base and overlays are going +to be invalidated, so keep copies to avoid reloading. + +Pantelis Antoniou +pantelis.antoniou@konsulko.com +11/7/2017