From patchwork Thu Feb 19 01:01:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Olivari X-Patchwork-Id: 441514 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44BF514009B for ; Thu, 19 Feb 2015 12:03:12 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 81C4628C17D; Thu, 19 Feb 2015 02:01:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C083328B403 for ; Thu, 19 Feb 2015 02:01:23 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 19 Feb 2015 02:01:22 +0100 (CET) Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 336E41405FD; Thu, 19 Feb 2015 01:01:25 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 25C311405FB; Thu, 19 Feb 2015 01:01:25 +0000 (UTC) Received: from mathieu-linux.qualcomm.com (qf-scl1nat.qualcomm.com [207.114.132.30]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mathieu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id AE1031405F9; Thu, 19 Feb 2015 01:01:24 +0000 (UTC) From: Mathieu Olivari To: blogic@openwrt.org Date: Wed, 18 Feb 2015 17:01:14 -0800 Message-Id: <1424307674-30507-3-git-send-email-mathieu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424307674-30507-1-git-send-email-mathieu@codeaurora.org> References: <1424307674-30507-1-git-send-email-mathieu@codeaurora.org> X-Virus-Scanned: ClamAV using ClamSMTP Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH 3/3] ipq806x: add ap148 bootargs to DT X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" This will simplify the boot process by avoiding the bootloader bootargs configuration process. Signed-off-by: Mathieu Olivari --- .../ipq806x/patches/004-add-ap148-bootargs.patch | 86 ++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 target/linux/ipq806x/patches/004-add-ap148-bootargs.patch diff --git a/target/linux/ipq806x/patches/004-add-ap148-bootargs.patch b/target/linux/ipq806x/patches/004-add-ap148-bootargs.patch new file mode 100644 index 0000000..0b2ccec --- /dev/null +++ b/target/linux/ipq806x/patches/004-add-ap148-bootargs.patch @@ -0,0 +1,86 @@ +--- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts ++++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts +@@ -14,6 +14,10 @@ + }; + }; + ++ chosen { ++ bootargs = "console=ttyMSM0,115200 root=/dev/mtdblock12 rootfstype=squashfs,jffs2"; ++ }; ++ + soc { + pinmux@800000 { + i2c4_pins: i2c4_pinmux { +@@ -70,13 +74,68 @@ + reg = <0>; + + partition@0 { +- label = "rootfs"; +- reg = <0x0 0x1000000>; ++ label = "0:SBL1"; ++ reg = <0x0 0x20000>; + }; + + partition@1 { +- label = "scratch"; +- reg = <0x1000000 0x1000000>; ++ label = "0:MIBIB"; ++ reg = <0x20000 0x20000>; ++ }; ++ ++ partition@2 { ++ label = "0:SBL2"; ++ reg = <0x40000 0x40000>; ++ }; ++ ++ partition@3 { ++ label = "0:DDR"; ++ reg = <0x80000 0x10000>; ++ }; ++ ++ partition@4 { ++ label = "0:DDRCONFIG"; ++ reg = <0x90000 0x10000>; ++ }; ++ ++ partition@5 { ++ label = "0:SSD"; ++ reg = <0xa0000 0x10000>; ++ }; ++ ++ partition@6 { ++ label = "0:TZ"; ++ reg = <0xb0000 0x80000>; ++ }; ++ ++ partition@7 { ++ label = "0:RPM"; ++ reg = <0x130000 0x80000>; ++ }; ++ ++ partition@8 { ++ label = "0:APSSBL"; ++ reg = <0x1b0000 0x80000>; ++ }; ++ ++ partition@9 { ++ label = "0:APSSBLENV"; ++ reg = <0x230000 0x40000>; ++ }; ++ ++ partition@a { ++ label = "0:ART"; ++ reg = <0x270000 0x40000>; ++ }; ++ ++ partition@b { ++ label = "0:HLOS"; ++ reg = <0x2b0000 0x300000>; ++ }; ++ ++ partition@c { ++ label = "rootfs"; ++ reg = <0x5b0000 0x1a50000>; + }; + }; + };