From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CB19C56201 for ; Mon, 26 Oct 2020 15:41:05 +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 3A45322400 for ; Mon, 26 Oct 2020 15:41:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FZsPWh3Y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WZClcdFY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A45322400 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+linux-arm-kernel=archiver.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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yCEcRyPRTS9jTlJtYVxr0RdClnFMDBcottg+1stESBQ=; b=FZsPWh3YNj1IaqI5KT8QAEcsI GMr3RMFGSgGErOQ3yHemNZH4LdFY6JTFogPb6W1h6Mva8gueZSbwRCP/RyHdCY3hksr++FIMORilm mqDIasiEprwdYwdQdn6lN8JmzoKHk/kEcxEQeUgEY7B5q//KT9CB2tv2B9i3xIT8VTTv492ioYFJY 9QmqsWTG1inYkc7UVpivaO2wnOIMmKqVSmlRaFHsWlWdtxFPazQKiPuGqbcsetRXpIXjhe8D0pYH4 l7Q9TILzF9oitbP1oEHhObOjaHaGK4t7Hrim6YsAXYocVMSO3coosWXhFypJggfMUGOwUprYz152T NxxaYMlIQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX4b2-00062m-7S; Mon, 26 Oct 2020 15:39:44 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX4az-00061K-3Z for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2020 15:39:42 +0000 Received: by mail-qt1-x842.google.com with SMTP id h12so1931116qtc.9 for ; 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=nkn45MDOVAGJxDk/hNMwVzZnkMcqNFkQ/ybQ4SDqNhv64XaoE0egdih9vQwycg+ehW 7hMpOaiVtxdi/auL6dDCAgxvqKvnXdeVjtl02ERekLeunLU/Jh14QuvJG16gDDu8B1uQ WU6RS0yrG5RGEv4GprvcgVPXgrnXGIwt2AThPabXm6cc/dBnaDfR2wAErq21u5n3cc1T qiF+HpRL+5jLKdAWNMdBCGb3Yh2Wb2kkDA3EaTjMHnt065rgJWSYkpPSSXtT2CAnan6d xCPO7/c8pcZPxkCDShRB7yXymTxqt5FeVT6dfmoBLw3iC43yl61mD3Pprs1UmLZGBs1m I0lg== X-Gm-Message-State: AOAM533q6RcL6T3yJ6FGZl1JtieEYTZN16aMyhz+If3ckUsceSF9I087 bpn+gM0dkRC0GPK3rm1rjdM= X-Google-Smtp-Source: ABdhPJxwbjJpM7BXgATHrFMn/Ypqvv2ofYPBMDwSwLCNpEqKIsLxrJd136lnOkueYbC0g12unZabRA== 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 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201026_113941_197999_2BC07D7A X-CRM114-Status: GOOD ( 25.74 ) 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, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel