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=-5.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 A295EC55ABD for ; Mon, 9 Nov 2020 17:29:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F1C020897 for ; Mon, 9 Nov 2020 17:29:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nwt8yOV2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731950AbgKIR3C (ORCPT ); Mon, 9 Nov 2020 12:29:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731708AbgKIR2s (ORCPT ); Mon, 9 Nov 2020 12:28:48 -0500 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3E68C0613CF; Mon, 9 Nov 2020 09:28:47 -0800 (PST) Received: by mail-lf1-x141.google.com with SMTP id e27so13562712lfn.7; Mon, 09 Nov 2020 09:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oob/x6TgbSkIzBqStoRcBvlxDjkg5j4q3OalbOiwR7k=; b=nwt8yOV2OTG2ahjQwYOnUEq41venCHBjAIe1HrKvZtbjCkQRX3EFt+ZZHCrKKUUDtT vbrnhoIbeKSkewOHy7hSGjVR7EZlHvqkid/pllq1f5Ho1vG4R8A/ld0N32CtbLtKJfKB waziUWOsXQpXJuPgGFa65MTkG+FuzU0b3Ck3rqvX13B843l2PenlCwwMMBD6vqVnrwyr 5S+Gb6vPBie3zBJXdpd5mZ1YXfCRFLAHIsospYWuyolMt2PZbDLzXwGF4Oe7/2DTEZ9F JY94p9nJ8mt/VG2IN8/woawnytMF5cIF9KxasuQenOeMe0qmZsCOY1Os06OIYJjpc9IN fGfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oob/x6TgbSkIzBqStoRcBvlxDjkg5j4q3OalbOiwR7k=; b=hfpy69ukjs9Zcwgtz+n4D9kKcM9Jy9pCSn7ZcHpCRKcvN6XFK9BzTc34lrngKiaa8c zqPdjYTJhuX6+AujZrs+KyMADuonp8yB+6SOzD5J8lhSCylnMCFssKsyC7ZmVbx00tt2 NswEFFexMGDGGbd+Oc7Ap74U3Ko/Tt3GOmVF70xc6FFwW/QdAewDxOLPlR2SiNEwMqud o/62jwTRyzWTm1IFAPF+KwR1J3tTF0WCtGrX03CVxJqGn5xJBjznnNolODWwUIl+OlO0 Kg/7JEHa+hl0q+iHjz71KeqpBlL/uxz06YcSxMjIyJRumn3ZlChurLnB6Gw+/G1JIAjc cisA== X-Gm-Message-State: AOAM532Z/hcs88jaUnOO0rIwRa5KpUHXAK2JwQcW0idxtzzqYSK2Ypgv n/dSwealJ9mkWmAykeMywWG5ET89+ec= X-Google-Smtp-Source: ABdhPJzPG+Hasa7/HT5fpa2KLVVDf2BZ4VQ1pJwjqvsImle0uqW7VevhyqTA41Rp1oSUY3tyjrwo7g== X-Received: by 2002:a19:90b:: with SMTP id 11mr6487389lfj.316.1604942926195; Mon, 09 Nov 2020 09:28:46 -0800 (PST) Received: from elitebook.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.googlemail.com with ESMTPSA id j64sm299533lfd.104.2020.11.09.09.28.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Nov 2020 09:28:45 -0800 (PST) Subject: Re: [PATCH v2] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions To: Vivek Unune Cc: florian.fainelli@broadcom.com, Hauke Mehrtens , bcm-kernel-feedback-list@broadcom.com, Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201101200804.2460-1-npcomplete13@gmail.com> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Message-ID: Date: Mon, 9 Nov 2020 18:28:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201101200804.2460-1-npcomplete13@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 01.11.2020 21:08, 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. I'm quite sure CFE is supposed to flash new firmware to the backup partition and then mark it as main one. The old firmware partition becomes a new backup then. That means you need to check which partition bootloader used to handle partitioning properly. > + partition@200000 { > + label = "firmware"; > + reg = <0x0200000 0x01D00000>; > + compatible = "brcm,trx"; > + }; > + > + partition@1F00000 { > + label = "failsafe"; > + reg = <0x01F00000 0x01D00000>; > + read-only; > + }; Here you assume CFE always boots from the first firmware partition. Unless EA9500 CFE does sth stupid it seems like a 50% - 50% guess.