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=-12.3 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 A3E29C2D0A3 for ; Sun, 1 Nov 2020 20:08:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D60521556 for ; Sun, 1 Nov 2020 20:08:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gTwXMlWr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726873AbgKAUIU (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) 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) 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) 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: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../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@5200000 { + label = "system"; + reg = <0x05200000 0x02E00000>; + }; + }; +}; -- 2.25.1