From patchwork Wed Oct 7 19:01:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Unune X-Patchwork-Id: 11821617 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8FDA6109B for ; Wed, 7 Oct 2020 19:02:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4759F2168B for ; Wed, 7 Oct 2020 19:02:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vSfw7o4r"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tqIldT8R" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4759F2168B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C6JVX2GcDAWvs+hwWo/euFSQP9Qcd5qOyhGWCf8h2HU=; b=vSfw7o4rumSFhpPsbc7SbIG9U b5qU1omVzFjirWY4PNE3ChUvJn/0RhFIjGia1vhrK7nuhF3MT53eHre1b7S7czK+9jV2piS64/ddM WL0y9DYK4Tr+De/1sj4qyD6VjMYt7imiNmlVN+UVFN+h4X5BahYKlMcHqtV8FROvgzbufak9as1C7 z3lO6E9YtnQKSJ7jHeYrmgpa90fIoTl6XJZrnzBG9sXd4Orjj+hgfTAIbT6EdH7a8l0kOXbEIf3qr D3tvAFK31l5o30MFxqb9vfnmxHKYrs2kY4K54bnCGtpNyK/hg8WnO3+6n7vyBjKuP6Hj4SJB6bkt4 db/PSsUSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhe-0000i8-Kb; Wed, 07 Oct 2020 19:02:18 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQEhU-0000el-R9 for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2020 19:02:09 +0000 Received: by mail-qk1-x743.google.com with SMTP id c62so4194608qke.1 for ; Wed, 07 Oct 2020 12:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cn3dG5n0vqcoPNTEYGHnnPIs7oCE0YkkaB1qoJ0Mljo=; b=tqIldT8RHozyj/3vaZGZ8+d1+EMoZ5vLRTCAxszk5TvN4UqGTdv/vTPAAsvkVluGur EG6FGuv5KKLjH3T3BtL5rMQJtynEXGd8MEopTzzz2UHZSLOME45Gjh3pp26KVRityd7s siRT70pMrCTq7ArIiBnHccZIbDIYoLth8ADsN0Kn1nwxW+ptAZQl/efK1kJbGdXsxt5P Hfs+MgzXHWmAbPMKTCGm13i6HCAoA9+EmFyGqH3ZQZTeqMlMfM6pb4eE0mcgpCf8hES3 77iNxhTi4RZJJq/2dzNqmX6fMcnE1by6Chs0ZxHCOkKYThQJCjcqLyjUlbZVp12SFlhH SGAA== 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:mime-version:content-transfer-encoding; bh=cn3dG5n0vqcoPNTEYGHnnPIs7oCE0YkkaB1qoJ0Mljo=; b=syHoBfRK+0Q18smZ5v6Ow1DoO6TDAtuAaPGLUGWeS3I1v3NkSXA9p2ZICg2pl8tfDf lsm/2twqfagcxPKXby29e1eiFpeg3swSNgCV9yJSRbK8CMOQc/OABh/zAzxMB+PzLAub FvghdRcnsVPGN+F8zfRdOqIAjOgZzxrCMzpQgL669uw0okhE1wjHeo2rjdBGl1ZdrcRE p9CAIeUe+KeQpBZB5aCFTrC2KgI4314C2M27EcDgKWk5pNq8txaMbtmoB7IcOnIkOdfz 0pfuPLT5/84HS4UioJguALVwAfBRcYQX3wRwVVT/tR5KtsqAsr1Z+JpyYs0qyvgbguHr jjaQ== X-Gm-Message-State: AOAM5326LkeChzozqRkh2VFey5FMizMckJoaXQku9dOubTO4+hxyh2Z0 nopvqfafuZdOm1syDuitMeE= X-Google-Smtp-Source: ABdhPJwM3NpsNzFNkkIjvGBnVgmByNkpsiEMEm7SUKpoQCCciFzerxExh0Z7HH6draGub+YZ/FDBHw== X-Received: by 2002:a37:a46:: with SMTP id 67mr4435265qkk.477.1602097327111; Wed, 07 Oct 2020 12:02:07 -0700 (PDT) Received: from ubuntu.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id j16sm2087078qkg.26.2020.10.07.12.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2020 12:02:06 -0700 (PDT) From: Vivek Unune To: Subject: [PATCH 3/3] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions Date: Wed, 7 Oct 2020 15:01:52 -0400 Message-Id: <25a5a438aef1d158a57872de963ac870ab13507c.1601655904.git.npcomplete13@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201007_150208_907405_49B0BD8B X-CRM114-Status: GOOD ( 14.32 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:743 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [npcomplete13[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [npcomplete13[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, Vivek Unune , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This router has dual paritions to store trx firmware image and dual partitions for nvram. The second one for acts as a backup store. When tested with OpenWrt, the default partition parser causes two issues: 1. It labels both nvram partitions as nvram. In factory, second one is labeled devinfo. 2. It parses second trx image and tries to create second 'linux' partition and fails with - cannot create another 'linux' partition The following patch works around both of these issues. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index b36ed0ead733..488e83c1780d 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -281,3 +281,44 @@ fixed-link { &usb3_phy { status = "okay"; }; + +&nandcs { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "boot"; + reg = <0x0000000 0x0080000>; + read-only; + }; + + partition@80000 { + label = "nvram"; + reg = <0x080000 0x0100000>; + }; + + partition@180000{ + label = "devinfo"; + reg = <0x0180000 0x080000>; + }; + + partition@200000 { + label = "firmware"; + reg = <0x0200000 0x01D00000>; + compatible = "brcm,trx"; + }; + + partition@1F00000 { + label = "failsafe"; + reg = <0x01F00000 0x01D00000>; + read-only; + }; + + partition@0x5200000 { + label = "brcmnand"; + reg = <0x05200000 0x02E00000>; + }; + }; +};