From patchwork Fri Mar 10 00:05:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 737192 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vfS9v4gSRz9s7M for ; Fri, 10 Mar 2017 11:02:11 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nHR7xFK1"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gateworks-com.20150623.gappssmtp.com header.i=@gateworks-com.20150623.gappssmtp.com header.b="cgnl28M7"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+0dExOb5VUVPA015PBkU7UqheDPFvATb0fXX1d9LW00=; b=nHR7xFK16h83mt fFmBK+KQmui+STmlTa/VgRDiYzKvq43QqnmJcg0doljidPk/aPaUx8mxXzTxtKzOTK1e+9CrQil2C BkOlg2tEZNI2y60/gEaYmXMHZ0Pcnpn0BEr0KWeaj6z9aMJr1fJDgKjBA6B545jWSkcFeDMiqrMIw U1+HezenC3rtslbzGQjJR3Et3kGAoYeXOjCOTKe4gyYl0/BEI1EeRt0xPRk2IcaHdmkKBqHeSCUQ+ N0Lbv+/z98CBMCJVIHkGOL52u4jLJ6/VRiT5R5mQuDBnCxu4nPMi8ShP9ea1anfIULHsyicmW3y5g q6gzGBMEP6BNNxQifZBw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cm80N-0000L8-JK; Fri, 10 Mar 2017 00:01:59 +0000 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cm7zm-0008Pu-AV for Lede-dev@lists.infradead.org; Fri, 10 Mar 2017 00:01:23 +0000 Received: by mail-pf0-x236.google.com with SMTP id w189so34573112pfb.0 for ; Thu, 09 Mar 2017 16:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=xpaoRXNs7arnumX88eEAZbYgRuagZQv3XXBLhNNp4Q8=; b=cgnl28M7nsfEc+cSWry57O3FoAHPIVsvrA7zXA9Xhh1kTbTzkmGYCKyUBejgXf7wQF l2jtrd93JLF/XKr102dlsng4T5d2SO9efHyHWoL1RQ6BitZmuONbC2jLG89/IVPgQjPd UYThbiS2bhXnG2agICm4tIxQ3DRBXNYAOLdS7r340S/oM8+CLXf3vpd+oWEqoagXF2bu gsUx45B9xrQl7cDnTW2tdWA/I1+jFkVeG6Dg5+hbqw3vpQZokkk0b4RZyNWL7DEsBUIV 28MJbsSOSdS6Og+/33ItnwTQIuI8KkL8tvgi5x/x/vjAhLs2+CqOW3UKfI8LIjQTdyLg mQlg== 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; bh=xpaoRXNs7arnumX88eEAZbYgRuagZQv3XXBLhNNp4Q8=; b=phdtHL0nD4PDpcHqRPYIS/fZ7mw+AzX9C+RUSJOOaGMeEW+bcNRS+7v+JqE/SE1N4V elECk1gEZr3O0yuIMWhBZKfbKNEqXnI2HiUTHv5sELwypz6WNOiv4hVi62M78uLaoLYq n2OqUIaWv2/8IfYZrTYdpD++q9QcVMjMBtMrEU7eJWR6Pyw7f/1GH4q6baB2G2X0I/PR 5zP7DVCgwATfGHjv4meiq4uRJFcv6otdnvfGxlyUe7QmuZIOrlS9clOrZq5ey+InBIfg Omn7Tee2zxybMiVi3VO7lreVh02omh6mJNf80x5N8hkETmQWEn8MxIu7uTPNdSpNDF+d adPg== X-Gm-Message-State: AMke39kdV4Z5ZRNqzmE4/d0Jm/y0e2Wbnz+tIf0cfl70k+G1TseS/Xs5fHFtjlRP6V3D4g== X-Received: by 10.98.28.72 with SMTP id c69mr17294780pfc.8.1489104061270; Thu, 09 Mar 2017 16:01:01 -0800 (PST) Received: from tharvey.pdc.gateworks.com (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id r17sm14667263pgg.19.2017.03.09.16.01.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Mar 2017 16:01:00 -0800 (PST) From: Tim Harvey To: Lede-dev@lists.infradead.org Date: Thu, 9 Mar 2017 16:05:52 -0800 Message-Id: <1489104352-27295-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_160122_412245_813880C5 X-CRM114-Status: UNSURE ( 5.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:236 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH] imx6: added fixfdt to bootscript X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Koen Vandeputte , nbd@nbd.name MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org If a 'fixfdt' uboot script exists, execute it prior to bootm to allow easy bootloader env based fdt fixups and tweaks Signed-off-by: Tim Harvey --- target/linux/imx6/image/bootscript-ventana | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/imx6/image/bootscript-ventana b/target/linux/imx6/image/bootscript-ventana index dcf26bb..941afb5 100644 --- a/target/linux/imx6/image/bootscript-ventana +++ b/target/linux/imx6/image/bootscript-ventana @@ -61,12 +61,15 @@ setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}" if ${fsload} ${loadaddr} ${bootdir}/uImage; then if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then echo Loaded DTB from ${bootdir}/${fdt_file} + test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then echo Loaded DTB from ${bootdir}/${fdt_file1} + test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then echo Loaded DTB from ${bootdir}/${fdt_file2} + test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} else echo "Error loading device-tree"