diff options
author | Vivek Unune <npcomplete13@gmail.com> | 2020-11-01 15:08:03 -0500 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2020-11-11 20:38:14 -0800 |
commit | bd9a01e28e5d1632528e531480b42d6e2c861d88 (patch) | |
tree | 3951492a889629839461494e726e5dbf188b0b94 /arch/arm/boot/dts/bcm47094-linksys-panamera.dts | |
parent | 4b650a20bdb5f9558007dd3055a17a1644a91c3e (diff) | |
download | lwn-bd9a01e28e5d1632528e531480b42d6e2c861d88.tar.gz lwn-bd9a01e28e5d1632528e531480b42d6e2c861d88.zip |
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 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 <npcomplete13@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/bcm47094-linksys-panamera.dts')
-rw-r--r-- | arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts index 5d5930edfb9d..507af23e227f 100644 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts @@ -292,3 +292,44 @@ &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>; + }; + }; +}; |