blob: c3fdd163d9a84cb27da116d6db2ad83acf4c1e35 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From bd9a01e28e5d1632528e531480b42d6e2c861d88 Mon Sep 17 00:00:00 2001
2From: Vivek Unune <npcomplete13@gmail.com>
3Date: Sun, 1 Nov 2020 15:08:03 -0500
4Subject: [PATCH] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions
5
6This router has dual paritions to store trx firmware image and
7dual partitions for nvram. The second one in each of these cases acts
8as a backup store.
9
10When tested with OpenWrt, the default partition parser causes two issues:
11
121. It labels both nvram partitions as nvram. In factory, second one is
13labeled devinfo.
142. It parses second trx image and tries to create second 'linux' partition
15and fails with - cannot create duplicate 'linux' partition
16
17The following patch works around both of these issues.
18
19Signed-off-by: Vivek Unune <npcomplete13@gmail.com>
20Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
21---
22 .../boot/dts/bcm47094-linksys-panamera.dts | 41 +++++++++++++++++++
23 1 file changed, 41 insertions(+)
24
25--- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
26+++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
27@@ -292,3 +292,44 @@
28 &usb3_phy {
29 status = "okay";
30 };
31+
32+&nandcs {
33+ partitions {
34+ compatible = "fixed-partitions";
35+ #address-cells = <1>;
36+ #size-cells = <1>;
37+
38+ partition@0 {
39+ label = "boot";
40+ reg = <0x0000000 0x0080000>;
41+ read-only;
42+ };
43+
44+ partition@80000 {
45+ label = "nvram";
46+ reg = <0x080000 0x0100000>;
47+ };
48+
49+ partition@180000{
50+ label = "devinfo";
51+ reg = <0x0180000 0x080000>;
52+ };
53+
54+ partition@200000 {
55+ label = "firmware";
56+ reg = <0x0200000 0x01D00000>;
57+ compatible = "brcm,trx";
58+ };
59+
60+ partition@1F00000 {
61+ label = "failsafe";
62+ reg = <0x01F00000 0x01D00000>;
63+ read-only;
64+ };
65+
66+ partition@5200000 {
67+ label = "system";
68+ reg = <0x05200000 0x02E00000>;
69+ };
70+ };
71+};