[openwrt/openwrt] mpc85xx: p1010: Fix Sophos RED 15w NAND partitions

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 5 15:59:55 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/09e7b24ceb5d9310334c4f88327dc6d58052e7fd

commit 09e7b24ceb5d9310334c4f88327dc6d58052e7fd
Author: Shine <4c.fce2 at proton.me>
AuthorDate: Tue Nov 11 19:49:16 2025 +0100

    mpc85xx: p1010: Fix Sophos RED 15w NAND partitions
    
    This partially reverts 78d259e7d28d212425164fc64bf0b9d8669d6020.
    That commit broke mounting the root fs on Sophos RED 15w due to
    partition size mismatch, and changed the partition sequence, causing
    the OpenWrt partition numbers to change from mtd3:kernel/mtd4:ubi to
    mtd4:kernel/mtd5:ubi.
    
    Fixes: 78d259e7d28d ("mpc85xx: fix some dtc warnings")
    Signed-off-by: Shine <4c.fce2 at proton.me>
    Link: https://github.com/openwrt/openwrt/pull/20745
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../files/arch/powerpc/boot/dts/red-15w-rev1.dts   | 24 +++++++++-------------
 1 file changed, 10 insertions(+), 14 deletions(-)

diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts
index 19bb8023ed..ac7209bd51 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts
@@ -165,23 +165,19 @@
 					read-only;
 				};
 
+				partition at 300000 {
+					reg = <0x300000 0x800000>;
+					label = "kernel";
+				};
+
+				partition at b00000 {
+					reg = <0xb00000 0x7500000>;
+					label = "ubi";
+				};
+
 				oem-partition at 300000 {
 					reg = <0x300000 0x1900000>;
 					label = "sophos-os1";
-
-					compatible = "fixed-partitions";
-					#address-cells = <1>;
-					#size-cells = <1>;
-
-					partition at 0 {
-						reg = <0x0 0x800000>;
-						label = "kernel";
-					};
-
-					partition at 800000 {
-						reg = <0x800000 0x7500000>;
-						label = "ubi";
-					};
 				};
 
 				oem-partition at 1c00000 {




More information about the lede-commits mailing list