Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp454058pxx; Mon, 26 Oct 2020 12:16:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRHL5FJJ3yFDp6aqmVj/Ue7XAsg24gQ3wRzXNDuEiHbqXus1KSH7pdzmlTqmdiSgn9C4gp X-Received: by 2002:aa7:c68b:: with SMTP id n11mr16650095edq.340.1603739810877; Mon, 26 Oct 2020 12:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603739810; cv=none; d=google.com; s=arc-20160816; b=L+RFI6zdF+75tiEF70JJqNkpf/K4fK4MbZZbHBaNnxbPnFkzIANlDsssQOUP7EY4ne RFbVEi9GhGZ0+qR4Faxj57nxIxyhazAoX2cUy8FRBGeCvGLyLkAjvotWk+I5pqWRtF9n 9VyFu1KTi2gJduazgFs3ox8/c7gB4vQwQDU+b7e7etpx8KV/BeWVRHwEsw0KOvUHZAKp R9+66iOTX5iofgZNsr5nf073wwGNnVeEl3cV6MqT5hLsXz2fWs7pDwjIbEB3ue6nI6MA 7xNz1SDejZD5JSvjkpgPVbZqmqnfH12IW04X7cy+DL23nurl+5IUUdy/llmBPfh3jnMf C6PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vLQei8ZmgmFcSxn2MPuUAP5brChetukYTYeEtCq2OjI=; b=Qqlth+qny1NZoCFb4rMivLCzAcXamYX6RqW1qtWSQjNu2341qolIfZQmR3KcDyTBt+ 0RpyoBbUK/oFOMPf0AtUeRXa6Ya2BrByXz+gSHg6iM73lWe/n2JRIJONdStl78Urq2Je foTtbyTDs5WaVxT4aywVu4XGU4WKbf5TBP/XYAlkgD9x2XYjRUQA0sj9dBq4Ycwo61ji vCvZazpmQ/07eAAQN0LBz+NfJ9H5P6Ac1ojCTBn63bhE0B0D2tqOwQVQRcLTuX/xRUOz xmzzJlcihey4CjWj8CWaIAXoueiYmqX5YKmMjqSmbOnaueHpqQeLwZuFIO+JwMs4HKj7 5iNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WZClcdFY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si7290651ejn.61.2020.10.26.12.16.28; Mon, 26 Oct 2020 12:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WZClcdFY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1773352AbgJZPjl (ORCPT + 99 others); Mon, 26 Oct 2020 11:39:41 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43806 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1772929AbgJZPjl (ORCPT ); Mon, 26 Oct 2020 11:39:41 -0400 Received: by mail-qt1-f193.google.com with SMTP id e6so6985630qtw.10; Mon, 26 Oct 2020 08:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vLQei8ZmgmFcSxn2MPuUAP5brChetukYTYeEtCq2OjI=; b=WZClcdFYON5jGkBEUsXDjjrC5+/8ykP+W6jK5+YeWAfaGlZD+93YguQywa1UlSp48E uuGYiMGQ/K04Dg/M2ZDj65g6NI2HxWyDWw75mA2OiPTlu4gvZmkKphql2hKrPxoQ6XkI KQDwxR3oSWF8+kE2PPMlU6jR7hvZSRY4CG0DkqzG5g1NmsiQ1zBanpyNT1bit/dYeJv+ fa8TvdDcGh3m0EpxlNz1RjSkouEZjkL+LvrvKe8ilMfCbxc0hKKrGjgEho1DM3INinLX Z6gEQCXl+0JUCW9mEfYAx1I7W8SYlFzMt5uW3ji+qSjJskmQHCmirSbKgLG5odMoqpxW jDbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vLQei8ZmgmFcSxn2MPuUAP5brChetukYTYeEtCq2OjI=; b=E00KcnsOh2BTaC/FqoiezxHRoTKA8w+mstyWzW3n+jX2ROYHqs7OjDulfZyKSdeW0d 6rCsQq/B0rF2Uyz/X0qtZ7KxJWYpFT9gIgIpn1aA+0xLa+sRxlCh/QHL5YWthiLGgAXQ RbEMo5T0nHDiUlMIMHHBCo2A3N4Cu4mHh8lBZHbeScJpfH8E4BzFptyzgwmNbWoYX3Fq CVLypePnW6tuHy2fcRUAuFQPeGst7XoSpPSuDDYOPigT6m4gBw5T6ou0WHnSy9QIwMiH 8Rm3vWErfDUa5B2tYPPTifUZAmaSoa9UxxfQbeh3Oz5OLUdB3yQvveellpOeaBT04QwS GopQ== X-Gm-Message-State: AOAM531A8UPU72qiHttqr82iadoNwJCqkhVYsrX3NNAYDuiT8aKzlk1v zk8atZqJ2r+rS6zP+WpZGxq1N1YPQbOM/g== X-Received: by 2002:ac8:4b4b:: with SMTP id e11mr3668273qts.29.1603726779530; Mon, 26 Oct 2020 08:39:39 -0700 (PDT) Received: from ubuntu (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.gmail.com with ESMTPSA id 22sm4586589qtw.61.2020.10.26.08.39.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 08:39:38 -0700 (PDT) Date: Mon, 26 Oct 2020 11:39:36 -0400 From: Vivek Unune To: Florian Fainelli Cc: devicetree@vger.kernel.org, Hauke Mehrtens , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions Message-ID: <20201026153936.GA258640@ubuntu> References: <20201026131351.258296-1-npcomplete13@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 06:30:53AM -0700, Florian Fainelli wrote: > > > On 10/26/2020 6:13 AM, Vivek Unune wrote: > > This router has dual paritions to store trx firmware image and > > dual partitions for nvram. The second one in each of these cases 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 duplicate 'linux' partition. I've set this > > partition to read-only for now > > > > 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 5d5930edfb9d..13da16c5de68 100644 > > --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts > > +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts > > @@ -292,3 +292,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 { > > You would need to remove the 0x from the hex number here. Sure, I'll fix this in next version > > > + label = "brcmnand"; > > Not sure how useful naming this partition brcmnand is, can we find a better > name for it? I'll be more than happy to rename this that makes sense. Factory uses this name as well. This is used as a general persistent storage for system cofigs. Could we name it System? Thanks, Vivek