From nobody Sat May 10 02:16:10 2025 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1604261308; cv=none; d=zohomail.com; s=zohoarc; b=O8R4OOGOZzrP+tppeRCOylzV6fOs9Xd4GR0jL7dB7tZ71lKPwKItw/FnSYyoMiPZdiLeRf0mZC35EunCEiOEaxZNfY3i7JOU7cTXwRH7MpMTgrAxB8u5fYmmVlEtrQFc2rpgyB1ISaW1gC/CgIszeWD8Sy85Ce4SqPBYjd0SrGY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604261308; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:MIME-Version:Message-ID:References:Subject:To; bh=dvVA6gJ7KOUrL6fUd23pqvXnztHm0oyioDDQWl4BAQQ=; b=CbPg3y8wSR5E+nkC1PO2v2zysVU7l7+yn4pyw9f2a1uL9cFGPhrQg4nP04IV0kVuCHb+Lv6pXDjTRiqknKClyzKSz2i5YMciY4ZNHCkSXNyCiv32mlv+YPtU67PMZ/jT4JyV9kcRxQ/020W3J/e4013rtO1HVCVy2ss7n68A7L0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1604261308949372.79019525329795; Sun, 1 Nov 2020 12:08:28 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbgKAUIU (ORCPT ); Sun, 1 Nov 2020 15:08:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726848AbgKAUIU (ORCPT ); Sun, 1 Nov 2020 15:08:20 -0500 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62993C0617A6; Sun, 1 Nov 2020 12:08:20 -0800 (PST) Received: by mail-qt1-x844.google.com with SMTP id h12so7960777qtu.1; Sun, 01 Nov 2020 12:08:20 -0800 (PST) Received: from ubuntu.localdomain (ool-45785633.dyn.optonline.net. [69.120.86.51]) by smtp.googlemail.com with ESMTPSA id z134sm6607386qka.21.2020.11.01.12.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 12:08:19 -0800 (PST) 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=dvVA6gJ7KOUrL6fUd23pqvXnztHm0oyioDDQWl4BAQQ=; b=gTwXMlWrggROudSV3s7R/3ux9AxsT2XgsNLRPfGJ5eEkv3uWqALu2Dl3r4fhN5BSlu iGAFnVQPOHHyL9MOh3U1TFQrDXDiWsBgapw62NJlJOHH5hLCR0Z0KuaRxioLvVj2Q0KR kiLZkqS0OyMhmQhBmUF8rxFOh5As/0HLSklXPCNniOHUr0Cyf9zhYaHdecKSe5q8rU/u rqHmqffa1t2JrUTk1L881tk+iP+chb/lT3Seu7jUAHlLHyev9fe5VOg/Ek6hyiIlaovR 5rXtbTwOXF/l9u2mQdC/606Pw2imsW/GtqO5iRPrkPhbhaYDFkrm4vrgaofLR0dxq8KL 8k7Q== 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=dvVA6gJ7KOUrL6fUd23pqvXnztHm0oyioDDQWl4BAQQ=; b=jsVIRjpu7f1gAY8imVuLMoHUr1BKG6fNoyycqK54nfnLQ7IdUUjEo50Km+allCTYo+ rgNBNtSI8hLfzLcKzIl1w4YSli7ZxhCv/pbNhb9pkStDijQYaDCnEfwtwpP0kix2MTqm ZITPJT1rck7TAjVPfGX2RWjLksZl2rJE8fu8N5ozS+v2XOQxlucnBi9szacKQufjxniC cAfY0PebLW5lGhxTjyFS9CukALnLtLkhGcjQ3l6Hw33UK4FA08Ze+8ZdCoyPKIPyi0Ik n6KDKa0I6INOLBU6+ubomiNr/pHVFnCpUiLrysSPeSuePvilfjGY/+4MtKtLJpz1rz6d yWiA== X-Gm-Message-State: AOAM532W0PfYI9THVZy0/+28Vpl/fJcxnoLMHlJPHmz+xcJbR0+P528C 44HbVMoefPXcgA/72uHD5+M= X-Google-Smtp-Source: ABdhPJyGVh1O8s4DBhP7k6UVZLQ0DgS3fzpHcID2c71ukOTmFzz5xq7CF2qH0W3KLIZioeJ5DrIfrA== X-Received: by 2002:aed:2ba6:: with SMTP id e35mr11806520qtd.251.1604261299551; Sun, 01 Nov 2020 12:08:19 -0800 (PST) From: Vivek Unune Cc: florian.fainelli@broadcom.com, Vivek Unune , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , bcm-kernel-feedback-list@broadcom.com, Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions Date: Sun, 1 Nov 2020 15:08:03 -0500 Message-Id: <20201101200804.2460-1-npcomplete13@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 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 The following patch works around both of these issues. Signed-off-by: Vivek Unune --- V2: - Removed 0x before partition offset - Renamed brcmnand to system=20 --- .../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/boo= t/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 =3D "okay"; }; + +&nandcs { + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + label =3D "boot"; + reg =3D <0x0000000 0x0080000>; + read-only; + }; + + partition@80000 { + label =3D "nvram"; + reg =3D <0x080000 0x0100000>; + }; + + partition@180000{ + label =3D "devinfo"; + reg =3D <0x0180000 0x080000>; + }; + + partition@200000 { + label =3D "firmware"; + reg =3D <0x0200000 0x01D00000>; + compatible =3D "brcm,trx"; + }; + + partition@1F00000 { + label =3D "failsafe"; + reg =3D <0x01F00000 0x01D00000>; + read-only; + }; + + partition@5200000 { + label =3D "system"; + reg =3D <0x05200000 0x02E00000>; + }; + }; +}; --=20 2.25.1