[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <25a5a438aef1d158a57872de963ac870ab13507c.1601655904.git.npcomplete13@gmail.com>
Date: Wed, 7 Oct 2020 15:01:52 -0400
From: Vivek Unune <npcomplete13@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Vivek Unune <npcomplete13@...il.com>,
Hauke Mehrtens <hauke@...ke-m.de>,
Rafał Miłecki <zajec5@...il.com>,
bcm-kernel-feedback-list@...adcom.com,
Rob Herring <robh+dt@...nel.org>,
linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions
This router has dual paritions to store trx firmware image and
dual partitions for nvram. The second one for 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 another 'linux' partition
The following patch works around both of these issues.
Signed-off-by: Vivek Unune <npcomplete13@...il.com>
---
.../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 b36ed0ead733..488e83c1780d 100644
--- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
+++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
@@ -281,3 +281,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@...00 {
+ label = "nvram";
+ reg = <0x080000 0x0100000>;
+ };
+
+ partition@...000{
+ label = "devinfo";
+ reg = <0x0180000 0x080000>;
+ };
+
+ partition@...000 {
+ label = "firmware";
+ reg = <0x0200000 0x01D00000>;
+ compatible = "brcm,trx";
+ };
+
+ partition@...0000 {
+ label = "failsafe";
+ reg = <0x01F00000 0x01D00000>;
+ read-only;
+ };
+
+ partition@...200000 {
+ label = "brcmnand";
+ reg = <0x05200000 0x02E00000>;
+ };
+ };
+};
--
2.25.1
Powered by blists - more mailing lists